Spaces:
Runtime error
Runtime error
use recommended requirements and disable xformers
Browse files- app.py +3 -3
- requirements.txt +3 -6
app.py
CHANGED
@@ -13,7 +13,7 @@ output_res = (768,768)
|
|
13 |
|
14 |
conditioning_image_transforms = T.Compose(
|
15 |
[
|
16 |
-
T2.ScaleJitter(target_size=output_res, scale_range=(0.5, 3.0)),
|
17 |
T.RandomCrop(size=output_res, pad_if_needed=True, padding_mode="symmetric"),
|
18 |
T.ToTensor(),
|
19 |
T.Normalize([0.5], [0.5]),
|
@@ -27,8 +27,8 @@ pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
|
27 |
torch_dtype=torch.float16,
|
28 |
)
|
29 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
30 |
-
pipe.enable_model_cpu_offload()
|
31 |
-
pipe.enable_xformers_memory_efficient_attention()
|
32 |
|
33 |
generator = torch.manual_seed(0)
|
34 |
|
|
|
13 |
|
14 |
conditioning_image_transforms = T.Compose(
|
15 |
[
|
16 |
+
#T2.ScaleJitter(target_size=output_res, scale_range=(0.5, 3.0)),
|
17 |
T.RandomCrop(size=output_res, pad_if_needed=True, padding_mode="symmetric"),
|
18 |
T.ToTensor(),
|
19 |
T.Normalize([0.5], [0.5]),
|
|
|
27 |
torch_dtype=torch.float16,
|
28 |
)
|
29 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
30 |
+
#pipe.enable_model_cpu_offload()
|
31 |
+
#pipe.enable_xformers_memory_efficient_attention()
|
32 |
|
33 |
generator = torch.manual_seed(0)
|
34 |
|
requirements.txt
CHANGED
@@ -1,13 +1,10 @@
|
|
1 |
-f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
|
2 |
-
jax[
|
3 |
jaxlib
|
4 |
git+https://github.com/huggingface/diffusers@main
|
5 |
opencv-python
|
6 |
transformers
|
7 |
flax
|
8 |
pillow
|
9 |
-
torch
|
10 |
-
|
11 |
-
torchvision==0.15.1
|
12 |
-
git+https://github.com/huggingface/accelerate
|
13 |
-
xformers
|
|
|
1 |
-f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
|
2 |
+
jax[cuda11_pip]
|
3 |
jaxlib
|
4 |
git+https://github.com/huggingface/diffusers@main
|
5 |
opencv-python
|
6 |
transformers
|
7 |
flax
|
8 |
pillow
|
9 |
+
torch
|
10 |
+
torchvision
|
|
|
|
|
|