Trying to log wandb.Object3D object, getting exception "unhashable type> 'Object3D'

Hey guys and gals,
I am currently trying to log an Object3D object but it wont let me stating that the object is unhashable…

minimal example:

import wandb
import numpy as np

obj = wandb.Object3D(np.array([[0,1,2,100,200,50],[1,2,0,50,0,100]]))
wandb.log({"3dtest",obj})

results in:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'Object3D'

Any advice would be nice (:

Ps: format r,g,b,c leads to the same outcome

Hi @michael_qapture thank you for writing in! You will need to change the log line as: wandb.log({"3dtest": obj}). Would this work for you?

(I am the OP, I was logged into the wrong account)

Oh how awkward, it needs a „:“
Yeah that looks promising, in the console it obviously telly me i have to init a run first but thats promising. As soon as out current training run is done i will change that.
Thanks for the quick response!!

Glad to be of help @marcelqapture @michael_qapture! I will close this ticket for now, as it seems resolved for you. But if you still experience any issue with this, please let us know and we will be happy to keep investigating.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.