Add artifacts support for folders/wildcard, include retrieval and extraction

This commit is contained in:
allegroai
2019-09-25 00:33:00 +03:00
parent e6ed09664f
commit 86655412b0
4 changed files with 31 additions and 9 deletions

View File

@@ -31,7 +31,8 @@ task.upload_artifact('Numpy Eye', np.eye(100, 100))
# add and upload Image (stored as .png file)
im = Image.open('samples/dancing.jpg')
task.upload_artifact('pillow_image', im)
# add and upload a folder, artifact_object should be the folder path
task.upload_artifact('local folder', artifact_object='samples/')
# do something
sleep(1.)