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
Traceback (most recent call last):
File "scripts/predict_flic.py", line 211, in
test(args)
File "scripts/predict_flic.py", line 118, in test
pred = preds[n]
TypeError: 'Variable' object does not support indexing
It worked when I changed pred = preds[n] to pred = preds.data[n]. It is assigned it correctly for GPU mode with
When running visualization code I got error:
Traceback (most recent call last):
File "scripts/predict_flic.py", line 211, in
test(args)
File "scripts/predict_flic.py", line 118, in test
pred = preds[n]
TypeError: 'Variable' object does not support indexing
It worked when I changed pred = preds[n] to pred = preds.data[n]. It is assigned it correctly for GPU mode with
But same should be done for CPU mode.
The text was updated successfully, but these errors were encountered: