Closed crodis-strife closed 2 years ago
Thank you for the issue, and I am very sorry for the late reply.
A generator of atari_userhint_v2
is designed to output images that have 3 channels. To obtain grayscale output images, you need to change the code into EqualizedConv2d(base, 1, 3, 1, 1),
.
Besides modifying EqualizedConv2d, I also made these modifications.
(1) loss.py
(2) visualize.py
Now the training process runs properly.
Thanks for your help!
I forgot that there are other places requiring 3 channels. Thank you!
I'm developing a grayscale lineart colorization tool, generating the grayscale output image given lineart and grayscale hints. When I tried to training atari_userhint_v2 with grayscale image, the error below occurs:
How can I fix this error? Thank you!
Also, this is the setup in param.yaml.
train: epoch: 1000 snapshot_interval: 1000 batchsize: 1 validsize: 5 out_guide: true gamma: 0.9
dataset: extension: ".jpg" train_size: 512 valid_size: 512 color_space: "gray" line_space: "gray" line_method: ["xdog", "pencil", "blend"]
model: generator: base: 64
in_ch: 5
loss: content: 1.0 adv: 0.1 tv: 100000.0 pef: 0.01 fm: 0.0 perceptual: 100000.0 gp: 1.0