You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Everyone I am experimenting with actionclip , and while running my config model, its showing a following error, I assume this has to be the package fix, but maybe I am wrong, Any help would be much apperciated:
TypeError: 'torch._C.Node' object is not subscriptable
Thanks, @junjiejiangjjj. Based on the issue reference you provided, I'd like to share the fix that worked for me. For PyTorch versions greater than 2.0.0, the signature jit=False needs to be set. However, in the code sample provided above, there's no direct call to clip.py where one can add this signature. A workaround is to set the jit value to false directly within clip.py found under towhee/models/clip. I explicitly made this assignment at line 690.
Hey Everyone I am experimenting with actionclip , and while running my config model, its showing a following error, I assume this has to be the package fix, but maybe I am wrong, Any help would be much apperciated:
Config file:
`from towhee import ops, pipe, DataCollection
from glob import glob
p = (
pipe.input('path')
.map('path', 'frames', ops.video_decode.ffmpeg())
.map('frames', ('labels', 'scores', 'features'), ops.action_classification.actionclip(model_name='clip_vit_b16'))
.output('path', 'labels', 'scores', 'features')
)
DataCollection(p('../sources/reverse_video_search/train/tap_dancing/*.mp4')).show()
`
The text was updated successfully, but these errors were encountered: