Assuming this is from the Validation set (not training set!)
How do I quickly see these three “confusing” images and either re-classify or delete them? (I am on Google Collab so possibly UI utilities not work but will let experts guide me if they will)
Looks like I need to find where to install ClassLosses (looked at your github and also on fastai docs but could not find it)
Am I missing something basic (that’s totally possible )
I guess I don’t understand the last line (and how to do that on Collab)… my worry is that if I “cd” into some other directory I will lose context of the path… won’t I?
So we have two different versions. One specifically for Colab (when you git clone) and one for other jupyter environments (from fastai.widgets)
So you’ll want to git clone that repository and then you can do from ClassConfusion import * (you may not need to cd into ClassConfusion, try both and if it’s not solved by when I have a computer I’ll look at it )
also tried running the code from ClassConfusion fast.ai documentation
ClassConfusion(interp, classlist, is_ordered=False, figsize=(8,8))
but same error (NoneType!)
Ah I think I know the issue. Try this for me @yogendrajoshi, copy everything from the classConfusion.py into a cell and comment out the fn = re.search() line. Then try again. That regex is specifically for the PETs notebook and dataset and I bet that’s what’s going wrong. Tell me what that outputs for the title of the images.
What that regex should do is select everything up to the last bit of the filename.
EG for pets:
Without regex: /root/.fastai/data/oxford-iiit-pet/images/Ragdoll_91.jpg
With regex: Ragdoll_91.jpg
Can you give me an example of a filename that it prints for the title?