Load Files in Jobs
Define an input
- step:
name: image_processor
environment: ec2-instance
image: python:3.10
command:
- python process_image.py
inputs:
## Results in one file
## e.g /valohai/inputs/image/<image-name>
- name: image
default: datum://01234567-89ab-cdef-0123-456789abcdef
## Results in a group of files with .jpg extension
## e.g
## /valohai/inputs/image_set/image_1.jpg
## /valohai/inputs/image_set/image_2.jpg
## ...
- name: image_set
default: s3://mybucket/unprocessed/*.jpg
## As is, will result in no files being download
## Later on you can override this input and make it resolve to one or more files
- name: additional_data
optional: trueSelect single file
Select collection of files
Wildcards with object store URLs
Datasets
Datum queries

Directory structure
Access files
Download location
Using valohai-utils
Using system environment variables
Last updated
Was this helpful?
