Comments (5)
Dockerfile
FROM pytorch/pytorch:1.12.1-cuda11.3-cudnn8-devel
RUN apt update && apt install --yes git ffmpeg libsm6 libxext6
# Create conda environment
RUN git clone https://github.com/Stability-AI/stablediffusion.git
WORKDIR /workspace/stablediffusion/
# Overwrite the environment.yaml file
COPY environment.yaml .
RUN conda env create -f environment.yaml
# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "ldm", "/bin/bash", "-c"]
# Install xformers for memory efficient flash attention
RUN conda install xformers -c xformers/label/dev
RUN conda init bash
RUN echo "conda activate ldm" >> $HOME/.bashrc
Modified environment file .
name: ldm
channels:
- pytorch
- defaults
dependencies:
# Changed to Python 3.9 to make use of precompiled binaries for xformers
- python=3.9
- pip
- cudatoolkit=11.3
- pytorch=1.12.1
- torchvision=0.13.1
- numpy=1.23.1
- pip:
- albumentations==1.3.0
- opencv-python==4.6.0.66
- imageio==2.9.0
- imageio-ffmpeg==0.4.2
- pytorch-lightning==1.4.2
- 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
- -e .
from stablediffusion.
Similar:
from stablediffusion.
See this repo https://github.com/AbdBarho/stable-diffusion-webui-docker
from stablediffusion.
Sorry @prasantpoudel & @xiankgx for standing on your toes !
I guess I have just made another one. Pull request here: #326
Does yours have the same issues as mine?
from stablediffusion.
maybe someone need, just use sd:
- https://github.com/soulteary/docker-stable-video-diffusion
- https://github.com/soulteary/docker-stable-diffusion-xl-turbo
- https://github.com/soulteary/docker-sdxl
or, someone need better performance sd-webui:
from stablediffusion.
Related Issues (20)
- Forbidden Embedded
- error when building docker HOT 1
- xformers installs overwrites torch with 2.2.1 HOT 1
- ERROR: Cannot activate python venv, aborting...
- Stable diffusion does not start
- Repo
- Missing imports
- x4-upscaler get very bad results
- Unable to Locate 'imwatermark' Module HOT 1
- ControlNet wot working after update
- RuntimeError: Input type (c10::Half) and bias type (float) should be the same
- FutureWarning: 'resume_download' error
- How to use DDPM to convert a low-resolution image into a high-resolution image?
- [algorithm suggestion] "Foveated" image representation when sampling?
- Generated images
- Switching between Inpaint maked and not masked is broken
- update to 3.0
- English Resume
- English Resume
- Parameterization "v" Related Questions in LoRA Training
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 stablediffusion.