How can i check that ImageClassifierCleaner(learn) did actually remove my selected images?

a quick question on lesson 2:

when i run these lines of code:

“cleaner = ImageClassifierCleaner(learn)
cleaner”

i can select images in every category, to keep/delete/move - but:
when i change to another category and then return to the previous category - all my selections are gone.

does the cleaner still store my selections somewhere?
or alternatively - do i need to run this code

“for idx in cleaner.delete(): cleaner.fns[idx].unlink()”

every time after i did my selection in one category before i change to another category?

cheers

Hey,

I think your hypothesis is correct, simply making the cleaner selections but without ‘actioning’ them by calling unlink() it won’t make any changes to the objects. Maybe there’s a better workflow or way to do this but I’m not sure of it.

1 Like