Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Code Computer Vision
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PolySTAR
RoboMaster
Computer Vision
Code Computer Vision
Commits
3ea51d33
Commit
3ea51d33
authored
4 years ago
by
JsPatenaude
Browse files
Options
Downloads
Patches
Plain Diff
add comments
parent
bcacc2d8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
robots-at-robots/research/dataset/armor_dataset_factory.py
+12
-0
12 additions, 0 deletions
robots-at-robots/research/dataset/armor_dataset_factory.py
with
12 additions
and
0 deletions
robots-at-robots/research/dataset/armor_dataset_factory.py
+
12
−
0
View file @
3ea51d33
...
...
@@ -31,6 +31,18 @@ class ArmorDatasetFactory:
def
save_digits_img
():
for
j
,
(
digit_img
,
armor
,
k
,
p
)
in
enumerate
(
ArmorDatasetFactory
.
from_dataset
(
DJIROCODataset
.
Final
)):
# we ignore the 6s, because the format of their pictures is not accurate and we don't need them
# usage:
# - remove the two if (line 40 and 53-54) to load all images
# or
# - load bunch of images (not all at the same time, depending if you just want to do some tests)
# 1. start with j >= 0 at the top and j >= 500 at the bottom to load the 500 first images
# 2. increse these numbers as you load other images (to save time and not load images twice)
# watchout:
# some images have chinese symbols in their name, you will either need to change their name of find another workaround
if
armor
.
numero
!=
6
and
j
>=
5925
:
# TODO change j value depending where you are in saving (to save time)
# if j >= 50:
# break
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment