shap-e icon indicating copy to clipboard operation
shap-e copied to clipboard

Issue Report: TypeError in shap_e/examples/sample_text_to_3d.ipynb

Open HFarkhari opened this issue 1 year ago • 1 comments

Dear OpenAI Support,

I hope this message finds you well. I encountered an issue while running the sample_text_to_3d.ipynb file from the shap-e-main repository. The error message I received was:

TypeError: "'type' object is not subscriptable"

After investigating the problem, I managed to find a solution. However, I believe it is important to report this issue and provide a suggestion for resolving it in the codebase.

The issue arises from the use of AttrDict with subscript notation ([]), which is not supported by the AttrDict class. To address this problem, I recommend replacing all instances of AttrDict[... with Dict[... in the relevant Python files. It is crucial to make this replacement only if you encounter [ immediately after AttrDict.

I would like to contribute to improving the codebase and help other users who might encounter the same error. Therefore, I wanted to bring this issue to your attention and kindly request that you update the affected code accordingly.

Thank you for your attention to this matter, and I appreciate your efforts in maintaining and enhancing the open-source projects.

Best regards, Hamed Farkhari [HFarkhari]

HFarkhari avatar May 11 '23 11:05 HFarkhari

yes same mistake for me but in colab it works fine..

xaranex1 avatar May 11 '23 16:05 xaranex1

Duplicate of https://github.com/openai/shap-e/issues/11

You just need to update Python.

unixpickle avatar May 12 '23 15:05 unixpickle