Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Generic Training Dataset
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
Container 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
Arkindex
Workers
Generic Training Dataset
Merge requests
!2
Implement worker
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Implement worker
implem
into
main
Overview
80
Commits
25
Pipelines
1
Changes
2
Merged
Yoann Schneider
requested to merge
implem
into
main
1 year ago
Overview
80
Commits
25
Pipelines
1
Changes
2
Expand
Closes
#2 (closed)
0
0
Merge request reports
Viewing commit
ffc88c55
Prev
Next
Show latest version
2 files
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
ffc88c55
fix typo
· ffc88c55
Yoann Schneider
authored
1 year ago
worker_generic_training_dataset/worker.py
+
2
−
2
Options
@@ -96,7 +96,7 @@ class DatasetExtractor(BaseWorker):
database_path
=
(
Path
(
self
.
args
.
database
)
if
self
.
is_read_only
else
self
.
workdir
/
"
db.sqlite
"
else
self
.
work
_
dir
/
"
db.sqlite
"
)
if
database_path
.
exists
():
database_path
.
unlink
()
@@ -276,7 +276,7 @@ class DatasetExtractor(BaseWorker):
self
.
process_split
(
split_name
,
split_id
,
image_folder
)
# TAR + ZSTD Image folder and store as task artifact
zstd_archive_path
=
Path
(
self
.
work_dir
)
/
"
arkindex_data.zstd
"
zstd_archive_path
=
self
.
work_dir
/
"
arkindex_data.zstd
"
logger
.
info
(
f
"
Compressing the images to
{
zstd_archive_path
}
"
)
create_tar_zstd_archive
(
folder_path
=
image_folder
,
destination
=
zstd_archive_path
)
Loading