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

python3: can't open file '/tmp/pip-req-build-6jhijoew/tools/train_net.py #6

Closed
2019ZSS opened this issue Mar 21, 2021 · 8 comments
Closed

Comments

@2019ZSS
Copy link

2019ZSS commented Mar 21, 2021

I follow the instructions and install dependencies,
cd /YOLOF/playground/detection/coco/yolof/yolof.res50.C5.1x
But when I input:
pods_train --num-gpus 2
I get a problem:
python3: can't open file '/tmp/pip-req-build-6jhijoew/tools/train_net.py': [Errno 2] No such file or directory
this what happen?

@chensnathan
Copy link
Collaborator

Could you provide more details about how you install cvpods?

@2019ZSS
Copy link
Author

2019ZSS commented Mar 21, 2021

@chensnathan
Copy link
Collaborator

As we already include the cvpods package in this repo, you may install and run with the following steps:

git clone git@github.com:megvii-model/YOLOF.git
cd YOLOF/
python setup.py develop
cd ./playground/detection/coco/yolof/yolof.res50.C5.1x
pods_train --num-gpus 2

BTW, thanks for reporting this. Will refactor the codebase soon to avoid ambiguity.

@2019ZSS
Copy link
Author

2019ZSS commented Mar 21, 2021

Thanks for your reply.
I did as you said , but I get the same problem.
Maybe that's not the problem

@chensnathan
Copy link
Collaborator

If you follow the steps above, the error should not start with '/tmp/pip'. It will use the file for training whose path is YOLOF/tools/train_net.py. You can check that in the file YOLOF/tools/pods_train.

Have you uninstalled the previously installed cvpods before you re-install this repo? Or are there any errors that occur during the installation?

@2019ZSS
Copy link
Author

2019ZSS commented Mar 21, 2021

I reinstall cvpods and YOLOF to solve the above problem.
But when I run: pods_train --num-gpus 2
I get a new problem:

Traceback (most recent call last):
  File "/home/stu/zss/YOLOF/tools/train_net.py", line 23, in <module>
    from cvpods.engine import RUNNERS, default_argument_parser, default_setup, hooks, launch
  File "/home/stu/zss/YOLOF/cvpods/engine/__init__.py", line 3, in <module>
    from .hooks import *
  File "/home/stu/zss/YOLOF/cvpods/engine/hooks.py", line 15, in <module>
    from cvpods.evaluation.testing import flatten_results_dict
  File "/home/stu/zss/YOLOF/cvpods/evaluation/__init__.py", line 9, in <module>
    from .lvis_evaluation import LVISEvaluator
  File "/home/stu/zss/YOLOF/cvpods/evaluation/lvis_evaluation.py", line 12, in <module>
    from lvis import LVISEval, LVISResults
ModuleNotFoundError: No module named 'lvis'

I try to install python-lvis module, but this is not useful.

@2019ZSS
Copy link
Author

2019ZSS commented Mar 21, 2021

soory, I shoudl pip intall lvis module, now it's work. thanks

@2019ZSS 2019ZSS closed this as completed Mar 21, 2021
@2019ZSS
Copy link
Author

2019ZSS commented Mar 21, 2021

Now it's ok

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