berliin
(Jinsoo )
May 31, 2023, 12:10pm
1
After running in my jupyterhub notebook:
cleaner = ImageClassifierCleaner(learn)
cleaner
result :
VBox(children=(Dropdown(options=('broccoli', 'kale', 'paprika', 'sugarbeet'), value='broccoli'), Dropdown(opti…
The GUI widget do not show up, which it make unable to clean the image.
I have tried
using alternative to cleaner with display_image_cleaner → failed to locate the function
updating & reinstalling fastai, fastcore
Question:
Is there any other option to clean up the image files?
Or have I missed something before cleaning
Understanding that this works for most people (including me), I suggest:
Try the same code on Kaggle where you know tons of people are running it.
Start from the working code in the fastbook clean directory . See if it runs. Do not change anything, or mark whatever changes you need to make.
berliin
(Jinsoo )
June 1, 2023, 12:28pm
3
Thank you for ur answer. However I have now empty list of results from the clean code, which I cant even see the result. (I have modified the code from 2022 lesson.) I will come back after fixing the bug!
if not path.exists():
path.mkdir()
print(path)
for o in bear_types:
print(True)
dest = (path/o)
dest.mkdir(exist_ok=True)
results = search_images_ddg(f’{o} bear’)
download_images(dest, urls=results)
fns = get_image_files(path)
fns
(#0 )
berliin
(Jinsoo )
June 1, 2023, 12:53pm
4
After fixing the bug, the widget doesnt apper by jupyterhub. maybe its problem of setting of juypter notebook
meanwhile assuming the my bottleneck is due to juypter notebook(explaination )
The only change I did was in the Kaggle jupyter notebook settings.
Under Settings/Environment Settings
I changed from Pin To Original Environment to Always use latest Environment
I still saw the widget broken, but I was able to pick the images to keep and discard.