Coder Social home page Coder Social logo

Comments (5)

UESTCSober avatar UESTCSober commented on May 29, 2024 1

It's my bad, bro. In unet2d_sphere.py, I set loading base model from local and use its weights model, that's why it is a orderedDict.
After set network proxy, I can start training now.
Thank you very much. The only problem is that the training speed on a single GPU is too slow. Do you think design a more lightweight model will be a optimization direction?

from scenerf.

anhquancao avatar anhquancao commented on May 29, 2024

Hi, currently the code is implemented to handle one item per GPU. Therefore, if you change the number of GPUs to 1, you also need to adjust the batch size to 1.

from scenerf.

UESTCSober avatar UESTCSober commented on May 29, 2024

Hi, currently the code is implemented to handle one item per GPU. Therefore, if you change the number of GPUs to 1, you also need to adjust the batch size to 1.

Thanks for your quick reply. I set batch size = 1 as your advice and also follow pytorch-lightning's requirment set "gpus = 1" , but the same error still occurs. In unet2d_sphere.py class Encoder's function foward, I guess this may be a training structure with multiple GPUs, only involving multiple GPUs_ modules. Should the code be modified appropriately?

from scenerf.

UESTCSober avatar UESTCSober commented on May 29, 2024

I use "print( ) function" to check where the problem occurs.
When I maintain the code as its initial state, I can not go into line217, because Original_model is an orderedDict, it does not have attribute "_modules"
image
When I change the code to delete "_modules" as this, I can not go into line218, I just got block.x.x.bnx, but k != blocks
image
So will "self.original_model._modules.items( )" is necessary?
I still set "batch size = 1" and "gpus = 1"

from scenerf.

anhquancao avatar anhquancao commented on May 29, 2024

Hi @UESTCSober,
I am pleased to hear that!
Yes, the training is quite slow, I think you can checkout other NeRFs papers that propose techniques speed up the training process like a triplane representation as in this work https://anantarb.github.io/triplanenet

from scenerf.

Related Issues (20)

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.