Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jithu_acc
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
jithu.tagore
jithu_acc
Commits
2fe71ac9
Commit
2fe71ac9
authored
Jan 03, 2023
by
jithu.tagore
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed classes in init
parent
13b75cd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/cement_counter.py
scripts/cement_counter.py
+1
-1
No files found.
scripts/cement_counter.py
View file @
2fe71ac9
...
@@ -68,7 +68,7 @@ class CementBagCounter(ModelWrapper):
...
@@ -68,7 +68,7 @@ class CementBagCounter(ModelWrapper):
# with open("/home/ilens/container_weights/classes.json", 'r') as f:
# with open("/home/ilens/container_weights/classes.json", 'r') as f:
# self.classes = json.loads(f.read())
# self.classes = json.loads(f.read())
# self.classes = {int(k): v for k, v in self.classes.items()}
# self.classes = {int(k): v for k, v in self.classes.items()}
self
.
classes
=
{
0
:
'a
mbuja_plus'
,
1
:
'acc_gold'
,
2
:
'acc_suraksha_power_plus'
,
3
:
'ambuja_buildcem'
,
4
:
'mrp'
,
5
:
'acc_suraksha_power'
,
6
:
'acc_nfr'
,
7
:
'acc_concrete_plus
'
}
self
.
classes
=
{
0
:
'a
cc_gold'
,
1
:
'mrp
'
}
self
.
yolo_v5_wrapper
=
YoloV5TRT
(
engine_file_path
,
model_config
.
get
(
'conf_thresh'
,
0.5
),
self
.
yolo_v5_wrapper
=
YoloV5TRT
(
engine_file_path
,
model_config
.
get
(
'conf_thresh'
,
0.5
),
model_config
.
get
(
'iou_thresh'
,
0.4
))
model_config
.
get
(
'iou_thresh'
,
0.4
))
...
...
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