Fix some bugs for CI (#155)

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Add evaluation calculate time and fix some bugs

* Update classification __init__

* Move to ppseg

* Add segmentation doc

* Add PaddleClas infer.py

* Update PaddleClas infer.py

* Delete .infer.py.swp

* Add PaddleClas infer.cc

* Update README.md

* Update README.md

* Update README.md

* Update infer.py

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Add PaddleSeg doc and infer.cc demo

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create segmentation_result.md

* Update README.md

* Update segmentation_result.md

* Update segmentation_result.md

* Update segmentation_result.md

* Update classification and detection evaluation function

* Fix python grammar bug

* Add PPSeg evaluation function

* Add average_inference_time function

* Update PaddleSeg example infer.py Tensorrt setting

* Fix bug for CI convert os.system to subprocess.popen

* Fix tensorrt cann't link to *.so

* Fix tensorrt can't find so bug

* Update CMakeLists

* Update CMakeLists

* Update CMakeLists

* Update CMakeLists

Co-authored-by: Jason <jiangjiajun@baidu.com>
Co-authored-by: felixhjh <852142024@example.com>
This commit is contained in:
huangjianhui
2022-08-25 16:14:39 +08:00
committed by GitHub
parent 9bc7f79930
commit 36cfd99384
3 changed files with 17 additions and 7 deletions

View File

@@ -421,8 +421,9 @@ if sys.argv[1] == "install" or sys.argv[1] == "bdist_wheel":
print(command)
# The sw_64 not suppot patchelf, so we just disable that.
if platform.machine() != 'sw_64' and platform.machine() != 'mips64':
assert os.system(
command) == 0, "patchelf {} failed, the command: {}".format(
assert subprocess.Popen(
command,
shell=True) != 0, "patchelf {} failed, the command: {}".format(
command, pybind_so_file)
elif platform.system().lower() == "darwin":
pre_commands = [
@@ -451,12 +452,13 @@ if sys.argv[1] == "install" or sys.argv[1] == "bdist_wheel":
path)) + pybind_so_file)
for command in pre_commands:
try:
os.system(command)
subprocess.Popen(command, shell=True)
except:
print("Skip execute command: " + command)
for command in commands:
assert os.system(
command) == 0, "command execute failed! command: {}".format(
assert subprocess.Popen(
command,
shell=True) != 0, "command execute failed! command: {}".format(
command)
all_files = get_all_files(os.path.join(PACKAGE_NAME, "libs"))