Giter Site home page Giter Site logo

Comments (9)

guoyan1991 avatar guoyan1991 commented on June 5, 2024

I set up opt.conditional=false
so model =nn.gModule({input},{reconstruction,mean,log_var})
and the error is happened in this sentence:
reconstruction,mean,log_var,predClassSores=unpack(model:forward(droppedInputs))
I tried to debug the code. And I found that the main problem appeared in the section:model:forward(droppedInputs)
‘droppedInputs’ is a 1×20×224×224 torch.CudaTensor
I don't know what the correct input for this nn.gModule.
Thanks for your help.

from synthesize3dviadepthorsil.

Amir-Arsalan avatar Amir-Arsalan commented on June 5, 2024

@guoyan1991 I'm not sure what you mean by the .mat files. We did not use any .mat files for this work except when we were processing the NYUD data set to get the objects (chairs) out. Could you elaborate on this?

Regarding the error you're getting: I'm afraid you have modified the code because I do not see any code at lines 300 and or 406. Based on your second post, I guess the problem is you need to feed more than 1 sample at a time to the network. The BatchNormalization layers expect 4D tensors [N x C x R x R] where N is the number of 3D shapes, C is the number of channels (20 here) and R is the resolution. Let met know if this can resolve the issue. So you need to at least input two samples to the network such that N >= 2

from synthesize3dviadepthorsil.

guoyan1991 avatar guoyan1991 commented on June 5, 2024

First of all, thank you very much for your reply.
I download the ShapeNet Core dataset from website: https://www.shapenet.org/ , I gusse the dataset of PASCAL 3D release 1.0 can be use to repeat your experiments. However, the CAD Models in compressed files all are .mat file. It can only be opened with matlab. I can't use /renderDepth/runRendering.bat to get 20 depth maps with these .mat files. Because these files are not object files.
Is it the right dataset which I download ? This question confused me,looking forward to your answer.

For the error, thank you for your suggestion. I will continue to try and give you a reply soon.

from synthesize3dviadepthorsil.

Amir-Arsalan avatar Amir-Arsalan commented on June 5, 2024

@guoyan1991 We did not use the PASCAL 3D data set so I am not sure how you can use that. To use the rendering tool we have provided, you need to have access to the .ply files of the 3D meshes. If you want to use ShapeNet Core you can download the pre-processed data set through the links provided in the repository so that you can skip the rendering part (unless you want to render from views different than what we used).

from synthesize3dviadepthorsil.

guoyan1991 avatar guoyan1991 commented on June 5, 2024

Thank you very much. I have used the two models of the preprocessed data set you provided to training. The two problems have been solved. But there are new problems as follow:

cudnnFindConvolutionBackwardDataAlgorithm failed: 2 convDesc=[mode : CUDNN_CROSS_CORRELATION datatype : CUDNN_DATA_FLOAT] hash=-dimA4,420,56,56 -filtA420,280,4,4 4,280,112,112 -padA1,1 -convStrideA2,2 CUDNN_DATA_FLOAT
/install/torch/install/bin/luajit: /install/torch/install/share/lua/5.1/nn/Container.lua:67:
In 12 module of nn.Sequential:
/install/torch/install/share/lua/5.1/cudnn/find.lua:483: cudnnFindConvolutionBackwardDataAlgorithm failed, sizes: convDesc=[mode : CUDNN_CROSS_CORRELATION datatype : CUDNN_DATA_FLOAT] hash=-dimA4,420,56,56 -filtA420,280,4,4 4,280,112,112 -padA1,1 -convStrideA2,2 CUDNN_DATA_FLOAT
stack traceback:
[C]: in function 'error'
/install/torch/install/share/lua/5.1/cudnn/find.lua:483: in function 'backwardDataAlgorithm'
...h/install/share/lua/5.1/cudnn/SpatialFullConvolution.lua:88: in function <...h/install/share/lua/5.1/cudnn/SpatialFullConvolution.lua:83>
[C]: in function 'xpcall'
/install/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
/install/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'func'
/install/torch/install/share/lua/5.1/nngraph/gmodule.lua:345: in function 'neteval'
/install/torch/install/share/lua/5.1/nngraph/gmodule.lua:380: in function 'forward'
2_train.lua:289: in function 'opfunc'
/install/torch/install/share/lua/5.1/optim/adam.lua:37: in function 'adam'
2_train.lua:377: in main chunk
[C]: in function 'dofile'
main.lua:130: in main chunk
[C]: in function 'dofile'
...tall/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405e90

WARNING: If you see a stack trace below, it doesn't point to the place where this error occurred. Please use only the one above.
stack traceback:
[C]: in function 'error'
/install/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors'
/install/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'func'
/install/torch/install/share/lua/5.1/nngraph/gmodule.lua:345: in function 'neteval'
/install/torch/install/share/lua/5.1/nngraph/gmodule.lua:380: in function 'forward'
2_train.lua:289: in function 'opfunc'
/install/torch/install/share/lua/5.1/optim/adam.lua:37: in function 'adam'
2_train.lua:377: in main chunk
[C]: in function 'dofile'
main.lua:130: in main chunk
[C]: in function 'dofile'
...tall/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405e90

I used the original version of the code this time,
The code for line 289 of 2_train.lua is:
reconstruction,mean,log_var,predClassSores=unpack(model:forward(droppedInputs))
I did not find out the reasons and solutions about this problem on the Internet.
Thanks for your help!

from synthesize3dviadepthorsil.

Amir-Arsalan avatar Amir-Arsalan commented on June 5, 2024

@guoyan1991 I'm not sure why you are getting this error but it seems that cuDNN is complaining. What's the cuDNN version you are using? I just started re-training a model with cuDNN 7.05 and CUDA 8.0 and it works fine.

from synthesize3dviadepthorsil.

guoyan1991 avatar guoyan1991 commented on June 5, 2024

Thank you very much for your help. This problem is caused by memory of GPU.

from synthesize3dviadepthorsil.

guoyan1991 avatar guoyan1991 commented on June 5, 2024

The memory of GPU is not enough.

from synthesize3dviadepthorsil.

Amir-Arsalan avatar Amir-Arsalan commented on June 5, 2024

@guoyan1991 You can change the argument opt.nCh and set it to lower values or reduce opt.batchSize. If I remember correctly you need about 6-7GBs or GPU memory with the default parameters.

from synthesize3dviadepthorsil.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.