after running my model once .when i tried
data.val_y
i got this as a result array([1, 1, 1, 1, 1, 2, 2, 2, 2, 2])
and when i tried
data.classes
i got this result
[’.ipynb_checkpoints’, ‘idli’, ‘samosa’]
i manually removed .ipynb from my training set ,deleted whole dataset, then uploaded the dataset again
but still i encountered the same issue .does anybody know how to resolve it
Your Jupyter Notebook might be inside the data folder. It needs to be outside of the data folder path. Jupyter will always create the .ipynb_checkpoints because it auto-saves notebooks. Move the Notebook and it should work fine.
i did
import os
print(os.getcwd())
/home/ubuntu/fastai/courses/dl1
so i guess my jupyter notebook is not inside data foder
and even when i moved my jupyter notebook,to /home/ubuntu/fastai/courses ,i faced an error which was module not found error i.e. no module name fastai
as you can clearly see my data folder and my file named thirdattempt are in the same directory
what i learned till now by facing this issue is that
when you run a jupyter notebook, it automatically creates .ipynb_checkpoints class in the directory i’m currrently in
but when i ran dogbreed ,lesson1 all had the same cwd as my file which i’m having trouble with they didn’t had this issue
so,i’m little bit concerned why this file of mine has had this weird issue
can anyone look into my issue and help me in resolving it.
It should work fine as long as you’re inside the fastai folder so that you can import the library and also as long as you’re not in the data directory (The path you’ve set up).
did you create a ipython notebook in your /data folder that you are using and then delete it? Like jeremy suggested you use use ls -l to check whether you have another file in the data directory where your folders “idli” and “samosa” are located.
What I saw an ipynb checkpoint inside my training set of idli and valid set of samosa.even when i removed it manually and then i did
data.val_y
i got
[1,1,1,1,2,2,2,]
as the output
I am having this same issue for when I run my own image classifier. I also don’t have the notebook in the data folder however when I run ls -a it appears checkpoints are being created:
I’m not sure how to delete these checkpoints or how to stop them from forming as the only way I can think that they are forming is when the notebook is inside the data folder, which it isn’t I don’t think aha.
I think the issue may be with when I use the automatic image downloader posted in other threads? As I have no issues with running the image classifier code with manually downloaded images.
I don’t think so this is deleting the .ipynb directory as it mentions that it’s removing the TMP directory
We can do it manually using the notebook homepage via selecting those little check ones
or
use the terminal’s rm-f (warning it’s force remove , it will delete everything in that directory)
Thank you, I agree with you as unfortunately I am getting the same error again. Sorry, so you would suggest running rm -f in the cell before I run the new Image classifier?