pix2pix icon indicating copy to clipboard operation
pix2pix copied to clipboard

Why do we need to provide A and B when testing?

Open samhains opened this issue 7 years ago • 3 comments

I find it an inconvenience to have to stitch together a fake 'B' image, when testing. I have noticed that if i provide the model with a 256x256 image (instead of a 512x256 with a fake 'B' image) the output is stretched. Is there any way to disable this, so that we don't have to create the fake 'B' image? Is there something I am missing here?

samhains avatar May 22 '17 03:05 samhains

I also had to stitch A and B as well, for testing. If we dont stitch it takes half of the image as input. I think this was done so that the target output B can be (internally) compared with resultant output B', and can calculate errors etc. It does waste space, for separate A and B and as well as AB stitched input images. Also in the results folder it generates input A, target B, and output B'. So lot of space wastage.

janyasir avatar Nov 27 '17 10:11 janyasir

hello,if I just have A and don't have B,can I use test.lua to get the prediction of A? thanks.

yangxingyu588 avatar Oct 19 '19 03:10 yangxingyu588

The current Lua test code only supports (A, B) pairs as input. You can modify the test code by changing this line. Our PyTorch version supports this function.

junyanz avatar Oct 20 '19 01:10 junyanz