Lesson 2: further discussion ✅

It would be nice if there was an option to remove the actual image; sometimes one wants to use the image collection for another purpose without having to use the same interface that requires cleaned.csv to tag along.

Bump! Yea I’m having this issue too… ImageCleaner just hangs, if I remove the path argument I get the same error. Did you find any way around this?

Hi there! I’m testing out with my own data and ran into error while trying to put predict a single image.

Seems like learn.predict is returning the correct result but pred_class is displayed as a memory address rather than a label, any idea why?

1 Like

Nvm I figured it out, just needed to call print(pred_class)

1 Like

Hi I am trying to train a classifier for medical images but learn.fit_one_cycle(4) does not seem to be doing any training.

I found someone posted saying Colab didn’t support widget ImageCleaner ( ImageCleaner ). There’s an alternative which is little tedious, but it does solve the problem. I used this method and able to get the dataset cleaned and proceed the subsequent steps. Here’s the alternative solution I found in other post : ImageCleaner missing argument in lesson 2 download notebook

2 Likes

We’d probably need to have a look at how you created the databunch to guess what’s going on

Edit: by the look of it, it seems ALL your images are labeled as “Key_slice_examples”. So the model is always predicting that one single label, with 100% accuracy, and no loss

1 Like

Did you manage to figure this out?

So I was creating my own classifier on distinguishing between spongebob and spiderman and

learn.lr_find()

does not output and anything and the graph is empty too. I am doing on this on a kaggle kernel if that provides any helpful info. Anyone encountered a similar problem?

1 Like

@joaoeira The method declaration is wrong, remove the last parameter Path as it is not required. it should be:
ImageCleaner(ds, idxs)

Type help(ImageCleaner) to see the details

Also I realised it was an issue with a version of ImageCleaner. The older version did not have the path parameter the newer version has path parameter. So you will need to upgrade fastAI. Do ??ImageCleaner to see which version you have

Hi all,
I created a Github project template for deploying simple image classifiers on Render.com
based on render examples as described in the deployment docs.

3 Likes

Hi there. Unfortunately, I did not figure this out. I could not reproduce the particular way that the library calculates its derivatives.

Having the same issue with tabular data. Repeatedly re-running the same code after having restarted sometimes gets the plot to show up. Not sure what’s going on.

hi everyone i am trying this for a while please check this out …
and it is giving me file not found error…


initially my data is present in the d directory so what i am doing is … in this way …
the path.ls()
gives me the correct directory structure only…
but…now check… this …

it is showing me the file not found error and the path is now changed why i am fighting with this problem from a couple of hours i tried all possible ways like i hard coded the path and set it to the function and
i executed the cell download_image the scroll bar started but finally the folder created but there are no photos… in it just empty folder
every one can see that there is a folder created … but it is empty please help me… because i tried all the possible ways of hardcoding so please let me know…

Hi, the ImageCleaner is hanging. This is the line I’m executing ImageCleaner(ds, idxs, path).
I’m using colab. Let me know what I’m doing wrong ?

Hi! Is urls_black.txt file in bears folder?

Hi @apoorv16,
ImageCleaner doesn’t work on colab unfortunately.
See ImageCleaner doesn't render for possible workarounds

HTH.

Butch

Thanks for the info @butchland , will check them out.

Can anyone tell me what am I doing wrong here?

What do I need to give as a positional argument to the ImageCleaner function as shown in the screenshot?