Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hello World
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OST
SA
projects
Hello World
Commits
93e0df60
Commit
93e0df60
authored
1 year ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
import and export from model zip
parent
989626e4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
export_import/export_artifacts_to_zip.py
+10
-0
10 additions, 0 deletions
export_import/export_artifacts_to_zip.py
export_import/import_artifacts_from_zip.py
+6
-0
6 additions, 0 deletions
export_import/import_artifacts_from_zip.py
with
16 additions
and
0 deletions
export_import/export_artifacts_to_zip.py
0 → 100644
+
10
−
0
View file @
93e0df60
import
shutil
import
sys
artifacts_dir
=
"
out/
"
train_dir
=
"
out/train
"
model_name
=
sys
.
argv
[
1
]
shutil
.
rmtree
(
train_dir
,
ignore_errors
=
True
)
location
=
shutil
.
make_archive
(
"
models/{}
"
.
format
(
model_name
),
'
zip
'
,
artifacts_dir
)
print
(
location
)
This diff is collapsed.
Click to expand it.
export_import/import_artifacts_from_zip.py
0 → 100644
+
6
−
0
View file @
93e0df60
import
shutil
import
sys
artifacts_dir
=
"
out/
"
model_name
=
sys
.
argv
[
1
]
shutil
.
unpack_archive
(
"
models/{}.zip
"
.
format
(
model_name
),
artifacts_dir
)
This diff is collapsed.
Click to expand it.
Preview
0%
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