Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
finolex-pipe-counting
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
finolex-pipe-counting
Commits
1017e11c
Commit
1017e11c
authored
Nov 04, 2022
by
sikhin.vc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial-commit
parent
4833648e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
main.py
main.py
+13
-0
src/scripts/pipe_counting.py
src/scripts/pipe_counting.py
+8
-0
yolov5
yolov5
+1
-0
No files found.
main.py
0 → 100644
View file @
1017e11c
import
os
from
dotenv
import
load_dotenv
from
src.scripts.pipe_counting
import
perform_infer
load_dotenv
()
image_path
=
os
.
getenv
(
'IMAGE_PATH'
,
""
)
model_path
=
os
.
getenv
(
'MODEL_PATH'
,
"model.pt"
)
if
__name__
==
'__main__'
:
print
(
image_path
,
model_path
)
perform_infer
(
image_path
=
image_path
,
model_path
=
model_path
)
src/scripts/pipe_counting.py
0 → 100644
View file @
1017e11c
from
yolov5.detect
import
run
from
yolov5.detect
import
import
load_model
def
load_model
(
model_path
:
str
):
return
load_model
(
weights
=
model_path
)
def
perform_infer
(
image_path
:
str
,
model_path
:
str
):
return
run
(
source
=
image_path
)
\ No newline at end of file
yolov5
@
02b8a4c2
Subproject commit 02b8a4c21bb6d9419bbf01d4af20724743dab58b
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