Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yolov7_auto_annotation
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
vaisakh.nair
yolov7_auto_annotation
Commits
e20fad34
Commit
e20fad34
authored
Jun 30, 2023
by
vaisakh.nair
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new changes
parent
f726bc6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app.py
app.py
+2
-2
yolov7processor.py
yolov7processor.py
+5
-5
No files found.
app.py
View file @
e20fad34
from
yolov7processor
import
YoloV7Processor
from
yolov7processor
import
YoloV7Processor
detect
=
YoloV7Processor
(
source
=
r'D:\JK_Data\videos\new_Data\camera_46\2023-03-26_05-12-30_5'
,
weights
=
r'D:\JK_Data\yolov7-tiny-v5\weights\jk_v5.pt'
,
imgsz
=
416
,
trace
=
True
,
target_dir
=
r'D:\JK_Data\videos\new_Data\camera_46\2023-03-26_05-12-30_5'
)
detect
=
YoloV7Processor
(
source
=
r'D:\JK_Data\overlap_retrain_dataset\loader -7\loader_7_frames'
,
weights
=
r'D:\JK_Data\yolov7_models\yolov7-tiny-v5\weights\jk_v5.pt'
,
imgsz
=
416
,
trace
=
True
,
target_dir
=
r'D:\JK_Data\overlap_retrain_dataset\loader -7\loader_7_frames'
)
detect
.
detect
()
detect
.
detect
()
\ No newline at end of file
yolov7processor.py
View file @
e20fad34
...
@@ -231,11 +231,11 @@ class YoloV7Processor():
...
@@ -231,11 +231,11 @@ class YoloV7Processor():
# vid_writer = cv2.VideoWriter(save_path, cv2.VideoWriter_fourcc(*'mp4v'), fps, (w, h))
# vid_writer = cv2.VideoWriter(save_path, cv2.VideoWriter_fourcc(*'mp4v'), fps, (w, h))
# vid_writer.write(im0)
# vid_writer.write(im0)
#
#
#
if save_txt or save_img:
if
save_txt
or
save_img
:
#
s = f"\n{len(list(save_dir.glob('labels/*.txt')))} labels saved to {save_dir / 'labels'}" if save_txt else ''
s
=
f
"
\n
{len(list(save_dir.glob('labels/*.txt')))} labels saved to {save_dir / 'labels'}"
if
save_txt
else
''
#
#print(f"Results saved to {save_dir}{s}")
#print(f"Results saved to {save_dir}{s}")
#
#
print(f'Done. ({time.time() - t0:.3f}s)')
print
(
f
'Done. ({time.time() - t0:.3f}s)'
)
#
#
#
#
# if __name__ == '__main__':
# if __name__ == '__main__':
...
...
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