Giter Site home page Giter Site logo

Comments (7)

jyang68sh avatar jyang68sh commented on August 16, 2024

新建一个自己的数据集对象继承 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.

GongDianCheng avatar GongDianCheng commented on August 16, 2024

@jyang68sh 感谢您的回答!

from conditional-lane-detection.

GongDianCheng avatar GongDianCheng commented on August 16, 2024

@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.

jyang68sh avatar jyang68sh commented on August 16, 2024

config 文件, test里的ann_dir = ‘’
评测的时候不要加 --eval 选项
你看下代码,不要让他走评测metric那里

from conditional-lane-detection.

GongDianCheng avatar GongDianCheng commented on August 16, 2024

@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.

jyang68sh avatar jyang68sh commented on August 16, 2024

那你可能手动制止一下读取真值的方法,然后传回空的字典。看下代码吧

from conditional-lane-detection.

GongDianCheng avatar GongDianCheng commented on August 16, 2024

@jyang68sh 好的。再次感谢您的思路,我看一下代码执行过程

from conditional-lane-detection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.