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

Thanks for your work! How can I test on FAIR1M-2.0 datasets. #34

Open
sucessfullys opened this issue Feb 17, 2025 · 6 comments
Open

Thanks for your work! How can I test on FAIR1M-2.0 datasets. #34

sucessfullys opened this issue Feb 17, 2025 · 6 comments

Comments

@sucessfullys
Copy link

No description provided.

@DotWang
Copy link
Collaborator

DotWang commented Feb 17, 2025

@Duanyufa We have provided related instruction in the readme

@sucessfullys
Copy link
Author

@DotWang Thanks. I will take a try.

@sucessfullys
Copy link
Author

@DotWang srun -J mmrot -p gpu --gres=dcu:4 --ntasks=16 --ntasks-per-node=4 --cpus-per-task=8 --kill-on-bad-exit=1
python -u tools/test.py configs/mtp/fair1m/oriented_rcnn_rvsa_l_800_mae_mtp_fair1m20.py
/diwang22/work_dir/multitask_pretrain/finetune/Rotated_Detection/fair1mv2/oriented_rcnn_rvsa_l_800_mae_mtp_fair1m20/epoch_12.pth --format-only
--show-dir=/diwang22/work_dir/multitask_pretrain/finetune/Rotated_Detection/fair1mv2/oriented_rcnn_rvsa_l_800_mae_mtp_fair1m20/predict/show
--eval-options submission_dir=/diwang22/work_dir/multitask_pretrain/finetune/Rotated_Detection/fair1mv2/oriented_rcnn_rvsa_l_800_mae_mtp_fair1m20/predict/submit
--launcher="slurm"
I'm not very clear about where the related files are in this instruction. Could you give me a specific implementation? I really appreciate your help.
Test if FAIR1M-2.0 has GPU instructions?

@DotWang
Copy link
Collaborator

DotWang commented Feb 18, 2025

@Duanyufa yous should first install the mmrotate,then use the files we provided

@sucessfullys
Copy link
Author

@DotWang (Detection) duanyf@smartdsp20:/home1/duanyf/MTP-main$ python -u tools/test.py /home1/duanyf/MTP-main/RS_Tasks_Finetune/Rotated_Detection/mmrotate1.x/configs/mtp/fair1m20/oriented_rcnn_rvsa_l_800_mae_mtp_fair1m20_branches.py
/home1/duanyf/MTP-main/fair1m20-rvsa-l-mae-mtp-epoch_12.pth --format-only
--show-dir=/home1/duanyf/MTP-main/show
--eval-options submission_dir=/home1/duanyf/MTP-main/submit
python: can't open file 'tools/test.py': [Errno 2] No such file or directory
Sorry to bother you, but I want to ask if I can execute it directly with Python since I can't use srun. Also, how do I set up the FAIR1M-2.0 test set? I want to test the ISRPS competition test set.

@sucessfullys
Copy link
Author

@DotWang
(Detection) duanyf@smartdsp20:/home1/duanyf/MTP-main/mmrotate-main$ python tools/test.py /home1/duanyf/MTP-main/RS_Tasks_Finetune/Rotated_Detection/mmrotate1.x/configs/mtp/fair1m20/oriented_rcnn_rvsa_l_800_mae_mtp_fair1m20_branches.py
/home1/duanyf/MTP-main/fair1m20-rvsa-l-mae-mtp-epoch_12.pth
--work-dir /home1/duanyf/MTP-main/work_dir
--out /home1/duanyf/MTP-main/predictions.pkl
--show-dir /home1/duanyf/MTP-main/show
--launcher none
/home/duanyf/miniconda3/envs/Detection/lib/python3.8/site-packages/mmcv/init.py:20: UserWarning: On January 1, 2023, MMCV will release v2.0.0, in which it will remove components related to the training process and add a data transformation module. In addition, it will rename the package names mmcv to mmcv-lite and mmcv-full to mmcv. See https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md for more details.
warnings.warn(
Traceback (most recent call last):
File "tools/test.py", line 271, in
main()
File "tools/test.py", line 120, in main
cfg = compat_cfg(cfg)
File "/home1/duanyf/MTP-main/mmrotate-main/mmrotate/utils/compat_config.py", line 16, in compat_cfg
cfg = compat_imgs_per_gpu(cfg)
File "/home1/duanyf/MTP-main/mmrotate-main/mmrotate/utils/compat_config.py", line 39, in compat_imgs_per_gpu
if 'imgs_per_gpu' in cfg.data:
File "/home/duanyf/miniconda3/envs/Detection/lib/python3.8/site-packages/mmcv/utils/config.py", line 524, in getattr
return getattr(self._cfg_dict, name)
File "/home/duanyf/miniconda3/envs/Detection/lib/python3.8/site-packages/mmcv/utils/config.py", line 52, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'data'
How can I to solve this problem? Thanks for your help!

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