GithubHelp home page GithubHelp logo

brndnsmth / generation-data-model-sorter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 5 KB

Script used to extract generation data from Stable Diffusion images and sort into model directories.

Python 100.00%

generation-data-model-sorter's Introduction

Generation Data - Model Sorter

Export metadata from images to .txt files, sorted into directories by models.

Useful for bulk sorting of generated images into directories named after checkpoint model.

Example output:

Screenshot 2024-04-21 130958

Usage

  1. Place the images you want to process in the images folder.
  2. Run the script main.py.
  3. Images and text files (w/ generation data) will be added to model directories within output.

The script supports the following file types:

  • .jpg
  • .jpeg
  • .png
  • .bmp
  • .gif

Requirements

  • Python 3.x

Setup Steps

  1. Clone git repo.
git clone https://github.com/brndnsmth/generation-data-model-sorter.git
cd generation-data-model-sorter
  1. Create a Virtual Environment: Utilize Python 3 to create a virtual environment for this project. This step ensures a clean and isolated environment for installing dependencies.
python3 -m venv .venv
  1. Activate the Virtual Environment: Activate the virtual environment to isolate the project dependencies from other Python installations on your system.
source .venv/bin/activate
  1. Install Dependencies: While inside the virtual environment, install the required dependencies specified in the requirements.txt file using pip.
pip install -r requirements.txt
  1. Add Images: Create images folder and add images to directory.
mkdir images
  1. Run the Script: Execute the following command to run the script:
python main.py
  1. Check Output: Check output directory.

generation-data-model-sorter's People

Contributors

brndnsmth avatar

Watchers

 avatar Kostas Georgiou avatar

Forkers

llaith-ai

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.