Commit a9f78581 authored by Sikhin VC's avatar Sikhin VC

abc

parent e603f388
......@@ -36,6 +36,8 @@ class ModelOptimization:
def optimize_model(self, weight_path):
try:
current_directory = os.getcwd()
if os.path.exists(os.path.join(current_directory, 'tensorrtx/yolov5/build')):
shutil.rmtree(os.path.join(current_directory, 'tensorrtx/yolov5/build'))
os.mkdir(os.path.join(current_directory, 'tensorrtx/yolov5/build'))
shutil.copy(weight_path, os.path.join(current_directory, 'tensorrtx/yolov5/build'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment