cvpods icon indicating copy to clipboard operation
cvpods copied to clipboard

How to train

Open PanffeeReal opened this issue 2 years ago • 5 comments

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!!

PanffeeReal avatar Aug 27 '22 09:08 PanffeeReal

i have same, do you solve it?

liuhaolinwen avatar Oct 10 '22 10:10 liuhaolinwen

i have same, do you solve it?

dream1001 avatar Mar 18 '23 09:03 dream1001

i have same, do you solve it?

please ask to you had slove it?

dream1001 avatar Mar 18 '23 09:03 dream1001

does your working directory contain a config.py?

poodarchu avatar Mar 23 '23 08:03 poodarchu

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

ksv87 avatar May 31 '24 13:05 ksv87