Spaces:
Sleeping
Sleeping
Commit
·
7ff017f
1
Parent(s):
f12a36d
Fixed requierements
Browse files- patch/python.py +4 -4
- requirements.txt +20 -20
- start_docker.sh +4 -1
patch/python.py
CHANGED
|
@@ -22,10 +22,10 @@ from huggingface_hub import hf_hub_download
|
|
| 22 |
token = os.getenv("HF_TKN")
|
| 23 |
# Merge both mappings
|
| 24 |
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS_1, **NODE_CLASS_MAPPINGS_2, **NODE_CLASS_MAPPINGS_3, **NODE_CLASS_MAPPINGS_4, **NODE_CLASS_MAPPINGS_5, **NODE_CLASS_MAPPINGS_6}
|
| 25 |
-
hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="flux1-dev.safetensors", local_dir="models/unet", token = token)
|
| 26 |
-
hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="ae.safetensors", local_dir="models/vae", token = token)
|
| 27 |
-
hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="clip_l.safetensors", local_dir="models/text_encoders", token = token)
|
| 28 |
-
hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="t5xxl_fp16.safetensors", local_dir="models/text_encoders", token = token)
|
| 29 |
|
| 30 |
def preprocess_image_tensor(image):
|
| 31 |
# If image has a batch dimension (shape: [1, C, H, W]), remove it.
|
|
|
|
| 22 |
token = os.getenv("HF_TKN")
|
| 23 |
# Merge both mappings
|
| 24 |
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS_1, **NODE_CLASS_MAPPINGS_2, **NODE_CLASS_MAPPINGS_3, **NODE_CLASS_MAPPINGS_4, **NODE_CLASS_MAPPINGS_5, **NODE_CLASS_MAPPINGS_6}
|
| 25 |
+
#hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="flux1-dev.safetensors", local_dir="models/unet", token = token)
|
| 26 |
+
#hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="ae.safetensors", local_dir="models/vae", token = token)
|
| 27 |
+
#hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="clip_l.safetensors", local_dir="models/text_encoders", token = token)
|
| 28 |
+
#hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="t5xxl_fp16.safetensors", local_dir="models/text_encoders", token = token)
|
| 29 |
|
| 30 |
def preprocess_image_tensor(image):
|
| 31 |
# If image has a batch dimension (shape: [1, C, H, W]), remove it.
|
requirements.txt
CHANGED
|
@@ -2,28 +2,28 @@
|
|
| 2 |
torch==2.7.0
|
| 3 |
torchvision==0.22.0
|
| 4 |
torchaudio==2.7.0
|
| 5 |
-
torchsde
|
| 6 |
-
numpy
|
| 7 |
-
einops
|
| 8 |
-
transformers
|
| 9 |
-
tokenizers
|
| 10 |
-
sentencepiece
|
| 11 |
-
safetensors
|
| 12 |
-
|
| 13 |
-
yarl
|
| 14 |
-
pyyaml
|
| 15 |
-
Pillow
|
| 16 |
-
scipy
|
| 17 |
-
tqdm
|
| 18 |
-
psutil
|
| 19 |
-
kornia
|
| 20 |
-
spandrel
|
| 21 |
-
soundfile
|
| 22 |
-
av
|
| 23 |
accelerate
|
| 24 |
diffusers==0.33.1
|
| 25 |
-
xformer
|
| 26 |
-
sentencepiece
|
| 27 |
peft==0.15.0
|
| 28 |
gradio==4.44.1
|
| 29 |
pydantic==2.10.6
|
|
|
|
| 2 |
torch==2.7.0
|
| 3 |
torchvision==0.22.0
|
| 4 |
torchaudio==2.7.0
|
| 5 |
+
torchsde==0.2.6
|
| 6 |
+
numpy==1.26.4
|
| 7 |
+
einops== 0.8.1
|
| 8 |
+
transformers==4.52.4
|
| 9 |
+
tokenizers==0.21.1
|
| 10 |
+
sentencepiece==0.2.0
|
| 11 |
+
safetensors==0.5.3
|
| 12 |
+
aiohtt==3.12.9
|
| 13 |
+
yarl==1.20.0
|
| 14 |
+
pyyaml==6.0.2
|
| 15 |
+
Pillow==10.4.0
|
| 16 |
+
scipy==1.15.3
|
| 17 |
+
tqdm==4.67.1
|
| 18 |
+
psutil=7.0.0
|
| 19 |
+
kornia==0.8.1
|
| 20 |
+
spandrel==0.4.1
|
| 21 |
+
soundfile==0.13.1
|
| 22 |
+
av==14.4.0
|
| 23 |
accelerate
|
| 24 |
diffusers==0.33.1
|
| 25 |
+
xformer==1.7.0
|
| 26 |
+
sentencepiece==0.2.0
|
| 27 |
peft==0.15.0
|
| 28 |
gradio==4.44.1
|
| 29 |
pydantic==2.10.6
|
start_docker.sh
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Start docker container in WSL to debug locally
|
| 3 |
NAME=T2A
|
|
|
|
|
|
|
| 4 |
IMAGE_NAME=text2autochrome
|
| 5 |
-
docker run --gpus all -it
|
| 6 |
--name=$NAME \
|
|
|
|
| 7 |
$IMAGE_NAME
|
| 8 |
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Start docker container in WSL to debug locally
|
| 3 |
NAME=T2A
|
| 4 |
+
WEIGHTS=/mnt/e/weights
|
| 5 |
+
|
| 6 |
IMAGE_NAME=text2autochrome
|
| 7 |
+
docker run --gpus all -it --rm \
|
| 8 |
--name=$NAME \
|
| 9 |
+
-v $WEIGHTS:/workspace/autochrome-gen-cui/models \
|
| 10 |
$IMAGE_NAME
|
| 11 |
|