Code Monkey home page Code Monkey logo

Comments (7)

jxlijunhao avatar jxlijunhao commented on May 19, 2024 14

If used CUDA_VISIBLE_DEVICES to assign just a single GPU, comment
net = torch.nn.DataParallel(ssd_net)
It works for me.

from ssd.pytorch.

JoachimHugonot avatar JoachimHugonot commented on May 19, 2024

Try using

os.environ['CUDA_LAUNCH_BLOCKING'] = 1

as :

Sometimes the error message can be caught at a different place compared to where it is occuring because of the asynchronous nature of CUDA (pasted from there)

from ssd.pytorch.

chauhan-utk avatar chauhan-utk commented on May 19, 2024

@JoachimHugonot Okay! I will use this in future runs. Though this error is quite arbitrary.

from ssd.pytorch.

JoachimHugonot avatar JoachimHugonot commented on May 19, 2024

@chauhan-utk x
Could you try to scale the loss in :

loss = loss_l + loss_c

like this :
loss = (loss_l + loss_c)/1000.0
and report back the results ?
For me it solved the crashes, but I still need to run more tests to be sure.

from ssd.pytorch.

amdegroot avatar amdegroot commented on May 19, 2024

Hi! What is your slight modification? I have trained the model recently using batch size 32 through 120k iterations without any issues, so I cannot comment without knowledge of the change you made.

from ssd.pytorch.

chauhan-utk avatar chauhan-utk commented on May 19, 2024

I had changed the line 88 in multibox_loss.py to include a custom loss function. So far my observation have been that loc_p contains the best single prediction for the corresponding ground truth loc_t and so we can use something other than smooth L1 loss. The resultant saved in loss_t is a single dimension tensor just as it would by using the existing loss function. Rest everything was same.

Since this is not a particular issue with the existing code and the above methods have been somewhat effective, I am closing this issue.

from ssd.pytorch.

DontGiveUpEasily avatar DontGiveUpEasily commented on May 19, 2024

I had similar issues. Any thoughts?

from ssd.pytorch.

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.