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

How to train #93

Open
PanffeeReal opened this issue Aug 27, 2022 · 5 comments
Open

How to train #93

PanffeeReal opened this issue Aug 27, 2022 · 5 comments
Assignees

Comments

@PanffeeReal
Copy link

I did installation guided by this webpage and successfully installed cvpods.
After that I tried to train a detector like retinanet but meet a file problem :
log is here:
(pytorch) lpf@lpf-AW17:~/cvpods/playground/detection/coco/retinanet/retinanet.res50.fpn.coco.multiscale.1x$ pods_train --num-gpus 8
Traceback (most recent call last):
File "/home/lpf/cvpods/tools/train_net.py", line 151, in
from config import config
ModuleNotFoundError: No module named 'config'

What happeded ? I am very confused about that because this comes out without any proper reaseon, could you please help me ?thank you very much!!

@liuhaolinwen
Copy link

i have same, do you solve it?

1 similar comment
@dream1001
Copy link

i have same, do you solve it?

@dream1001
Copy link

i have same, do you solve it?

please ask to you had slove it?

@poodarchu
Copy link
Member

does your working directory contain a config.py?

@ksv87
Copy link

ksv87 commented May 31, 2024

diff --git a/tools/train_net.py b/tools/train_net.py
index 589ba78..c3eef73 100644
--- a/tools/train_net.py
+++ b/tools/train_net.py
@@ -149,7 +149,7 @@ if __name__ == "__main__":
     if args.num_gpus is None:
         args.num_gpus = torch.cuda.device_count()

-    extra_sys_path = ".." if args.dir is None else args.dir
+    extra_sys_path = "." if args.dir is None else args.dir
     sys.path.append(extra_sys_path)

     from config import config

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

5 participants