Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
inovisao
crossvalidation-repetition-object-detection
Commits
26af67ca
Commit
26af67ca
authored
Mar 07, 2021
by
Gilberto Astolfi
Browse files
adicionando obj.data para yolo
parent
ceb87c6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
yolo_utils.py
yolo_utils.py
+4
-1
No files found.
yolo_utils.py
View file @
26af67ca
...
...
@@ -90,7 +90,7 @@ class YoloUtils:
path_yolo_txt
=
fold_src
+
'/'
+
set_
+
'/'
+
fold
+
'_'
+
set_
+
'.txt'
self
.
createFileSetYolo
(
path_set
,
path_yolo_txt
)
if
set_
!
=
'train'
:
if
set_
=
=
'train'
:
path_train
=
path_yolo_txt
num_classes
=
len
(
dictClasses
)
else
:
...
...
@@ -130,6 +130,9 @@ class YoloUtils:
for
fold
in
os
.
listdir
(
repositorio
):
fold_src
=
repositorio
+
'/'
+
fold
for
set_
in
os
.
listdir
(
fold_src
):
path
=
fold_src
+
'/'
+
set_
if
not
os
.
path
.
isdir
(
path
):
continue
if
set_
!=
'test'
:
input_names
=
fold_src
+
'/'
+
set_
+
'/'
+
fold
+
'_'
+
set_
+
'.names'
input_csv
=
path_tfrecords
+
'/'
+
fold
+
'/'
+
set_
+
'/'
+
fold
+
'_'
+
set_
+
'.csv'
...
...
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