fix mmdeploy builder on windows (#1018)

* fix mmdeploy builder on windows

* add pyyaml

* fix lint
This commit is contained in:
Chen Xin 2022-09-09 15:03:55 +08:00 committed by GitHub
parent f2bc808fe3
commit b87afb9ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,5 +6,6 @@ isort==4.3.21
openpyxl==3.0.9
pandas
pytest
pyyaml
xlrd==1.2.0
yapf

View File

@ -163,8 +163,8 @@ def build_mmdeploy(cfg, mmdeploy_dir, dist_dir=None):
build_cmd = 'cmake --build . --config Release -- /m'
_call_command(build_cmd, build_dir)
install_cmd = 'cmake --install . --config Release'
_remove_if_exist(build_dir, 'lib', 'Release')
_call_command(install_cmd, build_dir)
_remove_if_exist(osp.join(build_dir, 'lib', 'Release'))
else:
# build cmd
build_cmd = 'cmake --build . -- -j$(nproc) && cmake --install .'