Giter VIP home page Giter VIP logo

kohya_prep's Introduction

Kohya LoRA preprocessing

mov2Images.py

Little image extractor and tagger from selfie video as input. The resulting images are meant to be used by Kohya to create a LoRA for something like SDLX. The images reduced to 512x512.

resizeImages.py

Resizes images from a directory to an output directory. The images are reduced to 768x768.

Face Feature Extraction Program Installation & Execution Guide

This guide provides instructions on how to install the necessary dependencies and run the face feature extraction program.

Dependencies

  • Python 3.7 or higher
  • OpenCV
  • Face Recognition
  • NumPy

Installation

First, ensure that you have Python 3.7 or higher installed on your system. You can download Python from the official website at https://www.python.org/downloads/.

After installing Python, you can install the required Python packages using pip. Open a terminal or command prompt and run the following commands:

pip install opencv-python
pip install face_recognition
pip install numpy

Note

The image or video file path should point to a valid .png, .jpg, .jpeg, or .mov file. The output directory should be a valid directory on your filesystem where the program has write access. If processing a video, the program will process each frame asynchronously and may take some time to complete, depending on the video length and resolution.

Make sure to copy the Python script into a file named create.py and follow the installation guide above to set up your environment. After installation, you'll be able to run the script as instructed.

Enjoy!

Make this better if you can - cheers!

kohya_prep's People

Contributors

randomtask2000 avatar

Stargazers

 avatar

Watchers

 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.