ValueError: too many values to unpackSee original GitHub issue
Traceback (most recent call last): File "main.py", line 168, in <module> inference_data = inference_data_loader(FLAGS) File "/home/ubuntu/SRGAN-tensorflow/lib/model.py", line 210, in inference_data_loader image_LR = [preprocess_test(_) for _ in image_list_LR] File "/home/ubuntu/SRGAN-tensorflow/lib/model.py", line 202, in preprocess_test h, w = im.shape ValueError: too many values to unpack
What’s this error caused by, and how do I resolve it?
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
To solve this issue in another project, I used code like this:
import scipy.ndimage as spi spi.imread(org_content, mode="RGB").astype(float)/256
to make sure that every input image was read as an RGB image.
My fix used the
sudo pip install scipy
Maybe something like my fix with
scipy, could work for SRGAN-tensorflow?