Code Monkey home page Code Monkey logo

artjourney's Introduction

Pastel Mix on Rplicate.jbn..

This model use andite/pastel-mix better-vae version and diffusers with three pipelines to generate images.

How it works

This implementation is targeted to make results similar to the pastel-mix demo generated by Stable Diffusion WebUI.

It uses three pipelines:

  • First Pass - use the prompt to generate a base image to add details
  • Second Pass - upscale with Latent mode
  • Third Pass - use the image to image and add more details from the upscaled image

There have many limitations for now because diffusers didn't support all Stable Diffusion WebUI features.

Developmentb

Prepare Batter VAE model

By default andite/pastel model didn't provide the diffusers model with the better-vae version, you have to convert it yourself.

Get diffusers and downlaod pastelmix-better-vae.safetensors from HuggingFaces

git clone [email protected]:huggingface/diffusers.git

Install required python packages

pip3 install diffusers omegaconf transformers safetensors

Convert the model

python3 ./diffusers/scripts/convert_original_stable_diffusion_to_diffusers.py --dump_path ./pastel-mix-better-vae --scheduler_type ddim --from_safetensors --checkpoint_path ./pastelmix-better-vae.safetensors

After your model is dumped, follow HuggingFace Guide to upload it.

If your plan to work on the local machine with GPU, the upload is optional.

Prepare Environment

Before starting, make sure you have docker is installed.

make setup

It will install cog and huggingface-cli for future works.

Run huggingface-cli login if you are working on a remote machine.

And run cog login to make sure you can upload the model.

Testing

You can use cog predict or predefined command make predict to test it works correctly.

artjourney's People

Contributors

elct9620 avatar itspranavajay 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.