Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I'M Trying To Use

Hi, I'm trying to use task.upload_artifact() for uploading numpy array / pandas DF as the documentation says it's possible, but I keep getting error.
if name in self._artifacts_container:
TypeError: unhashable type: 'numpy.ndarray'

  
  
Posted 2 years ago
Votes Newest

Answers 7


HappyDove3 where are you running the code?
(the upload is done in the background, but it seems the python interpreter closed?!)
You can also wait for the upload:
task.upload_artifact(name="my artifact", artifact_object=np.eye(3,3), wait_on_upload=True)

  
  
Posted 2 years ago

Oh, I didn't do it like this. Now it is working! Thanks!

  
  
Posted 2 years ago

Thanks!

  
  
Posted 2 years ago

I'm running it on pycharm from my script there

  
  
Posted 2 years ago

Hi HappyDove3
Are you passing it this way?
task.upload_artifact(name="my artifact", artifact_object=np.eye(3,3))
https://github.com/allegroai/clearml/blob/5953dc6eefadcdfcc2bdbb6a0da32be58823a5af/examples/reporting/artifacts.py#L38

  
  
Posted 2 years ago

Added wait_on_upload and now there are no errors

  
  
Posted 2 years ago

Maybe you can also help me with this:
I'm getting this errors: but it seems like everything is still uploaded correctly so I can't understand why this errors appear.
2022-01-18 11:42:16,929 - clearml.storage - ERROR - Failed uploading: cannot schedule new futures after interpreter shutdown 2022-01-18 11:42:16,930 - clearml.storage - ERROR - Failed uploading: cannot schedule new futures after interpreter shutdown 2022-01-18 11:42:16,931 - clearml.storage - ERROR - Failed uploading: cannot schedule new futures after interpreter shutdown 2022-01-18 11:42:16,931 - clearml.storage - ERROR - Exception encountered while uploading Upload failed 2022-01-18 11:42:16,931 - clearml.metrics - WARNING - Failed uploading to (Upload failed) 2022-01-18 11:42:17,761 - clearml.metrics - ERROR - Not uploading 1/3 events because the data upload failed

  
  
Posted 2 years ago
905 Views
7 Answers
2 years ago
one year ago
Tags