Open mahesh557 opened 3 years ago
do your fix it?
nope.. can't do anything..
The source code will resize image's height and weight to 16 multiple. So you can resize your image too using code like:
oh = int(round(oh / 16) * 16) ow = int(round(ow / 16) * 16)
I can reproduce this when running sequentially one after another, but I can not reproduce this with Full Pipeline.
Could be related to h = int(round(oh / 4) * 4)
vs h = int(round(oh / 16) * 16)
detection.py
produces two folders input and mask, input containing your original image with the right rescale.
After running detection.py
your command should be python test.py --Scratch_and_Quality_restore --test_input output/input --test_mask output/mask --outputs_dir output --gpu_ids -1
providing the right path for --test_input
flag
run.py
works fine because it propagates paths correctly.
how to solve this ValueError? everyone who know?
HI,
I tried to generate mask for image of size 1180 768 It produced mask of size 1184 768
Due to mismatched sizes, restoration failed with below error