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

[CodeCamp2023-500]add large_image_demo #10719

Merged
merged 5 commits into from
Aug 14, 2023

Conversation

YanxingLiu
Copy link
Contributor

@YanxingLiu YanxingLiu commented Jul 28, 2023

Motivation

To add large image demo in mmdetection.

Modification

demo/large_image.jpg
demo/large_image_demo.py
mmdet/utils/large_image.py
mmdet/utils/misc.py

Use cases (Optional)

wget -P checkpoint https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r101_fpn_2x_coco/faster_rcnn_r101_fpn_2x_coco_bbox_mAP-0.398_20200504_210455-1d2dac9c.pth # noqa: E501, E261.

python demo/large_image_demo.py \
    demo/large_image.jpg \
    configs/faster_rcnn/faster-rcnn_r101_fpn_2x_coco.py \
    checkpoint/faster_rcnn_r101_fpn_2x_coco_bbox_mAP-0.398_20200504_210455-1d2dac9c.pth

result:
image

parameter test:

  • cpu inference: pass
  • --show: pass
    image
  • --tta: pass
wget -P checkpoint https://download.openmmlab.com/mmdetection/v2.0/retinanet/retinanet_r50_fpn_1x_coco/retinanet_r50_fpn_1x_coco_20200130-c2398f9e.pth # noqa: E501, E261.

python demo/large_image_demo.py \
    demo/large_image.jpg \
    configs/retinanet/retinanet_r50_fpn_1x_coco.py \
    checkpoint/retinanet_r50_fpn_1x_coco_20200130-c2398f9e.pth --tta

result:
image

  • --score-thr: pass
  • --path-size: pass
  • --patch-overlap-ratio: pass
  • --merge-iou-thr: pass
  • --merge-nms-type: pass
  • --batch-size: pass
  • --debug: pass
  • --save-patch: pass

@CLAassistant
Copy link

CLAassistant commented Jul 28, 2023

CLA assistant check
All committers have signed the CLA.

@hhaAndroid
Copy link
Collaborator

@YanxingLiu Is it possible to support instance segmentation?

@YanxingLiu
Copy link
Contributor Author

YanxingLiu commented Jul 31, 2023

@YanxingLiu Is it possible to support instance segmentation?

I am not familiar with instance segmentation, but it feels like it might be more difficult than object detection.

@hhaAndroid
Copy link
Collaborator

@YanxingLiu Is it possible to support instance segmentation?

I am not familiar with instance segmentation, but it feels like it might be more difficult than object detection.

OK

demo/large_image_demo.py Outdated Show resolved Hide resolved
demo/large_image_demo.py Show resolved Hide resolved
@hhaAndroid hhaAndroid merged commit 60b29b3 into open-mmlab:dev-3.x Aug 14, 2023
6 of 8 checks passed
@W-hary
Copy link

W-hary commented Sep 12, 2023

When I run 'large_image_demo.py' for object detection on 'large image.jpg', I can successfully get the detection results. But when I use 'rtmdet-ins_tiny_8xb32-300e_coco.py' to instance split 'large image.jpg', an error will be reported: AssertionError: binary_masks must have the same shape with image
Does 'large_image_demo.py' not work for instance split testing? How can I solve this problem
59d93b1a0859b8a12501844d1832331

yumion pushed a commit to yumion/mmdetection that referenced this pull request Jan 31, 2024
yumion pushed a commit to yumion/mmdetection that referenced this pull request Jan 31, 2024
@DAIJinJ
Copy link

DAIJinJ commented May 9, 2024

When I run 'large_image_demo.py' for object detection on 'large image.jpg', I can successfully get the detection results. But when I use 'rtmdet-ins_tiny_8xb32-300e_coco.py' to instance split 'large image.jpg', an error will be reported: AssertionError: binary_masks must have the same shape with image Does 'large_image_demo.py' not work for instance split testing? How can I solve this problem 59d93b1a0859b8a12501844d1832331

same problem

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

Successfully merging this pull request may close these issues.

None yet

6 participants