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

Sync master into dev-1.x #1091

Merged
merged 158 commits into from
Oct 8, 2022
Merged

Conversation

RunningLeon
Copy link
Collaborator

@RunningLeon RunningLeon commented Sep 22, 2022

Motivation

Sync master into dev-1.x

Note: Better not to squash merge this PR.

This PR

Modification

Check each conversion, ut, sdk of each codebase

Check special backends

BC-breaking (Optional)

None

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
  3. If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

DrRyanHuang and others added 30 commits June 20, 2022 14:46
change `make -install` to `make install`

open-mmlab#618
* fix csharp api detector release result

* fix wrong count arg of xxx_release_result in c# api
…b#530)

* upload

* add fake_multiclass_nms_rotated

* delete unused code

* align with pytorch

* Update delta_midpointoffset_rbbox_coder.py

* add trt rotated roi align

* add index feature in nms

* not good

* fix index

* add ut

* add benchmark

* move to csrc/mmdeploy

* update unit test

Co-authored-by: zytx121 <[email protected]>
* fix shufflenetv2 and pspnet

* fix ci

* remove print
If there is a variable in the string, single quotes will ignored it, while double quotes will bring the variable into the string after parsing
* support segmentor with ncnn

* update regression yml

* replace chunk with split to support ts

* update regression yml

* update docs

* fix segmenter ncnn inference failure brought by open-mmlab#477

* add test

* fix test for ncnn and trt

* fix lint

* export nn.linear to Gemm op in onnx for ncnn

* fix ci
* Add make install in en docs

* Add make install in zh docs

* Fix typo

* Merge and add windows build

Co-authored-by: tripleMu <[email protected]>
* optmize-csp-darknet

* replace floordiv to torch.div

* update csp_darknet default implement

* fix test
* custom trt anchor generator

* add ut

* add docstring, update doc
* update torch2onnx tool to support onnx partition

* add model partition of yolov3

* add cn doc

* update torch2onnx tool to support onnx partition

* add model partition of yolov3

* add cn doc

* add to index.rst

* resolve comment

* resolve comments

* fix lint

* change caption level in docs
* add java classifier detector

* add segmentor

* fix lint

* add ImageRestorer java apis and demo

* remove useless count parameter for Segmentor and Restorer, add PoseDetector

* add RotatedDetection java api and demo

* add Ocr java demo and apis

* remove mmrotate ncnn java api and demo

* fix lint

* sync java api folder after rebase to master

* fix include

* remove record

* fix java apis dir path in cmake

* add java demo readme

* fix lint mdformat

* add test javaapi ci

* fix lint

* fix flake8

* fix test javaapi ci

* refactor readme.md

* fix install opencv for ci

* fix install opencv : add permission

* add all codebases and mmcv install

* add torch

* install mmdeploy

* fix image path

* fix picture path

* fix import ncnn

* fix import ncnn

* add submodule of pybind

* fix pybind submodule

* change download to git clone for submodule

* fix ncnn dir

* fix README error

* simplify the github ci

* fix ci

* fix yapf

* add JNI as required

* fix Capitalize

* fix Capitalize

* fix copyright

* ignore .class changed

* add OpenJDK installation docs

* install target of javaapi

* simplify ci

* add jar

* fix ci

* fix ci

* fix test java command

* debugging what failed

* debugging what failed

* debugging what failed

* add java version info

* install openjdk

* add java env var

* fix export

* fix export

* fix export

* fix export

* fix picture path

* fix picture path

* fix file name

* fix file name

* fix README

* remove java_api strategy

* fix python version

* format task name

* move args position

* extract common utils code

* show image class result

* add detector result

* segmentation result format

* add ImageRestorer result

* add PoseDetection java result format

* fix ci

* stage ocr

* add visualize

* move utils

* fix lint

* fix ocr bugs

* fix ci demo

* fix java classpath for ci

* fix popd

* fix ocr demo text garbled

* fix ci

* fix ci

* fix ci

* fix path of utils ci
…indows and linux-gpu (open-mmlab#368)

* update circleci by adding more workflows

* fix test workflow failure on windows platform

* fix docker exec command for SDK unittests
* Add fuse select assign pass

* move code to csrc

* add config flag

* remove bool cast
Fix backend model assignment
Fix backend model assignment
* fix clang build

* fix ndk build

* fix ndk build

* switch to `std::filesystem` for clang-7 and later
* resolve conflicts

* update ut and docs

* fix ut

* refine docstring

* add comments and refine UT

* resolve comments

* resolve comments

* update doc

* add roll export

* check backend

* update regression test
* bump vertion to 0.6.0

* update version
* pass img_metas while exporting to onnx

* remove try-catch in tools for beter debugging

* use get

* fix typo
* fix ssd ncnn ut

* fix yapf
* fix android build

* fix cmake

* fix url link
RunningLeon and others added 11 commits September 29, 2022 16:26
add mim

update circle ci

fix tests

fix ci
* fix mmcls cifar10 config

* fix dump-info for cifar10 config

* use regex instead of packlist

* remove constants unused

* fix while logic

* fix lint

* fix docformatter

* fix classification to avoid conflict
* fix(tools/profile.py): rename to avoid name conflict

* fix(docs): remove useless
* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

add install mmengine in docker file

* 1. ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

2. add install mmgine in dockerfile

3. add install_mmengine in circleci

* fix mmengine typo
fix ci and lint

fix det

fix cuda ci

fix mmdet test

update object detection

fix ut

fix layer norm ut

update ut

lock mmeit version

fix mmocr mmcls ut

add conftest.py

fix ocr ut

fix mmedit ci

install mmedit from source

fix rknn model and prepare_onnx_paddings__tensorrt UT

docstring

fix coreml export

update mmocr config

small test

recovery assert

fix ci
* update doc about mmclassfication deployment

* update install mmdeploy part

* correct mmcls deployment commands

* reformat supported models

* add deployed model specification

* update doc about mmdetection deployment

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* update doc about mmsegmentation deployment

* update doc about mmocr deployment

* check in cityscapes.png as an input image for converting mmsegmentation model

* update mmocr deployment

* update mmseg.md

* update mmseg.md

* update mmocr.md

* update sdk model inference for mmocr deployment

* update according to reviewer comments

* update

* update

* update mmedit

* update mmpose deployment

* check in face.png for mmedit deployment

* update

* fix according to reviewer comments

* remove duplicate doc

* update docs in english

* update codebase documents in chinese

* fix according to reviewerss comments

* update according reviewer comments

* ObjectDetection -> Object Detection

* InstanceSegmentation -> Instance Segmentation
* support for external codebase like mmyolo

* support for external export

* fix missing flake8

* fix comments

* add aenum

* add missing files

* fix condition

* refactor import_codebase

* fix mmyolo support

* fix lint

* add base codebase

* fix a strange clang-format

* fix import_codebase

* fix dependent codebase register

* wrap custom_model

* fix comment

* add ut
@RunningLeon RunningLeon force-pushed the sync_master branch 2 times, most recently from 3d73e7d to d2cc610 Compare September 30, 2022 10:26
@RunningLeon RunningLeon merged commit 8bae567 into open-mmlab:dev-1.x Oct 8, 2022
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 20.50781% with 1221 lines in your changes missing coverage. Please review.

Project coverage is 46.50%. Comparing base (1da5464) to head (da1204d).
Report is 312 commits behind head on dev-1.x.

Files Patch % Lines
mmdeploy/backend/ascend/wrapper.py 0.00% 332 Missing ⚠️
mmdeploy/backend/sdk/tracer.py 0.00% 99 Missing ⚠️
mmdeploy/backend/coreml/torchscript2coreml.py 0.00% 58 Missing ⚠️
mmdeploy/codebase/mmcls/models/utils/attention.py 10.71% 50 Missing ⚠️
mmdeploy/codebase/mmdet/models/layers/bbox_nms.py 16.94% 49 Missing ⚠️
...det/models/roi_heads/single_level_roi_extractor.py 14.03% 48 Missing and 1 partial ⚠️
mmdeploy/backend/coreml/ops.py 0.00% 45 Missing ⚠️
mmdeploy/backend/ascend/onnx2ascend.py 0.00% 42 Missing ⚠️
mmdeploy/backend/rknn/onnx2rknn.py 0.00% 39 Missing ⚠️
mmdeploy/backend/tensorrt/utils.py 0.00% 38 Missing ⚠️
... and 49 more
Additional details and impacted files
@@             Coverage Diff             @@
##           dev-1.x    #1091      +/-   ##
===========================================
- Coverage    49.51%   46.50%   -3.01%     
===========================================
  Files          306      305       -1     
  Lines        10801    10807       +6     
  Branches      1617     1567      -50     
===========================================
- Hits          5348     5026     -322     
- Misses        5067     5408     +341     
+ Partials       386      373      -13     
Flag Coverage Δ
unittests 46.50% <20.50%> (-3.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.