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 EQL v2 with my imbalance dataset( coco_type format)? #24

Closed
lyon-v opened this issue Jul 31, 2022 · 3 comments
Closed

How to train EQL v2 with my imbalance dataset( coco_type format)? #24

lyon-v opened this issue Jul 31, 2022 · 3 comments

Comments

@lyon-v
Copy link

lyon-v commented Jul 31, 2022

Hi, I want to train EQL v2 with my dataset ,not LVIS . And my dataset is not balance. I modify the dataset path in config. And Where should I modify in the code.

@lyon-v lyon-v changed the title How to train BAGS with my imbalance dataset( coco_type format)? How to train EQL v2 with my imbalance dataset( coco_type format)? Aug 1, 2022
@lyon-v
Copy link
Author

lyon-v commented Aug 1, 2022

Traceback (most recent call last):
File "/home/wuliang/cvpro/eqlv2-master/mmdet/datasets/openimage.py", line 106, in evaluate
from .openimage_eval import OpenimageEval
ModuleNotFoundError: No module named 'mmdet.datasets.openimage_eval'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./tools/train.py", line 153, in
main()
File "./tools/train.py", line 149, in main
meta=meta)
File "/home/wuliang/cvpro/eqlv2-master/mmdet/apis/train.py", line 143, in train_detector
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/home/wuliang/anaconda3/envs/mmlab6/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 122, in run
epoch_runner(data_loaders[i], **kwargs)
File "/home/wuliang/anaconda3/envs/mmlab6/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 46, in train
self.call_hook('after_train_epoch')
File "/home/wuliang/anaconda3/envs/mmlab6/lib/python3.7/site-packages/mmcv/runner/base_runner.py", line 298, in call_hook
getattr(hook, fn_name)(self)
File "/home/wuliang/cvpro/eqlv2-master/mmdet/core/evaluation/eval_hooks.py", line 74, in after_train_epoch
self.evaluate(runner, results)
File "/home/wuliang/cvpro/eqlv2-master/mmdet/core/evaluation/eval_hooks.py", line 32, in evaluate
results, logger=runner.logger, **self.eval_kwargs)
File "/home/wuliang/cvpro/eqlv2-master/mmdet/datasets/openimage.py", line 108, in evaluate
raise ImportError('Please follow config/lvis/README.md to '
ImportError: Please follow config/lvis/README.md to install open-mmlab forked lvis first.

@tztztztztz
Copy link
Owner

tztztztztz commented Aug 2, 2022

Since the format is coco-like, I recommend creating a new class inherited from LVIS.

@DATASETS.register_module()
class YourDataset(LVISDataset):
    CLASSES = ['name1', 'name2']

@lyon-v
Copy link
Author

lyon-v commented Aug 2, 2022

thanks.

@lyon-v lyon-v closed this as completed Aug 2, 2022
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

2 participants