Unverified Commit 4f954102 authored by narugo1992's avatar narugo1992 Committed by GitHub
Browse files

Merge pull request #57 from deepghs/dev/ages

dev(narugo): init version for anime style ages
parents c5957252 7210bb22
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -16,5 +16,6 @@ imgutils.validate
    nsfw
    portrait
    rating
    style_age
    teen
    truncate
+18 −0
Original line number Diff line number Diff line
import glob
import os.path

from natsort import natsorted

from plot import image_plot

if __name__ == '__main__':
    image_plot(
        *natsorted(glob.glob(os.path.join('style_age', '1970s-', '*.jpg'))),
        *natsorted(glob.glob(os.path.join('style_age', '1980s', '*.jpg'))),
        *natsorted(glob.glob(os.path.join('style_age', '1990s', '*.jpg'))),
        *natsorted(glob.glob(os.path.join('style_age', '2000s', '*.jpg'))),
        *natsorted(glob.glob(os.path.join('style_age', '2010s', '*.jpg'))),
        *natsorted(glob.glob(os.path.join('style_age', '2015s', '*.jpg'))),
        *natsorted(glob.glob(os.path.join('style_age', '2020s', '*.jpg'))),
        columns=4, figsize=(10, 26),
    )
+1535 −0

File added.

Preview size limit exceeded, changes collapsed.

+21 −0
Original line number Diff line number Diff line
imgutils.validate.style_age
=============================================

.. currentmodule:: imgutils.validate.style_age

.. automodule:: imgutils.validate.style_age


anime_style_age_score
-----------------------------

.. autofunction:: anime_style_age_score



anime_style_age
-----------------------------

.. autofunction:: anime_style_age

+234 KiB
Loading image diff...
Loading