add back requirements.txt
This commit is contained in:
parent
f71bd054fd
commit
b61041f766
2
README.md
vendored
2
README.md
vendored
|
@ -9,7 +9,7 @@ It currently takes **7.4 seconds** to generate an image with DALL·E Mega with P
|
||||||
|
|
||||||
### Setup
|
### 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:
|
The flax models can be manually downloaded here:
|
||||||
[VQGan](https://huggingface.co/dalle-mini/vqgan_imagenet_f16_16384),
|
[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),
|
[DALL·E Mini](https://wandb.ai/dalle-mini/dalle-mini/artifacts/DalleBart_model/mini-1/v0/files),
|
||||||
|
|
1
requirements.txt
vendored
Normal file
1
requirements.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
torch
|
3
requirements_flax.txt
vendored
Normal file
3
requirements_flax.txt
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
flax
|
||||||
|
torch
|
||||||
|
wandb
|
2
setup_torch.sh → setup.sh
vendored
2
setup_torch.sh → setup.sh
vendored
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
pip3 install torch
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
mkdir -p ./pretrained/dalle_bart_mega/
|
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
|
curl https://huggingface.co/kuprel/min-dalle/resolve/main/vocab.json -L --output ./pretrained/dalle_bart_mega/vocab.json
|
2
setup_flax.sh
vendored
2
setup_flax.sh
vendored
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
pip install torch flax wandb
|
pip3 install -r requirements_flax.txt
|
||||||
|
|
||||||
# download vqgan
|
# download vqgan
|
||||||
mkdir -p pretrained/vqgan
|
mkdir -p pretrained/vqgan
|
||||||
|
|
Loading…
Reference in New Issue
Block a user