Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valohai-utils vfs mangles paths with archived inputs #45

Closed
JuhaKiili opened this issue May 6, 2021 · 0 comments · Fixed by #53
Closed

valohai-utils vfs mangles paths with archived inputs #45

JuhaKiili opened this issue May 6, 2021 · 0 comments · Fixed by #53
Assignees

Comments

@JuhaKiili
Copy link
Contributor

When auto-processing an archived input (they are auto-processed by default), valohai-utils mangles the path and the name of the archived files.

Often there is information encoded into the path or filename (example: labels/UUID.json) that is now lost.

This code

import valohai

inputs = {"labels": "/home/juha/ws/yolov3-tf2/labels.zip"}
valohai.prepare(step="test", default_inputs=inputs)
for label_path in valohai.inputs('labels').paths():
    print(label_path)

With this zip contents:

labels/02494272-79e7-4e8b-9d5b-5da07a350b16.json
labels/3f7a8a63-33c0-4654-b203-d4c51b2374dd.json
labels/4247d9db-81f1-46a8-8601-4059e68032b8.json
labels/442fcac9-1623-458d-937e-50b6a7ba44ea.json
labels/7dcae7e8-748a-40da-936f-7c3fa7c70e05.json
labels/82b93121-a4d5-4c71-a7ba-7702155e247b.json
labels/cce9141c-8cb1-4e85-9b01-e01f83cf838c.json
labels/d9abdd08-ab0b-444c-b6f2-a8b6b5209132.json
labels/e1864b66-302b-40a0-88b7-39681a8c2e4b.json
labels/e1f9c295-27cd-4828-b442-1d1b1ff14047.json

Returns this:

/tmp/tmp5vtugf_l.json
/tmp/tmpiuv92505.json
/tmp/tmpdb9crwg7.json
/tmp/tmpb5biboa8.json
/tmp/tmp8ebrfq_s.json
/tmp/tmp_nsqsyy6.json
/tmp/tmp6qrqnjni.json
/tmp/tmp6yc5y0w8.json
/tmp/tmppn0xf1gv.json
/tmp/tmp0w7_bsyd.json
@JuhaKiili JuhaKiili changed the title valohai-utils vfs mangles paths with archive inputs valohai-utils vfs mangles paths with archived inputs May 6, 2021
@orasimus orasimus self-assigned this Jun 4, 2021
@ruksi ruksi closed this as completed in #53 Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants