Open Gum-Joe opened 5 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here (e.g. I signed it!
) and we'll verify it.
Googlers can find more info about SignCLA and this PR by following this link.
CLA has been signed.
CLAs look good, thanks!
Googlers can find more info about SignCLA and this PR by following this link.
When using the retrainer script, only the first level of directories is searched. So, given this file tree:
Only
image.jpg
would be detected, notimage2.jpg
This can be troublesome, for example, when you want an image to also fall into a more broad category, i.e categorybottoms
, sub-categoryjeans
for a clothing classifier.I've edited the function
create_image_lists
to now recursively scan directories for photos, joining categories together with a.
. For example, given this file tree:t-shirt.jpg
would be labelledtops.t-shirts.superdry
andjeans.jpg
asbottoms.jeans