(Remark: your code will be more readable if you insert it between backticks `, or triple backticks ``` if it spans several lines.)
What I am guessing is happening is that shutil.move is expecting a string and you pass it a Path. Maybe passing str(cleaner.fns[idx]) might be a workaround?
Update: this seems to be a bug reported here, apparently fixed in python3.9: âshutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directoryâ.
@jeremy In your masks video, you mention that Tokyo is kind of back to normal.
Articles that points to the contrary ^^. Not suggesting that masks are not important but I dont think we are even close to talking about getting back to normal and maybe we can make that more explicit in the video?
Object detection is itself classification, isnât it ? You may have either cats or dogs as your training objects. The algorithm does classify them as part of object detection.
It is and it isnât. Object detection does two tasks at once. First find any and all objects similar to what weâve been looking for and surround it in two points (regression) and then classify what is in said box. Here though because we want the number of instances object detection letâs us do that because of the regression step
You can do only one resize. We doing it 2 times because of speed. First time we resize every image to the same size - it works on cpu. Next transforms is on batch of same size images, can be done on gpu.
I was doing the lesson 2 by downloading tyre (âtireâ for US) images. Specifically, car, cycle and bus tyres.
When I execute the command to show_batches for valid or train, I get the below error:
/usr/local/lib/python3.6/dist-packages/PIL/Image.py:932: UserWarning: Palette images with Transparency expressed in bytes should be converted to RGBA images
"Palette images with Transparency expressed in bytes should be "
I did google this error and it seems that its related to PNG images and PNG images must have been downloaded instead of just JPG. I converted the PNG images to JPG but still have this error.