Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about main.py #2

Closed
wtl-lang opened this issue Sep 23, 2022 · 3 comments
Closed

Question about main.py #2

wtl-lang opened this issue Sep 23, 2022 · 3 comments

Comments

@wtl-lang
Copy link

In main.py line 177, one parameter 'process_id' for function 'run' is missing?

@wngh1187
Copy link
Owner

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?

@wtl-lang
Copy link
Author

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.

@wngh1187
Copy link
Owner

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.

@wtl-lang wtl-lang closed this as completed Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants