update requirements
Browse files- app.py +0 -8
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -27,14 +27,6 @@ pipe = FluxFillPipeline.from_pretrained(
|
|
| 27 |
).to("cuda")
|
| 28 |
|
| 29 |
|
| 30 |
-
def can_expand(source_width, source_height, target_width, target_height, alignment):
|
| 31 |
-
if alignment in ("Left", "Right") and source_width >= target_width:
|
| 32 |
-
return False
|
| 33 |
-
if alignment in ("Top", "Bottom") and source_height >= target_height:
|
| 34 |
-
return False
|
| 35 |
-
return True
|
| 36 |
-
|
| 37 |
-
|
| 38 |
def prepare_image_and_mask(
|
| 39 |
image,
|
| 40 |
padding_top=0,
|
|
|
|
| 27 |
).to("cuda")
|
| 28 |
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
def prepare_image_and_mask(
|
| 31 |
image,
|
| 32 |
padding_top=0,
|
requirements.txt
CHANGED
|
@@ -18,3 +18,4 @@ scikit-image
|
|
| 18 |
kornia
|
| 19 |
huggingface_hub
|
| 20 |
sentencepiece
|
|
|
|
|
|
| 18 |
kornia
|
| 19 |
huggingface_hub
|
| 20 |
sentencepiece
|
| 21 |
+
einops
|