Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Airborne Object Detection - Starter Kit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
vivo_advan
Airborne Object Detection - Starter Kit
Commits
18e54d6c
Commit
18e54d6c
authored
3 years ago
by
Shivam Khandelwal
Browse files
Options
Downloads
Patches
Plain Diff
Added option of partial dataset in download script too
parent
94658627
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
utility/verify_or_download_data.py
+11
-3
11 additions, 3 deletions
utility/verify_or_download_data.py
with
11 additions
and
3 deletions
utility/verify_or_download_data.py
+
11
−
3
View file @
18e54d6c
...
...
@@ -5,9 +5,17 @@ sys.path.append(os.path.realpath(os.getcwd()))
from
core.dataset
import
Dataset
if
__name__
==
"
__main__
"
:
dataset
=
Dataset
(
local_path
=
'
data/part1
'
,
s3_path
=
'
s3://airborne-obj-detection-challenge-training/part1/
'
)
dataset
.
add
(
local_path
=
'
data/part2
'
,
s3_path
=
'
s3://airborne-obj-detection-challenge-training/part2/
'
)
dataset
.
add
(
local_path
=
'
data/part3
'
,
s3_path
=
'
s3://airborne-obj-detection-challenge-training/part3/
'
)
option
=
input
(
"
Download full dataset (y/Y) or partial dataset (n/N)?
"
)
if
option
.
lower
()
==
'
y
'
:
print
(
"
Downloading full dataset...
"
)
partial
=
False
else
:
print
(
"
Downloading partial dataset...
"
)
partial
=
True
dataset
=
Dataset
(
local_path
=
'
data/part1
'
,
s3_path
=
'
s3://airborne-obj-detection-challenge-training/part1/
'
,
prefix
=
'
part1
'
,
partial
=
partial
)
dataset
.
add
(
local_path
=
'
data/part2
'
,
s3_path
=
'
s3://airborne-obj-detection-challenge-training/part2/
'
,
prefix
=
'
part2
'
)
dataset
.
add
(
local_path
=
'
data/part3
'
,
s3_path
=
'
s3://airborne-obj-detection-challenge-training/part3/
'
,
prefix
=
'
part3
'
)
i
=
1
all_flights
=
dataset
.
get_flight_ids
()
...
...
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