You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@inoue0426, It doesn't seem to be a TensorNets issue. You can try the sample codes on the directory where the cat.png exists. Or, you can also give the complete path as @alain2208 said.
"from tensornets import utils
img = utils.load_img('cat.png', target_size=256, crop_size=224)
assert img.shape == (1, 224, 224, 3)"
This script get error.
AttributeError Traceback (most recent call last)
in ()
1 from tensornets import utils
----> 2 img = utils.load_img('cat.png', target_size=256, crop_size=224)
3 assert img.shape == (1, 224, 224, 3)
~/.conda/envs/tensor/lib/python3.6/site-packages/tensornets/utils.py in load_img(path, grayscale, target_size, crop_size, interp)
176 if isinstance(target_size, int):
177 hw_tuple = tuple([x * target_size // min(img.shape[:2])
--> 178 for x in img.shape[1::-1]])
179 else:
180 hw_tuple = (target_size[1], target_size[0])
AttributeError: 'NoneType' object has no attribute 'shape'
The text was updated successfully, but these errors were encountered: