Giter VIP home page Giter VIP logo

sketch-to-render's Introduction

Setup

Create directories files.

mkdir -p src/sks
mkdir -p .venv/venv

Dependencies

Download dependencies.

Install dependencies inside a python venv.

python -m venv .venv/venv
source .venv/venv/bin/activate
pip install -U git+https://github.com/AguilarLagunasArturo/diffusers.git
pip install omegaconf
pip install transformers safetensors accelerate

Configure scripts

Replace the paths where you stored the models.

PATH_TO_HF_MODELS = os.path.join(HOME, "<path/to/base/models>")
PATH_TO_CN_MODELS = os.path.join(HOME, "<path/to/controlnet/models>")

Run script

Test base model

python txt2img.py

Test sketch to image pipeline

Place your sketches in src/sks.

python sketch2img.py

Results

Input Output
Prompt: (masterpiece,best quality,hires,high resolution:1.2),(extremely detailed,realistic,intricate details),(nigh light,ominous,dark ambient),3d,cg,1girl,portrait,sad,eye bags,white uniform,tie,pony tail,black hair,looking at viewer,1960s (style),vintage fantasy,film grain Negative: (worst quality:2), (low quality:2),(normal quality:2), lowres, bad anatomy,((extra limbs)),((extra legs)),((fused legs)),((extra arms)),((fused arms)),normal quality, ((monochrome)), ((grayscale)), ((watermark)), uneven eyes, lazy eye,(((mutated hand))),multiple navel,ornaments,((lowres:1.8)),((blurry:1.8)),noise, Size: (512, 768) Steps: 32 Seed: 78471 Model: astranime txt2img
Prompt: (masterpiece,best quality,hires,high resolution:1.2),(extremely detailed,realistic,intricate details),(nigh light,ominous,dark ambient),3d,cg,1girl,portrait,sad,eye bags,white uniform,tie,pony tail,black hair,looking at viewer,1960s (style),vintage fantasy,film grain Negative: (worst quality:2), (low quality:2),(normal quality:2), lowres, bad anatomy,((extra limbs)),((extra legs)),((fused legs)),((extra arms)),((fused arms)),normal quality, ((monochrome)), ((grayscale)), ((watermark)), uneven eyes, lazy eye,(((mutated hand))),multiple navel,ornaments, Size: (512, 512) Steps: 32 Seed: 8318 Model: astranime sk2img

sketch-to-render's People

Contributors

aguilarlagunasarturo 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.