Giter Site home page Giter Site logo

Question about main.py about exu-net HOT 3 CLOSED

wngh1187 avatar wngh1187 commented on June 23, 2024
Question about main.py

from exu-net.

Comments (3)

wngh1187 avatar wngh1187 commented on June 23, 2024

Thank you for your interest in our research.
We used pytorch's multiprocessing package to share the file system between gpus.
The "run" function in main.py called from the "spawn" function needs the process index.
Information related to this can be found at https://pytorch.org/docs/stable/_modules/torch/multiprocessing/spawn.html#spawn.

Additionally, we confirmed that training works when we run the run/triain.py file in the current code.
Do you have any problems running our code?

from exu-net.

wtl-lang avatar wtl-lang commented on June 23, 2024

Thank you, when I run the main.py, there is an error "the function run(line 37 in main.py) cannot be found in main", I move the function 'run' to another file, the code runs. Also, there are some errors about the "all_gather()", which makes the list can not be indexed. I run the code in one GPU, so I write below:
lists = all_gather(list)
lists_ = list[0]
for i in range(len(list_)):
Finally, the code runs with no errors.

from exu-net.

wngh1187 avatar wngh1187 commented on June 23, 2024

Thank you for checking.
Our code is based on a multi-GPU environment.
It seems that an error occurred to you because we did not consider the single GPU environment.
First of all, you can use the code as you modified it, and I will upload a single GPU code as soon as possible.

from exu-net.

Related Issues (7)

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.