-
Notifications
You must be signed in to change notification settings - Fork 1
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
请问有没有详细的使用手册,数据集路径啥的是和mmdetection一样的么,本人小白,看到大佬的框架非常佩服,非常感谢 #1
Comments
是的,数据路径都是差不多的。基本上就是基于mmedetection修改出来的。 |
非常感谢您的回复!
但是我在按照环境配置后出现一些问题
导入报错
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年4月4日(星期二) 晚上6:26
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [Xuyihaoby/rotate_detection] 请问有没有详细的使用手册,数据集路径啥的是和mmdetection一样的么,本人小白,看到大佬的框架非常佩服,非常感谢 (Issue #1)
是的,数据路径都是差不多的。基本上就是基于mmedetection修改出来的。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
方便提供相关导入报错信息吗? |
以下是我的报错
/home/giant/miniconda3/envs/hw_rotate/bin/python /media/giant/Data/WorkSpace/hw/rotate_detection-main/tools/train.py /media/giant/Data/WorkSpace/hw/rotate_detection-main/configs/oriented_rcnn/oriented_rcnn_r50_fpn_1x.py /media/giant/Data/WorkSpace/hw/rotate_detection-main/workdirs/oriented_rcnn/oriented_rcnn_r50_fpn_1x
Traceback (most recent call last):
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/tools/train.py", line 15, in <module>
from mmdet.apis import set_random_seed, train_detector
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/apis/__init__.py", line 1, in <module>
from .inference import (async_inference_detector, inference_detector,
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/apis/inference.py", line 10, in <module>
from mmdet.core import get_classes
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/core/__init__.py", line 2, in <module>
from .bbox import * # noqa: F401, F403
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/core/bbox/__init__.py", line 1, in <module>
from .assigners import (AssignResult, BaseAssigner, CenterRegionAssigner,
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/core/bbox/assigners/__init__.py", line 1, in <module>
from .approx_max_iou_assigner import ApproxMaxIoUAssigner
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/core/bbox/assigners/approx_max_iou_assigner.py", line 4, in <module>
from ..iou_calculators import build_iou_calculator
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/core/bbox/iou_calculators/__init__.py", line 3, in <module>
from .riou2d_calculator import RBboxOverlaps2D, ConvexOverlaps2D, rbbox_overlaps, rbbox_overlaps_v2, rbbox_overlaps_v3
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/core/bbox/iou_calculators/riou2d_calculator.py", line 1, in <module>
from mmdet.ops import rbbox_iou_iof, obb_overlaps
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/ops/__init__.py", line 5, in <module>
from .polygon_geo import polygon_iou
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/ops/polygon_geo/__init__.py", line 1, in <module>
from .polygon_geo import polygon_iou
File "/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/ops/polygon_geo/polygon_geo.py", line 1, in <module>
from . import polygon_geo_cpu
ImportError: cannot import name 'polygon_geo_cpu' from partially initialized module 'mmdet.ops.polygon_geo' (most likely due to a circular import) (/media/giant/Data/WorkSpace/hw/rotate_detection-main/mmdet/ops/polygon_geo/__init__.py)
Process finished with exit code 1
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年4月4日(星期二) 晚上7:09
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [Xuyihaoby/rotate_detection] 请问有没有详细的使用手册,数据集路径啥的是和mmdetection一样的么,本人小白,看到大佬的框架非常佩服,非常感谢 (Issue #1)
方便提供相关导入报错信息吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
是否有运行以下命令去编译算子 pip install -v -e . # or "python setup.py develop"? |
有运行命令python setup.py develop |
成功编译了? |
我重头再按教程来一次 |
没事儿,如果实在不太好编译的话,这里也更加推荐原作者版或者mmrotate,我在reference下也已经贴明链接 :) |
我之前用的就是mmrotate |
conda create -n hw-rotate python=3.7 -y /home/giant/miniconda3/envs/hw-rotate/bin/python /media/giant/Data/WorkSpace/hw/rotate_detection-main/tools/train.py /media/giant/Data/WorkSpace/hw/rotate_detection-main/configs/ReDet/faster_rcnn_re50_refpn_1x.py /media/giant/Data/WorkSpace/hw/rotate_detection-main/workdirs/ReDet/faster_rcnn_re50_refpn_1x 我尝试 pip install pycocotools==12.0.2 都没有这个版本 |
实在抱歉,又来打扰了 |
你可以尝试搜索一下,有些可能是mmdetection之前遗留下来的问题;以下是我搜到的结果open-mmlab/mmdetection#3761 |
是的我也找到了,又有新的缺包,了我的天 |
/home/giant/miniconda3/envs/hw-rotate/bin/python /media/giant/Data/WorkSpace/hw/rotate_detection-main/tools/train.py /media/giant/Data/WorkSpace/hw/rotate_detection-main/configs/ReDet/faster_rcnn_re50_refpn_1x.py /media/giant/Data/WorkSpace/hw/rotate_detection-main/workdirs/ReDet/faster_rcnn_re50_refpn_1x The above exception was the direct cause of the following exception: Traceback (most recent call last): If you are using wheel distribution (cupy-cudaXX), make sure that the version of CuPy you installed matches with the version of CUDA on your host. If you are building CuPy from source, please check your environment, uninstall CuPy and reinstall it with: Check the Installation Guide for details: original error: libcudart.so.10.1: cannot open shared object file: No such file or directory Process finished with exit code 1 在build.txt中cupy-cuda101 # note: depend on cuda version,是这个的·原因吗 |
是的 你可以选择安装正确的cupy 或者直接在框架下把使用这个包的代码以及相关文件屏蔽 |
pip install torch==1.7.0+cu110 torchvision==0.8.1+cu110 torchaudio==0.7.0 -f 我下载的是cupy-cuda110,但是还是这个报错 |
这个可能需要你自己根据报错情况进行相关调整了 |
好像配好了,没有导入报错,也可以生成workdirs了,数据集格式好像不太对报错 0.0,今天真是麻烦大哥了 |
total_epochs=12 |
在这里生成文件的步骤是分开的,test数据集是切割之后检测再合并的;关于每轮的eval,由于训练效率原因直接将其flag设置为了False,所以这么改是没有效果的。这个框架不像mmrotate那么容易上手,更多的是我自己的一些记录,有些问题可能需要自己阅读源码进行相应的修改:) |
#python tools/test.py configs/oriented_rcnn/oriented_rcnn_r50_fpn_1x.py workdirs/oriented_rcnn/oriented_rcnn_r50_fpn_1x/latest.pth --format-only --eval-options submission_dir=workdirs/oriented_rcnn/Task1_results |
还有就是怎么设置才能看到每轮的eval,我好像没有找到您说的将flag设置为了False,麻烦您了。 |
测试集同样需要使用DOTA-devkit进行切割,输出使用test输出pkl文件后,利用parse results进行后处理,具体可以参考[https://github.com/csuhan/ReDet];在train中把eval默认参数进行修改,之后如若出现一些bug,你可以深入源码尝试自行修改。 |
在线训练验证确实有可能遇到这样的问题,你可以选择自行更深入的修改,或者离线通过保存每一轮的epoch进行离线验证。 |
No description provided.
The text was updated successfully, but these errors were encountered: