Closed fumiama closed 2 years ago
Current training script uses only png and jpeg files. So I think it does not effect to training.
OK, then I hope my modification would make it possible to evaluate custom webp images.
Hello, i'm just passing by and noticed you finally added webp compatibility, however you may want to also add the ability to evaluate folders containing webp and train on webp : main.py line 82 : @click.option('--folder-filters', default='.[Pp][Nn][Gg],.[Jj][Pp][Gg],.[Jj][Pp][Ee][Gg],.[Gg][Ii][Ff],*.[Ww][Ee][Bb][Pp]'
and dataset.py line 21 : cursor.execute( "SELECT md5, file_ext, tag_string FROM posts WHERE (file_ext = 'png' OR file_ext = 'jpg' OR file_ext = 'JPG' OR file_ext = 'PNG' OR file_ext = 'jpeg' OR file_ext = 'webp') AND (tag_count_general >= ?) ORDER BY id", (minimum_tag_count,), )
thanks again for that great project !
Exactly. I only fixed the predict part because I had never used it to train a model. Maybe you can open a new PR for that.
The method
is experimental and I'm not sure whether this will effect training or predicting. I have tested under the Pretrained Model and found just a little different between webp and png.