-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistent tensor size #6
Comments
Hi, I also have the same problem. In /data/dataset.lua line 339, I checked the size of data[i] and dataTable[i] and found that they really had different sizes. The size of data[i] is 1x96x96, while dataTable[i] has four different sizes (e.g., 1x128x96, 1x96x128, 1x143x96, 1x96x144) corresponding to 'nThreads = 4'. As a result, the error 'inconsistent tensor size' occurred. |
Hi I don't have this problem while training. Yes data[i] has size 96x96. However dataTable[i] uses sampleHookTrain which relates to the function local trainHook=function(self,path) in donkey_folder_supres.lua. The function returns two outputs (input_y, and input_y2) where the first one is of size 96x96 and the second one has size 24x24. I do not know where other sizes come from. If you know what caused the problem, please let me know and I can update the repository. Thanks! |
I have also got this problem. |
Can you tell us your torch and other libs version? |
Hello! Sorry I fixed the issue which is caused by image size. When the input image's height and width are different there will be such error. |
@leehomyc thanks. |
Hi, do you know the following errors. thanks
/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/threads/threads.lua:183: [thread 1 callback] .../Photo-Realistic-Super-Resoluton-master/data/dataset.lua:339: inconsistent tensor size at /root/torch/pkg/torch/lib/TH/generic/THTensorCopy.c:7
stack traceback:
[C]: in function 'copy'
.../Photo-Realistic-Super-Resoluton-master/data/dataset.lua:339: in function 'tableToOutput'
.../Photo-Realistic-Super-Resoluton-master/data/dataset.lua:359: in function <.../Photo-Realistic-Super-Resoluton-master/data/dataset.lua:347>
[C]: in function 'xpcall'
/root/torch/install/share/lua/5.1/threads/threads.lua:234: in function 'callback'
/root/torch/install/share/lua/5.1/threads/queue.lua:65: in function </root/torch/install/share/lua/5.1/threads/queue.lua:41>
[C]: in function 'pcall'
/root/torch/install/share/lua/5.1/threads/queue.lua:40: in function 'dojob'
[string " local Queue = require 'threads.queue'..."]:15: in main chunk
The text was updated successfully, but these errors were encountered: