Coder Social home page Coder Social logo

A Error in training about spdcn-cac HOT 4 CLOSED

ytddd75 avatar ytddd75 commented on August 20, 2024
A Error in training

from spdcn-cac.

Comments (4)

Elin24 avatar Elin24 commented on August 20, 2024

This happened because the point locations may be out of range. I add the clip() function to avoid it, as shown in line-56:

points[:, 1] = torch.clip(points[:, 1], min=0, max=h-1)
points[:, 0] = torch.clip(points[:, 0], min=0, max=w-1)

from spdcn-cac.

ytddd75 avatar ytddd75 commented on August 20, 2024

Thanks for your thoughtful reply, the problem has been solved.
By the way, dose the code you provide allow for multi-GPU training?

from spdcn-cac.

Elin24 avatar Elin24 commented on August 20, 2024

I'm afraid the answer is no.

However, the batch size is 16, and the memory requirement is about 21G, so one 3090-GPU is enough to train this model. You can reduce the batch size and adjust the learning rate accordingly for training with limited resources.

Another way to reduce computation costs is using FP16, which may decrease the accuracy a little but save lots of memory.

from spdcn-cac.

ytddd75 avatar ytddd75 commented on August 20, 2024

Thanks for your thoughtful reply.

from spdcn-cac.

Related Issues (6)

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.