-
Notifications
You must be signed in to change notification settings - Fork 73
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
KeyError: 'Non-existent config key: MODEL.RESNETS.RADIX'Please read & provide the following #33
Comments
when i choose cfg.MODEL.WEIGHTS = '/root/detectron2/pretrain_model/COCO_InstanceSegmentation_Baselines_with_MaskR-CNN/R50-FPN-3x/model_final_f10217.pkl' it's all right ,it can train normally and i can get my own "model_final.pth",but when i use any "ResNeSt", it has some wrong |
please refer to #25 |
I think this is due to the Python path issue, just make sure you are running ./tools/train_net.py under the project root folder detectron2-ResNeSt/ |
Same error here, any update on this? |
Please install our detectron fork https://github.com/zhanghang1989/detectron2-ResNeSt/blob/resnest/INSTALL.md |
Hi @zhanghang1989 , I have followed the installation guide but I get the same error. |
HI,i am so sorry to reply you so late,in 【detectron2-ResNeSt/INSTALL.md】,it's |
@zhanghang1989 @chongruo Hi sir , this may be a mistake, please verify it.
|
@shida666 have you overcome with that issue?? i got the same issue |
you can try "git clone https://github.com/zhanghang1989/detectron2-ResNeSt.git |
i wanna use the "train_ResNeSt.py"with "ResNeSt" to train my own datasets,but it show this KeyError.
it print:
(pytorch1.4.0) root@111:~/detectron2-ResNeSt/maize_img/800600# python train_ResNeSt.py
Traceback (most recent call last):
File "train_ResNeSt.py", line 17, in
cfg.merge_from_file("/root/detectron2-ResNeSt/configs/COCO-InstanceSegmentation/mask_rcnn_ResNeSt_50_FPN_syncBN_1x_weights_dir_change.yaml") #original
File "/root/anaconda3/envs/pytorch1.4.0/lib/python3.6/site-packages/detectron2/config/config.py", line 47, in merge_from_file
self.merge_from_other_cfg(loaded_cfg)
File "/root/anaconda3/envs/pytorch1.4.0/lib/python3.6/site-packages/fvcore/common/config.py", line 118, in merge_from_other_cfg
return super().merge_from_other_cfg(cfg_other)
File "/root/anaconda3/envs/pytorch1.4.0/lib/python3.6/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
_merge_a_into_b(cfg_other, self, self, [])
File "/root/anaconda3/envs/pytorch1.4.0/lib/python3.6/site-packages/yacs/config.py", line 464, in _merge_a_into_b
_merge_a_into_b(v, b[k], root, key_list + [k])
File "/root/anaconda3/envs/pytorch1.4.0/lib/python3.6/site-packages/yacs/config.py", line 464, in _merge_a_into_b
_merge_a_into_b(v, b[k], root, key_list + [k])
File "/root/anaconda3/envs/pytorch1.4.0/lib/python3.6/site-packages/yacs/config.py", line 477, in _merge_a_into_b
raise KeyError("Non-existent config key: {}".format(full_key))
KeyError: 'Non-existent config key: MODEL.RESNETS.RADIX'
my train_ResNeSt.py :
import random
from detectron2.utils.visualizer import Visualizer
from detectron2.data.catalog import MetadataCatalog, DatasetCatalog
import maize_img
import cv2
from detectron2.engine import DefaultTrainer
from detectron2.config import get_cfg
from detectron2.utils.logger import setup_logger
import os
setup_logger()
if name == "main":
cfg = get_cfg()
how can i solve this problem ?please help me
The text was updated successfully, but these errors were encountered: