add back requirements.txt

This commit is contained in:
Brett Kuprel 2022-07-01 12:53:55 -04:00
parent f71bd054fd
commit b61041f766
5 changed files with 7 additions and 3 deletions

2
README.md vendored
View File

@ -9,7 +9,7 @@ It currently takes **7.4 seconds** to generate an image with DALL·E Mega with P
### Setup
Run either `sh setup_torch.sh` or `sh setup_flax.sh` to install dependencies and download pretrained models. The torch models can be manually downloaded [here](https://huggingface.co/kuprel/min-dalle/tree/main).
Run either `sh setup.sh` to install dependencies and download pretrained models. The torch models can be manually downloaded [here](https://huggingface.co/kuprel/min-dalle/tree/main).
The flax models can be manually downloaded here:
[VQGan](https://huggingface.co/dalle-mini/vqgan_imagenet_f16_16384),
[DALL·E Mini](https://wandb.ai/dalle-mini/dalle-mini/artifacts/DalleBart_model/mini-1/v0/files),

1
requirements.txt vendored Normal file
View File

@ -0,0 +1 @@
torch

3
requirements_flax.txt vendored Normal file
View File

@ -0,0 +1,3 @@
flax
torch
wandb

View File

@ -2,7 +2,7 @@
set -e
pip3 install torch
pip3 install -r requirements.txt
mkdir -p ./pretrained/dalle_bart_mega/
curl https://huggingface.co/kuprel/min-dalle/resolve/main/vocab.json -L --output ./pretrained/dalle_bart_mega/vocab.json

2
setup_flax.sh vendored
View File

@ -2,7 +2,7 @@
set -e
pip install torch flax wandb
pip3 install -r requirements_flax.txt
# download vqgan
mkdir -p pretrained/vqgan