Comments (4)
As the subject says. Is it possible to install this in venv instead of using Conda? I don't like all the virtual environments that is created on C: all the time. It slowly fills upp C: instead of just filling up the folder where the program is run. Venv is so much easier to handle
I installed this with venv. At least on Python 3.10.7 everything works for me.
How to install with venv:
git clone https://github.com/lllyasviel/ControlNet.git
- go to "ControlNet"
- open cmd in this folder
python -m venv venv
| this will create venv in "ControlNet\venv" foldervenv\Scripts\activate
| this will activate venv- go to https://pytorch.org/get-started/locally/ and configure command (choose pip instead of conda at least)
in my case the command looked like this:
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
- run the received command in the console
- now you need to install the dependencies from "environment.yaml":
gradio==3.16.2
albumentations==1.3.0
opencv-contrib-python==4.7.0.68
| 4.3.0.36 cannot be installed on python 3.10.7
imageio==2.9.0
imageio-ffmpeg==0.4.2
pytorch-lightning==1.5.0
omegaconf==2.1.1
test-tube==0.7.5
streamlit==1.12.1
einops==0.3.0
transformers==4.19.2
webdataset==0.2.5
kornia==0.6
open_clip_torch==2.0.2
invisible-watermark==0.1.5
streamlit-drawable-canvas==0.8.0
torchmetrics==0.6.0
timm==0.6.12
addict==2.4.0
yapf==0.32.0
prettytable==3.6.0
safetensors==0.2.7
- take one at a time and write the command in the console
pip install gradio==3.16.2
pip install albumentations==1.3.0
etc.
- now the console can be closed
- Don't forget about the weights and other required things.
- To start, I advise you to create a bat (for windows) files in root "ControlNet" folder. Example for run "gradio_annotator.py":
run_gradio_annotator.bat
@echo off
set VENV_DIR=.\venv
set PYTHON=python
call %VENV_DIR%\Scripts\activate.bat
%PYTHON% gradio_annotator.py
pause
After that, you can open the console and run the command to clean up the pip installation files (delete files from C: drive):
pip cache purge
from controlnet.
conda also makes a venv it is same
you need to just extra install conda
i shown in this video and it doesn't break your existing python installations : https://youtu.be/YJebdQ30UZQ
you probably can also install with default python as venv but you probably need to download specific python version and install it to work
from controlnet.
no need anymore
now there is a great extension for automatic1111
It works amazingly well and supports xformers as well now since automatic1111 supports
Also not anymore you need a merged ckpt files
It works with any custom model as well
16.) Automatic1111 Web UI
Sketches into Epic Art with 1 Click: A Guide to Stable Diffusion ControlNet in Automatic1111 Web UI
from controlnet.
no need anymore
now there is a great extension for automatic1111
that was too fast ^_^
from controlnet.
Related Issues (20)
- a
- How long it takes to test an image HOT 3
- Unable to install gradio=3.40.1 HOT 3
- Training a ControlNet to generate furnished room -> empty room (and vice versa). Improvement plateau...
- Comfy UI / Stable Diffusion error
- I would like a complete technical description of how controlnet works
- Unable to Connect to Hugging Face for Model Download in China Mainland HOT 4
- save checkpoint
- How do I find the size of the set epoch
- dataset include different sizes
- trainable copy also means "require_grad==False"
- Art for Web Platforms grid, various set of product items, kitchenware, cutlery, biodegradable bags, bioplastics, eco friendly, trashbag, pet waste, varied, grid, 3D objects set, plastic bags, Creating art for web platforms, often for websites, online galleries, or digital user experiences. Negative prompt: text, repetition, same, noisy, noise, glitch, grainy, blurred, pixelated, unrealistic, malformed, bad, abnormal, print art, digital art Steps: 30, Sampler: Euler a, CFG scale: 7, Seed: 1178069234, Size: 1024x1024, Model hash: 9550adb9d6, Model: nightvisionXLPhotorealisticPortrait_v0743ReleaseBakedvae, ControlNet 0: "Module: softedge_pidinet, Model: bdsqlsz_controlllite_xl_softedge [c28ff1c4], Weight: 0.5, Resize Mode: Crop and Resize, Low Vram: False, Processor Res: 512, Guidance Start: 0, Guidance End: 0.19, Pixel Perfect: False, Control Mode: Balanced, Hr Option: Both, Save Detected Map: True", Version: v1.7.0 Error Time taken: 16.2 sec. A: 5.58 GB, R: 12.72 GB, Sys: 13.2/15.7314 GB (84.1%)
- cannot import name 'Undefined' from 'pydantic.fields' Error HOT 2
- Use openpose in Guessmode
- nvm
- Load CLIPTokenizer error HOT 1
- erorr "cond_stage_model.transformer.text_model.embeddings.position_ids" HOT 2
- training is so slow HOT 2
- ERROR: Exception in ASGI application
- ControlNet cannot refresh the model
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from controlnet.