Commit Graph

57 Commits (11d8554cf93b62f72d94996fc7fed62748db722f)

Author SHA1 Message Date
Zaida Zhou 11d8554cf9
[Docs] Fix mdformat version to support python3.6 (#2014)
* [Docs] Refine documentation

* fix mdformat version to support python3.6

* remove ruby dependency from CI

* fix invalid links
2022-06-09 17:47:26 +08:00
Zaida Zhou b326a219a7
[Docs] Replace markdownlint with mdformat for avoiding installing ruby (#1936)
* Use mdformat pre-commit hook

* allows consecutive numbering

* improve .mdformat.toml

* test mdformat

* format markdown

* minor fix

* fix codespecll

* fix circleci

* add linkify-it-py dependency for cicleci

* add comments

* replace flake8 url

* add mdformat-myst dependency

* remove mdformat-myst dependency

* update contributing.md
2022-05-16 20:47:56 +08:00
Zaida Zhou 0cc84451df
[Fix] Fix GPG key error in CI (#1926) 2022-04-29 13:17:31 +08:00
Hu Di 5221a3883c
[Feature] Support MMCV on IPU (#1882)
* implement runner on IPU

* adjust import

* adjust import

* add ignore for ipu on without ipu

* remove compilation cache

* remove ipu from mmcv/runner.__all__

* adjust IS_IPU and IS_MLU

* adjust by isort

* add ipuHardwareIsAvailable

* remove engine_cache

* code review 9
2022-04-18 00:02:49 +08:00
Qiza-lyhm 4826a9b7e4
[Feature] Support PyTorch backend on MLU (#1770)
* feat(MLU): Support PyTorch backend on MLU

  * MMCV support PyTorch backend on MLU

  * Add MLUDataParallel and MLUDistributedDataParallel

  * Add MLU operator support

* [Fix]: Fix PR comments and add IS_MLU to get device available check

* [Fix]: fix PR comments of dist_utils.py

* [Doc] Rewrite annotations of functions.

* [Docs] Rewrite annotation in distributed.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* [Docs] Fix lint

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-04-14 21:48:18 +08:00
Jiazhen Wang e0eebebf50
[Fix] Fix Python3.10 CI (#1828)
* Fix python3.10 ci

* fix build ci

* fix build ci

* fix onnx build in ci

* remove onnx optimizer

* remove python3.10 ci

* special treatment for py3.10

* fix build ci

* special treatment for python3.10 in requirements/test

* fix requirements/test
2022-04-02 14:22:05 +08:00
Jiazhen Wang 42062eded5
[Enhancement] Add Python3.10 CI (#1815)
* add python3.10 ci

* fix github workflow
2022-03-22 23:03:21 +08:00
Jiazhen Wang 33e14deaea
[Enhancement] Add PyTorch1.11.0 CI (#1800)
* add pytorch1.11 ci

* fix test parallel

* fix test parallel
2022-03-15 12:38:30 +08:00
WRH 0394990a47
Include spconv header files in the sdist package (#1766)
* include spconv/**.h in MANIFEST.in

* add more headers

* fix

* build from sdist in cpu runner

* remove original copy of src code in ci

Co-authored-by: wangruohui <wangruohui@local>
2022-03-07 11:07:40 +08:00
Zaida Zhou e4b5348ebf
[Docs] Refactor the structure of documentation (#1580)
* [Docs] Refactor the structure of documentation

* [Docs] Refactor the structure of documentation

* fix symlink

* fix link

* fix typo

* polish docstring

* fix docstring
2021-12-15 17:01:09 +08:00
Zaida Zhou 44e7eee835
[Docs] Add the link of mmhuman3d (#1561)
* Add the link of mmhuman3d

* fix typo

* add link of mim

* add link of mim in docs

* improve the table format
2021-12-07 14:32:44 +08:00
Jiazhen Wang 709908a76b
[CI] Cancel previous runs that are not completed (#1537)
* [Impl] cancel previous runs that are not completed

* [Improve] use official method

* [Useless] just for test
2021-12-06 15:55:32 +08:00
Zaida Zhou 2442518f2c
Use the official markdownlint hook (#1535)
* Use the official markdownlint hook

* upgrade the version of ruby

* fix conflict
2021-11-30 13:17:25 +08:00
Zaida Zhou 20d4d20284
Skip CI when some specific files were changed (#1533)
* [Docs] Skip CI when some specific files were changed

* remove a unnecessary environment in lint.yml

* Use paths-ignore to ignore paths instead of paths

* fix typo
2021-11-29 22:06:05 +08:00
Zaida Zhou 990d8b6a83
[Fix] Add load_url to handle incompatibility of PyTorch versions (#1377)
* [Fix] Fix torch.load error

* [Fix] Fix torch.load error

* rename _save to _save_ckpt

* add load_url to handle imcompatibility of PyTorch versions

* add unittest for load_url

* fix typo

* print a friendly information when error occurred
2021-11-19 17:34:18 +08:00
Wenwei Zhang ef02219679
Add CI for pytorch 1.10 (#1431) 2021-10-24 13:32:31 +08:00
Zaida Zhou c934605e83
Switch to the docker image provided by PyTorch (#1376) 2021-10-03 10:29:05 +08:00
Zaida Zhou 5617ad72d0
[Feature] Add python3.9 in CI (#1291)
* [Feature] Add python3.9 in CI

* fix dependencies for compiling onnx
2021-08-27 16:25:30 +08:00
Wenwei Zhang 979a355d2a
[Feature] Add windows CI (#1023)
* add windows CI

* clean versions

* only allow pt1.7 on windows

* fix windows install issue

* add win cpu

* fix win command

* clean unnecessary command

* resolve turbojpeg & tempfile on win

* replace os.readlink with os.path.realpath

* fix windows ci

* close file before removing it

* fix windows ci

* fix symlink on windows

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* modify according to comment

Co-authored-by: zhouzaida <zhouzaida@163.com>
2021-08-24 10:07:31 +08:00
Wenwei Zhang 3168ffa204
[Enhance]: update pr template (#1228)
* update pr template

* reformat

* update according to comments

* resolve comments
2021-08-23 10:37:03 +08:00
lizz 81777d1213
Use more cpus in building (#1046)
* Use more cpus in building

Signed-off-by: lizz <lizz@sensetime.com>

* Add psutil to requirements

Signed-off-by: lizz <lizz@sensetime.com>

* fix

Signed-off-by: lizz <lizz@sensetime.com>

* fix

Signed-off-by: lizz <lizz@sensetime.com>

* Hope faster

Signed-off-by: lizz <lizz@sensetime.com>

* fix macos

Signed-off-by: lizz <lizz@sensetime.com>
2021-08-18 19:37:18 +08:00
Haodong Duan 93418560d8
[Fix] Do not depend on setuptools>=52 (#1235)
* use packaging instead

* update

* update

* update

* update
2021-08-10 16:17:59 +08:00
Zaida Zhou 571e3e5fc7
[Fix] Fix CI of deploy (#1220) 2021-07-28 09:25:42 +08:00
Haodong Duan ef48a47389
[Improvement] Improve digit_version & use it for version_checking (#1185)
* improve digit_version & use it for version_checking

* more testing for digit_version

* setuptools >= 50 is needed

* fix CI

* add debuging log

* >= to ==

* fix lint

* remove

* add failure case

* replace

* fix

* consider TORCH_VERSION == 'parrots'

* add unittest

* digit_version do not deal with the case if 'parrots' in version name.
2021-07-23 21:03:33 +08:00
Ma Zerun 6659c38dd5
[Feature] Add `is_tracing` to wrap `torch.jit.is_tracing` in different versions. (#1187)
* Add `is_tracing` to wrap `torch.jit.is_tracing` in different versions.

* Remame `is_tracing` to `is_jit_tracing`

* Ignore `is_jit_tracing` tests in CI.
2021-07-13 14:42:50 +08:00
Zaida Zhou 23d7fc83cb
add CI for pt1.8 pt1.9 (#1141)
* add ci for pt1.8 pt1.9

* remove cp command

* change cuda verison

* fix typo

* fix ci

* fix typo
2021-07-06 15:40:56 +08:00
Junjun2016 f71e47c2f7
fix typos (#1124) 2021-06-22 23:41:32 +08:00
Zaida Zhou d3bbfdb899
fix parrots ci (#1032) 2021-05-23 15:23:58 +08:00
Wenwei Zhang 0dd0c49a5b
[Enhancement]: Add issue and PR template (#966)
* add issue and PR template

* rephrase

* fix lint

* resolve comments

* fix typo

* resolve comment
2021-04-22 14:38:42 +08:00
ZhangShilong 6fc6f75a76
use ubuntu-18.04 in ci (#883) 2021-03-10 12:51:44 +08:00
RunningLeon 72e4cc12bd
Fix pytorch2onnx failed for interpolate op with PyTorch==1.6.0(mmdet#4646) (#848)
* Fix pytorch2onnx for yolov3 with torch==1.6.0

* update and add test for F.interpolate

* add test_onnx.py with build_cuda
2021-02-26 10:49:12 +08:00
Kai Chen c1acedcc3b
Remove pytest from the runtime dependencies (#763)
* update the CI to avoid extra dependencies

* remove the dependency of pytest

* fix typo

* remove skip_no_parrots from __init__
2020-12-28 13:23:48 +08:00
lml131 9befc39811
Lml/jit decorator (#673)
* add jit decorator

* add parrots_jit.py

* modify test_parrots_jit.py

* modify for lint

* fix isort

* skip test_parrots_jit.py when build without pytorch

* try ci

* rm log

* fix double quote

* modify for comments and use partial_shape instead of full_shape

* fix for lint

* small modify for parrots 0.9.0rc0

* def skip no elena directly
2020-12-15 18:20:37 +08:00
Wenwei Zhang a0902e6de8
allow non-master build of parrots (#702) 2020-12-09 21:28:06 +08:00
Wenwei Zhang 1e925a05a2
Skip pat build in PR (#699)
* skip pat build in PR

* rename
2020-12-08 19:19:35 +08:00
wang shiguang 23ecd83d59
Add parrots ci (#662)
* add parrots ci

* update with ops build

* Update build.yml

* cridents env

* Update build.yml
2020-11-24 15:10:24 +08:00
Kai Chen 03214fd446
Support pytorch 1.7 and update the CI (#631)
* support pytorch 1.7 and update the CI

* fix CI

* fix onnxruntime version in macos
2020-10-31 17:58:15 +08:00
robin Han 23b2bdbf52
add unittest for onnx convert (#608)
* add unittest for onnx convert

* build onnx and onnxruntime in CI

* skip onnx op unit test while using CUDA

* fix offset==0 case in NMS

* remove tmp file used in test

* delete tmp file before assert so that we can remove the tmp file anyway
2020-10-26 11:33:35 +08:00
Kai Chen f3a2be99b9
lint markdown files (#592) 2020-09-29 10:44:44 +08:00
Wenwei Zhang fc4993cdec
[feature] Use cu92 & ubuntu1604 for torch 1.3.1 (#524)
* [feature] Use cu92 & ubuntu1604 for torch 1.3.1

* [fix]Use ubuntu-16.04 rather than latest for cu92

* [fix]: soft link cuda path

* Debug cu101 bug

* Update usr/include for cublas with cu101

* Check default nvcc version

* rm :

* add cuda root

* Try to locate cublas_v2.h

* Set cublas version

* Force cublas version

* check usr/local/cuda-10.2

* Add tree

* cp cublas files

* cp cublas files to lib64

* do not tree cuda

* fix path cp error

* cp dir

* Keep using CUDA10.1 only

* recover empty line
2020-09-01 16:15:03 +08:00
Kai Chen 66a38c86f8
Move unit tests to specific folders (#520)
* move unit tests to specific folders

* fix path error

* remove some assertions

* fix ignore path
2020-08-25 20:11:56 +08:00
Kai Chen cac22f8cf5
Add pytorch 1.6 to CI (#476)
* add pytorch 1.6 to CI

* fix typo

* fix ci error

Co-authored-by: Cao Yuhang <yhcao6@gmail.com>
2020-08-09 21:56:15 +08:00
Kai Chen 045629c280
Fix torch installation in github action (#462)
* bump version to 1.0.5

* fix pytorch name

* fix version

* disable the cache
2020-08-03 23:10:39 +08:00
Kai Chen 60ce48d164
bump version to 1.0.5 (#459) 2020-08-03 13:17:03 +08:00
Jerry Jiarui XU 4a044c6466
Support FP16 (#428)
* Support FP16

* update ci
2020-07-17 11:14:07 +08:00
Jerry Jiarui XU da7a42791b
Bump to rc2 (#401)
* Bump to rc2

* change rc2 -> 1.0.0
2020-07-09 02:39:48 +08:00
Jerry Jiarui XU 192b3b3ceb
use env to control compile op or not (#400)
* use env to control compile op or not

* use str as env var

* update readme

* update rc01

* update readme

Co-authored-by: Kai Chen <chenkaidev@gmail.com>
2020-07-09 02:19:02 +08:00
Cao Yuhang d5cbf7eed1
Migrate op (#392)
* migrate op

* migrate unittest

* update build no torch

* add back use_torch_vision for roi align

* fix type and unit test

* ignore test logging when no torch

* fix no torch ci test

* skip test registry

* remove coverage report when no torch

* fix mac ci order

* install latest pillow when no torch

* mv convws to brisk
2020-07-08 17:29:15 +08:00
Kai Chen b2b42cbd95
Add macos building in github action (#387)
* add macos in github action

* fix a package name

* minor fix

* fix typo

* ignore progressbar testing

* ignore timer testing

* fix pytest configs

* try fix
2020-07-07 13:14:24 +08:00
Kai Chen e2ee171a4a
Fix the version of isort (#385) 2020-07-05 11:12:02 +08:00