Comments (7)
新建一个自己的数据集对象继承 https://github.com/aliyun/conditional-lane-detection/blob/master/mmdet/datasets/custom.py
可以参考 https://mmdetection.readthedocs.io/en/latest/2_new_data_model.html
from conditional-lane-detection.
@jyang68sh 感谢您的回答!
from conditional-lane-detection.
@jyang68sh 大佬您好,我看完您法的连接了,找到了一个demo,但是测试的时候,还是报错
Traceback (most recent call last): File "/home/gdc/gong/lane-detection/conditional-lane-detection-master/test.py", line 7, in <module> result=inference_detector(model,img) File "/home/gdc/gong/lane-detection/conditional-lane-detection-master/mmdet/apis/inference.py", line 82, in inference_detector data = test_pipeline(data) File "/home/gdc/gong/lane-detection/conditional-lane-detection-master/mmdet/datasets/pipelines/compose.py", line 29, in __call__ data = t(data) File "/home/gdc/gong/lane-detection/conditional-lane-detection-master/mmdet/datasets/pipelines/lane_formating.py", line 576, in __call__ valid = self.target(results) File "/home/gdc/gong/lane-detection/conditional-lane-detection-master/mmdet/datasets/pipelines/lane_formating.py", line 477, in target gt_points = results['gt_points'] KeyError: 'gt_points'
也就是说还是需要标签信息
请问您之前测试,这个问题怎么解决的
from conditional-lane-detection.
config 文件, test里的ann_dir = ‘’
评测的时候不要加 --eval 选项
你看下代码,不要让他走评测metric那里
from conditional-lane-detection.
@jyang68sh 感谢您的恢复,我明白您的思路了,但是我查看configs下的curvelanes_small_test.py,您说的ann_dir没有选项,demo也没有加--eval
`from mmdet.apis import init_detector,inference_detector
import mmcv
config_file = 'configs/condlanenet/curvelanes/curvelanes_small_test.py'
checkpoint_file = 'curvelanes_small.pth'
model=init_detector(config_file,checkpoint_file,device='cuda:0')
img='dataset/test/bgr8_zacg_1650609899571658538.jpg'
result=inference_detector(model,img)
model.show_result(img, result)
`
from conditional-lane-detection.
那你可能手动制止一下读取真值的方法,然后传回空的字典。看下代码吧
from conditional-lane-detection.
@jyang68sh 好的。再次感谢您的思路,我看一下代码执行过程
from conditional-lane-detection.
Related Issues (20)
- KeyError: 'gt_points' when run the image_demo.py HOT 1
- CUlane evaluate, help HOT 2
- condlanenet.py
- condlanenet.py HOT 1
- Questions about hyper-params
- Can't the performance of the algorithm be reproduced on curvelanes? HOT 2
- Question about the RIM module? HOT 1
- run
- aboult albumentation
- lane formating bug?
- CondLaneNet on a new Dataset HOT 1
- tools.condlanenet.common Issue
- Why minus 2.19 in ctnet_head? HOT 1
- Question about img_norm_cfg HOT 2
- 关于clamp_line函数的作用
- is ONNX conversion available?
- How can l solve this problem? HOT 2
- GPU support for A100 or 3090?
- Results with ResNet-50 and ResNet-101 backbone
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conditional-lane-detection.