Skip to content

Commit 18cdb55

Browse files
committed
update requirements.txt to run on m1 w/pip
1 parent 8d16a69 commit 18cdb55

File tree

4 files changed

+89
-13
lines changed

4 files changed

+89
-13
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe your environment**
11+
- GPU: [cuda/amd/mps/cpu]
12+
- VRAM: [if known]
13+
- CPU arch: [x86/arm]
14+
- OS: [Linux/Windows/macOS]
15+
- Python: [Anaconda/miniconda/miniforge/pyenv/other (explain)]
16+
- Branch: [if `git status` says anything other than "On branch main" paste it here]
17+
- Commit: [run `git show` and paste the line that starts with "Merge" here]
18+
19+
**Describe the bug**
20+
A clear and concise description of what the bug is.
21+
22+
**To Reproduce**
23+
Steps to reproduce the behavior:
24+
1. Go to '...'
25+
2. Click on '....'
26+
3. Scroll down to '....'
27+
4. See error
28+
29+
**Expected behavior**
30+
A clear and concise description of what you expected to happen.
31+
32+
**Screenshots**
33+
If applicable, add screenshots to help explain your problem.
34+
35+
**Additional context**
36+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

README.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ text-to-image generator. This fork supports:
1818
1. An interactive command-line interface that accepts the same prompt
1919
and switches as the Discord bot.
2020

21-
2. Support for img2img in which you provide a seed image to build on
22-
top of.
23-
24-
3. A basic Web interface that allows you to run a local web server for
21+
2. A basic Web interface that allows you to run a local web server for
2522
generating images in your browser.
2623

24+
3. Support for img2img in which you provide a seed image to guide the
25+
image creation. (inpainting & masking coming soon)
26+
2727
4. A notebook for running the code on Google Colab.
2828

2929
5. Upscaling and face fixing using the optional ESRGAN and GFPGAN
@@ -52,7 +52,8 @@ improvements and bug fixes.
5252
1. [Windows](#windows)
5353
1. [MacOS](README-Mac-MPS.md)
5454
4. [Troubleshooting](#troubleshooting)
55-
5. [Support](#support)
55+
5. [Contributing](#contributing)
56+
6. [Support](#support)
5657

5758
# Features
5859

@@ -404,10 +405,10 @@ repository and associated paper for details and limitations.
404405
- Supports a Google Colab notebook for a standalone server running on Google hardware [Arturo Mendivil](https://github.com/artmen1516)
405406
- WebUI supports GFPGAN/ESRGAN facial reconstruction and upscaling [Kevin Gibbons](https://github.com/bakkot)
406407
- WebUI supports incremental display of in-progress images during generation [Kevin Gibbons](https://github.com/bakkot)
407-
- Output directory can be specified on the dream> command line.
408-
- The grid was displaying duplicated images when not enough images to fill the final row [Muhammad Usama](https://github.com/SMUsamaShah)
409408
- Can specify --grid on dream.py command line as the default.
410409
- Miscellaneous internal bug and stability fixes.
410+
- Works on M1 Apple hardware.
411+
- Multiple bug fixes.
411412

412413
For older changelogs, please visit **[CHANGELOGS](CHANGELOG.md)**.
413414

@@ -733,6 +734,20 @@ of branch>
733734
You will need to go through the install procedure again, but it should
734735
be fast because all the dependencies are already loaded.
735736

737+
# Contributing
738+
739+
Anyone who wishes to contribute to this project, whether
740+
documentation, features, bug fixes, code cleanup, testing, or code
741+
reviews, is very much encouraged to do so. If you are unfamiliar with
742+
how to contribute to GitHub projects, here is a [Getting Started
743+
Guide](https://opensource.com/article/19/7/create-pull-request-github).
744+
745+
A full set of contribution guidelines, along with templates, are in
746+
progress, but for now the most important thing is to **make your pull
747+
request against the "development" branch**, and not against
748+
"main". This will help keep public breakage to a minimum and will
749+
allow you to propose more radical changes.
750+
736751
# Support
737752

738753
For support,
@@ -745,8 +760,12 @@ _Contributions by:_
745760
[Peter Kowalczyk](https://github.com/slix), [Henry Harrison](https://github.com/hwharrison),
746761
[xraxra](https://github.com/xraxra), [bmaltais](https://github.com/bmaltais), [Sean McLellan](https://github.com/Oceanswave),
747762
[nicolai256](https://github.com/nicolai256), [Benjamin Warner](https://github.com/warner-benjamin),
748-
[tildebyte](https://github.com/tildebyte),[yunsaki](https://github.com/yunsaki)
749-
and [Tesseract Cat](https://github.com/TesseractCat)
763+
[tildebyte](https://github.com/tildebyte),[yunsaki](https://github.com/yunsaki), [James Reynolds][https://github.com/magnusviri],
764+
[Tesseract Cat](https://github.com/TesseractCat), and many more!
765+
766+
(If you have contributed and don't see your name on the list of
767+
contributors, please let lstein know about the omission, or make a
768+
pull request)
750769

751770
Original portions of the software are Copyright (c) 2020 Lincoln D. Stein (https://github.com/lstein)
752771

requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ huggingface-hub==0.8.1
44
imageio==2.9.0
55
imageio-ffmpeg==0.4.2
66
kornia==0.6.0
7-
numpy==1.19.2
7+
numpy==1.23.1
8+
--pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
89
omegaconf==2.1.1
9-
opencv-python==4.1.2.30
10+
opencv-python==4.6.0.66
1011
pillow==9.2.0
1112
pudb==2019.2
12-
torch==1.11.0
13+
torch==1.12.1
1314
torchvision==0.12.0
1415
pytorch-lightning==1.4.2
1516
streamlit==1.12.0
@@ -19,4 +20,4 @@ torchmetrics==0.6.0
1920
transformers==4.19.2
2021
-e git+https://github.com/openai/CLIP.git@main#egg=clip
2122
-e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
22-
-e git+https://github.com/lstein/k-diffusion.git@master#egg=k-diffusion
23+
-e git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion

0 commit comments

Comments
 (0)