Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-trained model based conversion from day to night is producing not so good results for high resolution images. #15

Open
ankur-chr opened this issue Jul 10, 2022 · 0 comments

Comments

@ankur-chr
Copy link

ankur-chr commented Jul 10, 2022

@sauradip I tried to use the pretrained model. However, the day to night time conversion is producing not so good results. Sometimes the image is too dark (with no added lighting effect: ex car light, street light), or at times the image produced is just a little darker version of the real day time image. Is there a way to fix this?

I used the pytorch colab implementation link from here (https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix) to test this. (link found via the cyclegan link in the readme). Tested this with and without '--preprocess none' option, as the day images are high resolution 1024 x 2048 images. If the preprocess none option is not used, then the generated images have better effect of car lights, etc, however, they are much smaller in resolution (256x256), which is not what I need (required output resolution is 1024 x 2048).

Also tried using the gamma correction code as suggested. But getting the following error in that:
error: OpenCV(4.1.2) /io/opencv/modules/core/src/matrix.cpp:406: error: (-215:Assertion failed) m.dims >= 2 in function 'Mat'

Could you please share some pointers?

@ankur-chr ankur-chr changed the title Pre-trained model based conversion from day to night is producing not so good results. Pre-trained model based conversion from day to night is producing not so good results for high resolution images. Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant