Skip to content
Snippets Groups Projects
Commit 82d26c40 authored by François  LAURENT's avatar François LAURENT
Browse files

artifacts re-downloadable

parent ec24a536
No related branches found
No related tags found
No related merge requests found
......@@ -10,11 +10,13 @@ using LazyArtifacts
projectdir = dirname(Base.active_project())
function pretrained_models(name)
artifact = @artifact_str("$name")
src = @artifact_str("$name/pretrained_models")
dst = mkpath(joinpath(projectdir, "pretrained_models"))
for filename in readdir(src; join=false)
mv(joinpath(src, filename), joinpath(dst, filename))
end
rm(artifact; recursive=true, force=true)
end
function main(args=ARGS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment