Skip to content

Having problem using Artifact to store data in Minio, help needed #11393

Closed Answered by LehmBook
LehmBook asked this question in Q&A
Discussion options

You must be logged in to vote

after some time debugging, I fould out its a stupid question:

by writing np.savez_compressed(output_data.path, data=np.random.rand(100, 10))
the file actually saved as
/minio/mlpipeline/v2/artifacts/test-pipeline/1b5960d0-e8c7-4206-82b2-4dff60f5d22f/generate-data/output_data.npz

but when artifact uploading file to minio here, it only support file with out extension which is
/minio/mlpipeline/v2/artifacts/test-pipeline/1b5960d0-e8c7-4206-82b2-4dff60f5d22f/generate-data/output_data

How to fix it:

    with open(output_data.path, 'wb') as f:
        np.savez_compressed(output_data.path, data=np.random.rand(100, 10))

this way the file saved in correct format

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LehmBook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant