ImageAIDocumentation icon indicating copy to clipboard operation
ImageAIDocumentation copied to clipboard

K out of range

Open BillJohns opened this issue 2 years ago • 0 comments

File "/Users/billjohnsmaci9/anaconda3/lib/python3.11/site-packages/imageai/Classification/Custom/init.py", line 542, in classifyImage topN_prob, topN_catid = torch.topk(probabilities, result_count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: selected index k out of range

How can this be fixed?

BillJohns avatar Nov 03 '23 20:11 BillJohns