Code Monkey home page Code Monkey logo

Comments (9)

mm-assistant avatar mm-assistant commented on June 22, 2024

We recommend using English or English & Chinese for issues so that we could have broader discussion.

from playground.

xin-li-67 avatar xin-li-67 commented on June 22, 2024

Hi, can you check what version of MMDet you are using?? It should be mmdet 3.0.

from playground.

Bentonmaster avatar Bentonmaster commented on June 22, 2024

嗨,你能检查一下你正在使用的是什么版本的MMDet吗?它应该是 mmdet 3.0。

Thanks, I was able to get the MMDet up and running, but it came up during code check:
感谢,我将mmdet更新后能够进入运行阶段,但是在代码检测时出现:

Traceback (most recent call last):
  File "detector_sam_demo.py", line 509, in <module>
    main()
  File "detector_sam_demo.py", line 436, in main
    det_model = build_detecter(args)
  File "detector_sam_demo.py", line 166, in build_detecter
    config.model.roi_head.mask_head = None
  File "/home/gcbm/workspace/anaconda3/envs/segment/lib/python3.8/site-packages/mmengine/config/config.py", line 53, in __getattr__
    raise AttributeError(f"'{self.__class__.__name__}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'roi_head'

This is a new problem, I didn't find a solution,my environment mmcv=2.0.0,mmdet=3.0.0,mmengine=0.7.2
这是一个新的问题,我没有找到解决方案,我的环境mmcv=2.0.0,mmdet=3.0.0,mmengine=0.7.2

from playground.

xin-li-67 avatar xin-li-67 commented on June 22, 2024

嗨,你能检查一下你正在使用的是什么版本的MMDet吗?它应该是 mmdet 3.0。

Thanks, I was able to get the MMDet up and running, but it came up during code check: 感谢,我将mmdet更新后能够进入运行阶段,但是在代码检测时出现:

Traceback (most recent call last):
  File "detector_sam_demo.py", line 509, in <module>
    main()
  File "detector_sam_demo.py", line 436, in main
    det_model = build_detecter(args)
  File "detector_sam_demo.py", line 166, in build_detecter
    config.model.roi_head.mask_head = None
  File "/home/gcbm/workspace/anaconda3/envs/segment/lib/python3.8/site-packages/mmengine/config/config.py", line 53, in __getattr__
    raise AttributeError(f"'{self.__class__.__name__}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'roi_head'

This is a new problem, I didn't find a solution,my environment mmcv=2.0.0,mmdet=3.0.0,mmengine=0.7.2 这是一个新的问题,我没有找到解决方案,我的环境mmcv=2.0.0,mmdet=3.0.0,mmengine=0.7.2

can you share your test command??

from playground.

Bentonmaster avatar Bentonmaster commented on June 22, 2024

@xin-li-67

The test code I use is the Dino test code provided in the example
我用的测试代码就是示例中提供的dino的测试代码

python detector_sam_demo.py ../images/cat_remote.jpg \
    ../mmdetection/configs/dino/dino-5scale_swin-l_8xb2-12e_coco.py \
    dino-5scale_swin-l_8xb2-12e_coco_20230228_072924-a654145f.pth  \
    --sam-device cpu

from playground.

xin-li-67 avatar xin-li-67 commented on June 22, 2024

@xin-li-67

The test code I use is the Dino test code provided in the example 我用的测试代码就是示例中提供的dino的测试代码

python detector_sam_demo.py ../images/cat_remote.jpg \
    ../mmdetection/configs/dino/dino-5scale_swin-l_8xb2-12e_coco.py \
    dino-5scale_swin-l_8xb2-12e_coco_20230228_072924-a654145f.pth  \
    --sam-device cpu

Seems this is an existing issue. We will look into this. Thanks.

from playground.

hhaAndroid avatar hhaAndroid commented on June 22, 2024

@xin-li-67 Hi. Did you fix it?

from playground.

xin-li-67 avatar xin-li-67 commented on June 22, 2024

@xin-li-67

The test code I use is the Dino test code provided in the example 我用的测试代码就是示例中提供的dino的测试代码

python detector_sam_demo.py ../images/cat_remote.jpg \
    ../mmdetection/configs/dino/dino-5scale_swin-l_8xb2-12e_coco.py \
    dino-5scale_swin-l_8xb2-12e_coco_20230228_072924-a654145f.pth  \
    --sam-device cpu

I did a quick fix on this, would you like to try like this #50?

from playground.

hhaAndroid avatar hhaAndroid commented on June 22, 2024

#50

from playground.

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.