tscohen / GrouPy

Group Equivariant Convolutional Neural Networks
http://ta.co.nl
Other
349 stars 85 forks source link

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part #27

Closed wgimmy closed 7 months ago

wgimmy commented 7 months ago

Hi Dr Cohen I am a newbie who just learned GCNN and I'm trying to run the test file "test_gfuncarray.py"but meet the title's error.The error in the title was reported when I calculated h*f. The error told me that the dimensions of self.v in the call method of GFuncArray may not match the index dimensions of inds. The shapes I printed out afterwards were as follows: inds shapes: [' Ellipsis', (4, 5, 5), (4, 5, 5), (4, 5, 5)], self.v shape: (2, 6, 4, 5, 5), I don’t understand gcnn yet How to make these two shapes match and why an error occurs? Is it because of the numpy version update? Can you please answer it for me?

tscohen commented 7 months ago

This is likely due to a version issue with one of the dependencies. Make sure to use the old versions from when this code was released (2016). In any case I recommend using another code base as this one is no longer maintained. https://github.com/QUVA-Lab/escnn https://e3nn.org/

wgimmy commented 7 months ago

thanks for answering,it helps me a lot!

Taco Cohen @.***> 于2023年11月20日周一 05:17写道:

Closed #27 https://github.com/tscohen/GrouPy/issues/27 as completed.

— Reply to this email directly, view it on GitHub https://github.com/tscohen/GrouPy/issues/27#event-11004618472, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC62CXWA5NTF23P2HGRAPLTYFJZQLAVCNFSM6AAAAAA7QTPQ5SVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGAYDINRRHA2DOMQ . You are receiving this because you authored the thread.Message ID: @.***>