EXCEPTION of type 'AttributeError' occurred with message: 'list' object has no attribute 'shape'
lzomlot opened this issue · 3 comments
lzomlot commented
I installed Counterfit using Option 2. While I am going through 'Basic Use' example, I got this Exception. Any suggestions.
File "C:.....\Anaconda3\envs\counterfit\lib\site-packages\art\utils.py", line 534, in check_and_transform_label_format
if len(labels.shape) == 2 and labels.shape[1] > 1:
AttributeError: 'list' object has no attribute 'shape'
EXCEPTION of type 'AttributeError' occurred with message: 'list' object has no attribute 'shape'
bamrainboo commented
moohax commented
This is likely due to your target_output_classes
not being a list, or the return of your predict function not being a list of lists.
moohax commented
The return of the predict function should be a list of lists, where each list is the same length as target_output_classes