Skip to content

Instantly share code, notes, and snippets.

@arunm8489
Last active June 5, 2020 04:44
Show Gist options
  • Save arunm8489/99636e586f582f65dbf5e86eed5a6369 to your computer and use it in GitHub Desktop.
Save arunm8489/99636e586f582f65dbf5e86eed5a6369 to your computer and use it in GitHub Desktop.
try:
#Get the various classes detected in the image
img_classes = torch.unique(image_pred_[:,-1]) # -1 index holds the class index
except:
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment