Giter Club home page Giter Club logo

training-picker's Introduction

training-picker

Adds a tab to the webui that allows the user to automatically extract keyframes from video, and manually extract 512x512 crops of those frames for use in model training.

image

Installation:

  1. Install AUTOMATIC1111's Stable Diffusion Webui
  2. Install ffmpeg for your operating system
  3. Clone this repository into the extensions folder inside the webui

Make sure you don't already have python-ffmpeg installed globally, as the library this program uses is ffmpeg-python, and your installation will conflict with it.

Usage:

Creating an extracted frame set

  1. Drop videos you want to extract cropped frames from into the training-picker/videos folder
  2. Open up the Training Picker tab of the webui
  3. Select one of the videos you placed in the training-picker/videos folder from the dropdown on the left
  4. Click 'Extract Frames`
  5. After the extraction finishes, a new keyframe set for the video should be selectable in the dropdown on the right
  6. Select the keyframe set, and the frames will appear in the browser below

Optionally, you can also just supply a large collection of individual images you would like to work with directly by placing them into a folder within training-picker/extracted-frames.

Cropping

  • Scroll up and down to increase or decrease the size of the crop brush
  • Ctrl+scroll to adjust the aspect ratio of the crop, and middle-click to reset the aspect ratio to 1:1
  • Shift+scroll to adjust the size / aspect ratio by smaller increments
  • Click to save a crop at the brush's position
  • Navigate between frames in the collection by clicking the navigation buttons, entering a number into the counter, or by using the arrow keys / AD
  • Select an outfill method to outfill the non-square area of a rectangular crop into a square shape
  • Click "Bulk process frames with chosen outfill method" to automatically process every image in the current frame set using the outfill method chosen, outputting to the directory under "Save crops to:"
  • Crops will be saved to training-picker/cropped-frames by default

training-picker's People

Contributors

maurdekye avatar janca avatar

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.