You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
from mmdet.datasets import build_dataset
from mmdet.models import build_detector
from mmdet.apis import train_detector
Build dataset
datasets = [build_dataset(cfg.data.train)]
Build the detector
model = build_detector(cfg.model)
Add an attribute for visualization convenience
model.CLASSES = datasets[0].CLASSES
Create work_dir
mmcv.mkdir_or_exist(osp.abspath(cfg.work_dir))
train_detector(model, datasets, cfg, distributed=False, validate=True)
I am facing this issue while running the above piece of code.
ValueError Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/mmcv/utils/registry.py in build_from_cfg(cfg, registry, default_args)
68 try:
---> 69 return obj_cls(**args)
70 except Exception as e:
4 frames
ValueError: invalid literal for int() with base 10: '0.00'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/mmcv/utils/registry.py in build_from_cfg(cfg, registry, default_args)
70 except Exception as e:
71 # Normal TypeError does not print class name.
---> 72 raise type(e)(f'{obj_cls.name}: {e}')
73
74
ValueError: SixrayDetection: invalid literal for int() with base 10: '0.00'
Beta Was this translation helpful? Give feedback.
All reactions