Diverse-Structure-Inpainting
Diverse-Structure-Inpainting copied to clipboard
Insufficient video memory
Training structure_generator.In order to solve the problem of insufficient video memory during generator, reducing batch_size leads to an error when saving the training results : Index 1 is out of bounds for axis 0 with size 1.I hope I can get your help. Thank you!
What is your batch size? And please attach your error log.
my batch size is 2,
I found the problem. The visualization of structure feature maps shows 4 images. You can replace line162 with height = size
and line167 with for i in range(1):
to show only 1 image.
https://github.com/USTC-JialunPeng/Diverse-Structure-Inpainting/blob/0def26df30f291cdfd68c248228366f9d0a8f7e5/net/nn.py#L155-L179
OK OK,I get it ,thank you very much!
OK OK,I get it ,thank you very much!