Git Product home page Git Product logo

Comments (3)

timothybrooks avatar timothybrooks commented on August 17, 2024

Hi @Gerschel, thank you for checking and for the detailed summary of how to add this to the automatic1111 webui. It would be fantastic if you are interested in adding it as an extension, and you are also welcome to add a link to it here in the README. All we ask is that you name the extension instruct-pix2pix or reference back to our project in some way. Thank you!

from instruct-pix2pix.

Absinthze avatar Absinthze commented on August 17, 2024

I would love this added to Automatic1111! In the meantime, can I install this on Windows 10? I'm not very code savvy.

from instruct-pix2pix.

Gerschel avatar Gerschel commented on August 17, 2024

@Absinthze
You'll need to convert some stuff from bash to batch.

Scripts folder.
download_data.sh becomes download_data.bat

@echo off

set SCRIPT_DIR=%CD%

mkdir "%SCRIPT_DIR%\..\data" 2>nul

curl -o "%SCRIPT_DIR%\..\data\gpt-generated-prompts.jsonl" -O -J -L http://instruct-pix2pix.eecs.berkeley.edu/gpt-generated-prompts.jsonl
curl -o "%SCRIPT_DIR%\..\data\human-written-prompts.jsonl" -O -J -L http://instruct-pix2pix.eecs.berkeley.edu/human-written-prompts.jsonl

if "%1" == "" (
	goto :EOF
)

mkdir "%SCRIPT_DIR%\..\data\%1" 2>nul

curl -o "%SCRIPT_DIR%\..\data\%1\*" -O -J -L http://instruct-pix2pix.eecs.berkeley.edu/%1/*

for %%i in ("%SCRIPT_DIR%\..\data\%1\*.zip") do (
	expand "%%i" "%SCRIPT_DIR%\..\data\%1\"
)

del /Q "%SCRIPT_DIR%\..\data\%1\*.zip"
del /Q "%SCRIPT_DIR%\..\data\%1\*.html"

download_checkpoints.sh becomes download_checkpoints.bat

@echo off

set SCRIPT_DIR=%CD%

mkdir "%SCRIPT_DIR%\..\checkpoints" 2>nul

curl http://instruct-pix2pix.eecs.berkeley.edu/instruct-pix2pix-00-22000.ckpt -o "%SCRIPT_DIR%\..\checkpoints\instruct-pix2pix-00-22000.ckpt"

download_pretrained_sd.sh becomes download_pretrained_sd.bat, but you might already have these checkpoints, if you do, you can symlink them into the proper folder

@echo off

set SCRIPT_DIR=%CD%

mkdir "%SCRIPT_DIR%\..\stable_diffusion\models\ldm\stable-diffusion-v1" 2>nul

curl -o "%SCRIPT_DIR%\..\stable_diffusion\models\ldm\stable-diffusion-v1\v1-5-pruned-emaonly.ckpt" -L https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt
curl -o "%SCRIPT_DIR%\..\stable_diffusion\models\ldm\stable-diffusion-v1\vae-ft-mse-840000-ema-pruned.ckpt" -L https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt

from instruct-pix2pix.

Related Issues (20)

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.