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
This line of code will scaling the picture to 256 * 256.However, if I input a 296 * 294 picture, the following error will appear
"RuntimeError: Sizes of tensors must match except in dimension 2. Got 296 and 294 (The offending index is 0)"
after I manually scaled the picture to 256 * 256, the program can run correctly and output the results.
The text was updated successfully, but these errors were encountered:
line54:transforms.Resize(args.img_size)
This line of code will scaling the picture to 256 * 256.However, if I input a 296 * 294 picture, the following error will appear
"RuntimeError: Sizes of tensors must match except in dimension 2. Got 296 and 294 (The offending index is 0)"
after I manually scaled the picture to 256 * 256, the program can run correctly and output the results.
The text was updated successfully, but these errors were encountered: