Closed cpury closed 5 years ago
On lines 647 and 663 of UGATIT.py change: sample_image = np.asarray(load_test_data(sample_file)) to: sample_image = np.asarray(load_test_data(sample_file, size=self.img_size))
Awesome! If you're running this in the cloud and are too lazy to fork the project like me, this will fix it:
sed -i 's/load_test_data(sample_file)/load_test_data(sample_file, size=self.img_size)/g' UGATIT/UGATIT.py
I wanted to train a test model via:
python main.py --dataset mydata --light=True --iteration=5000 --img_size=100 --save_freq=20
That seems to work fine. However, when running the test command, I get:
Seems to me the model has the right size, but the loaded data in test mode defaults to 256?