Skip to content

dnn: remove Caffe importer for 5.0#25323

Closed
WanliZhong wants to merge 14 commits intoopencv:5.xfrom
WanliZhong:remove_caffe
Closed

dnn: remove Caffe importer for 5.0#25323
WanliZhong wants to merge 14 commits intoopencv:5.xfrom
WanliZhong:remove_caffe

Conversation

@WanliZhong
Copy link
Copy Markdown
Member

@WanliZhong WanliZhong commented Apr 3, 2024

Merge with extra opencv/opencv_extra#1166
Merge with contribute ...

TODO:

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@WanliZhong WanliZhong added category: dnn cleanup Code cleanup (e.g, drop legacy C-API, legacy unmaintained code) labels Apr 3, 2024
@WanliZhong WanliZhong added this to the 5.0 milestone Apr 3, 2024

For usage download models by following links
For GOTURN:
goturn.prototxt and goturn.caffemodel: https://github.com/opencv/opencv_extra/tree/c4219d5eb3105ed8e634278fad312a1a8d2c182d/testdata/tracking
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep GOTURN at least in ONNX format

Copy link
Copy Markdown
Member Author

@WanliZhong WanliZhong Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use VIT Track, since converting goturn to onnx model may cost lots traffic.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not move all this in opencv_contrib in dnn_legacy?

Copy link
Copy Markdown
Member Author

@WanliZhong WanliZhong Apr 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GOTURN model will take 388 MB of traffic for each download if converted to onnx. If the user wants to use the tracking method, we can recommend they use Vit or dasimRPN. I create PR to remove it #25503

asmorkalov pushed a commit that referenced this pull request May 8, 2024
Change opencv_face_detector related tests and samples from caffe to onnx #25463

Part of #25314

This PR aims to change the tests related to opencv_face_detector from caffe framework to onnx. Tests in `test_int8_layer.cpp` and `test_caffe_importer.cpp` will be removed in #25323

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
@asmorkalov
Copy link
Copy Markdown
Contributor

Closed for now as we decide to presume Caffe in 5.0, but mark it deprecated.

@asmorkalov asmorkalov closed this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: dnn cleanup Code cleanup (e.g, drop legacy C-API, legacy unmaintained code) OpenCV5

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants