Coder Social home page Coder Social logo

w-e-w / sd-webui-deepdanbooru-tag2folder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jibaku789/sd-webui-deepdanbooru-tag2folder

0.0 0.0 0.0 7.83 MB

Using this script you can move images using deepdanbooru classification

License: Apache License 2.0

Python 100.00%

sd-webui-deepdanbooru-tag2folder's Introduction

stable-diffusion-webui-deepdanbooru-tag2folder

Using this script you can move images using deepdanbooru classification

Version 1.0

  • Add initial commit and create repository

Rules Explanation

The section is a text area that will be filled using the rules to migrate the folder. This extension reads the images in the and then match the image with the rules.

The rules should be written in the following format: { "subfolder1": { "AND": ["tag1", "tag2"], }, "subfolder2": { "OR": ["tag1", "tag2"], } }

Depending of the condition "AND" or "OR" will match the image to be moved in the subfolder. Using "AND" will match all the tags in the list and using "OR" will match only one tag. In case that an image does not match any of the rules, will be moved to a folder called "unclassified".

Additionally there are two more options in the , in case of the images does not belong to any rule. This options can create subfolders depending of the type

  • None: will move the images to unclassified
  • Anime: will fetch the anime serie that belong the image and create a new folder with that anime name
  • Character: will fetch the character name that belong the image and create a new folder with that character name

You can review teh example input_folder and input_rules.json in the examples folder

Interface

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.