Skip to content

bhaswara/DL_Project

Repository files navigation

DL_Project: Unpaired Day-to-Night translation using Cyclic GAN for Autonomous Driving

This is the github link for Deep Learning Project. You can read the paper here

We used the same network as mention in the Cycle GAN paper. We also tried to change the Generator part with UNet. The images are shown below.

Running

For the python file, if you want to train the model just use:

python main.py --dataroot datasets/day2night --opencv

You can use PIL image format by removing the '--opencv' command. This training will generate the trained data which is located inside output/ folder.

To test the model, just run

python test.py --dataroot datasets/day2night --opencv

This is same with PIL image if you train the model using PIL image. Just remove '--opencv' . This result will be saved inside output/A and output/B folder

To process the video or another image just use .

python video.py --COMMAND_MODE

There are 3 options there. If you use command '--camera', you can use your webcam or play video by changing VideoCapture(0) with VideoCapture('Your_VIDEO_NAME.mp4'). If you use command '--record', you will process a video and save it with new file name. And if you don't use any command, then it will process in image mode.

Results

The following images are the results of the experiment that we mentioned on the paper. The youtube video and the plot of the results are also provided below.

Cycle GAN Video

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages