Update app.py
Browse files
app.py
CHANGED
@@ -42,10 +42,6 @@ pipe.load_lora_weights(
|
|
42 |
weight_name="40kHalf.safetensors"
|
43 |
)
|
44 |
|
45 |
-
# Only enable xformers if available
|
46 |
-
if hasattr(pipe, "enable_xformers_memory_efficient_attention"):
|
47 |
-
pipe.enable_xformers_memory_efficient_attention()
|
48 |
-
|
49 |
def get_canny_image(image, low_threshold=100, high_threshold=200):
|
50 |
if isinstance(image, Image.Image):
|
51 |
image = np.array(image)
|
|
|
42 |
weight_name="40kHalf.safetensors"
|
43 |
)
|
44 |
|
|
|
|
|
|
|
|
|
45 |
def get_canny_image(image, low_threshold=100, high_threshold=200):
|
46 |
if isinstance(image, Image.Image):
|
47 |
image = np.array(image)
|