Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yolo_model_optimization
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikhin.vc
yolo_model_optimization
Commits
a9f78581
Commit
a9f78581
authored
Jun 08, 2023
by
Sikhin VC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abc
parent
e603f388
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
yolo_optimization.py
yolo_optimization.py
+3
-1
No files found.
yolo_optimization.py
View file @
a9f78581
...
...
@@ -36,7 +36,9 @@ class ModelOptimization:
def
optimize_model
(
self
,
weight_path
):
try
:
current_directory
=
os
.
getcwd
()
shutil
.
rmtree
(
os
.
path
.
join
(
current_directory
,
'tensorrtx/yolov5/build'
))
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'
))
weight_name_with_extension
=
os
.
path
.
basename
(
weight_path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment