junyanz / pytorch-CycleGAN-and-pix2pix

Image-to-Image Translation in PyTorch
Other
22.8k stars 6.29k forks source link

Is it normal to use 2 black and white images? #1610

Open Keiser04 opened 10 months ago

Keiser04 commented 10 months ago

During the training with the colorize mode, something caught my attention and that is that during the training it uses two black and white images when one is in color.

This should be the norm, right? imagen But this....? imagen imagen imagen

JustinasLekavicius commented 9 months ago

Check what your input_nc and output_nc values are. 1 is for grayscale, 3 is for RGB.

Keiser04 commented 9 months ago

is that I do not put those arguments

Check what your input_nc and output_nc values are. 1 is for grayscale, 3 is for RGB.

JustinasLekavicius commented 9 months ago

is that I do not put those arguments

Check what your input_nc and output_nc values are. 1 is for grayscale, 3 is for RGB.

Check if you put those arguments in your training configuration. If your input images are grayscale, use input_nc=1. If the images are colored, use input_nc=3

Keiser04 commented 9 months ago

is that I do not put those arguments

Check what your input_nc and output_nc values are. 1 is for grayscale, 3 is for RGB.

Check if you put those arguments in your training configuration. If your input images are grayscale, use input_nc=1. If the images are colored, use input_nc=3

no, I didn't use them, I used the ones that came with the colab and with the one to resume training, but nothing else.

Keiser04 commented 9 months ago

or maybe they have defaults?

JustinasLekavicius commented 9 months ago

or maybe they have defaults?

It appears that for colorization dataset, the defaults are input_nc 1 and output_nc 2. So the issue may be somewhere else. T Checking the code and data you use for training would be useful.

Keiser04 commented 8 months ago

or maybe they have defaults?

It appears that for colorization dataset, the defaults are input_nc 1 and output_nc 2. So the issue may be somewhere else. T Checking the code and data you use for training would be useful.

If I change the output to 3 should it work?