-
Notifications
You must be signed in to change notification settings - Fork 80
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
in experiment dir using pods_train --num-gpus 1, there is an error No module named 'config' [Usage] #77
Comments
I see there is simliar question in https://giters.com/Megvii-BaseDetection/cvpods/issues/15 but I tried pods_train --num-gpus 1, it failed again. |
Did you run your pods_train command under network config dir? |
yes, I had Entered a specific experiment dir: ~/cvpods/playground/detection/coco/fcos/fcos.res50.fpn.coco.800size.1x then use $ pods_train --num-gpus 1 |
Could you plz tell me your commit id, I will try to reimplemented your error. |
I didn't change anything after installing cvpods.
to cvpods/tools/train_net.py |
That's wired, code here add sys path to import config. |
i use former vision cvpods (cvpods-dump_voc_to_disk.zip)and there is no errors. |
try to use |
I meet the same problem and can't solve by using python3 cvpods.tools.train_net --num-gpus 1. |
The code should be: extra_sys_path = os.getcwd() if args.dir is None else args.dir |
|
Could solve this issue when your enter config dir and rerun again @Tianhao-Qi |
Permission denied: '/data' 2022-04-28 16:24:01.988 | INFO | main::155 - Create soft link to /data/Outputs/model_logs/cvpods_playground/detection/coco/free_anchor/free_anchor.res50.fpn.coco.800size.1x File "/home/henu/anaconda3/envs/cvpods/lib/python3.8/runpy.py", line 194, in _run_module_as_main File "/media/henu/新加卷1/rxh/cvpods/tools/train_net.py", line 157, in
File "/media/henu/新加卷1/rxh/cvpods/tools/train_net.py", line 82, in main File "/media/henu/新加卷1/rxh/cvpods/cvpods/engine/setup.py", line 131, in default_setup File "/media/henu/新加卷1/rxh/cvpods/cvpods/utils/file/file_io.py", line 22, in ensure_dir File "/home/henu/.local/lib/python3.8/site-packages/megfile/smart.py", line 443, in smart_makedirs PermissionError: [Errno 13] Permission denied: '/data' |
soved, i changed the OUTPUT_DIR in my config.py |
maybe the dir is wrong. In my linux, i must input the whole dir not "../" |
Please use this template to submit your problem or your question will NOT be properly tackled.
Describe what you want to do, including:
❓ What does an API do and how to use it?
~/cvpods/playground/detection/coco/fcos/fcos.res50.fpn.coco.800size.1x$ ls
config.py net.py README.md
~/cvpods/playground/detection/coco/fcos/fcos.res50.fpn.coco.800size.1x$ pods_train --num-gpus 1
Traceback (most recent call last):
File "cvpods/tools/train_net.py", line 151, in
from config import config
ModuleNotFoundError: No module named 'config'
Pur your question here.
when I cd fcos.res50.fpn.coco.800size.1and use pods_train --num-gpus 1, there is an error No module named 'config' [Usage]
The text was updated successfully, but these errors were encountered: