Spaces:
Runtime error
Runtime error
Commit
·
9853e8c
1
Parent(s):
6df2860
change loras weights and prompt refinement
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ pipe = pipe.to(device)
|
|
| 41 |
pipe.load_lora_weights(flat_lora_path, weight_name=flat_weigths_file, adapter_name="flat")
|
| 42 |
pipe.load_lora_weights(canny_lora_path, weight_name=canny_weigths_file, adapter_name="canny")
|
| 43 |
|
| 44 |
-
pipe.set_adapters(["flat", "canny"], adapter_weights=[1.
|
| 45 |
|
| 46 |
MAX_SEED = np.iinfo(np.int32).max
|
| 47 |
MAX_IMAGE_SIZE = 1024
|
|
@@ -82,6 +82,7 @@ description_prompt = """
|
|
| 82 |
I want you to imagine how the technical flat sketch of the garment you see in the picture would look like, and describe it in rich details, in one paragraph.
|
| 83 |
Don't add any additional comment.
|
| 84 |
Specify that the flat sketch is black and white (even if the original garment has a color) and that it doesn't include the person that wear the garment.
|
|
|
|
| 85 |
|
| 86 |
|
| 87 |
The style of the result should look somewhat like the following example:
|
|
|
|
| 41 |
pipe.load_lora_weights(flat_lora_path, weight_name=flat_weigths_file, adapter_name="flat")
|
| 42 |
pipe.load_lora_weights(canny_lora_path, weight_name=canny_weigths_file, adapter_name="canny")
|
| 43 |
|
| 44 |
+
pipe.set_adapters(["flat", "canny"], adapter_weights=[1.2, 0.4])
|
| 45 |
|
| 46 |
MAX_SEED = np.iinfo(np.int32).max
|
| 47 |
MAX_IMAGE_SIZE = 1024
|
|
|
|
| 82 |
I want you to imagine how the technical flat sketch of the garment you see in the picture would look like, and describe it in rich details, in one paragraph.
|
| 83 |
Don't add any additional comment.
|
| 84 |
Specify that the flat sketch is black and white (even if the original garment has a color) and that it doesn't include the person that wear the garment.
|
| 85 |
+
It should start with "The technical flat sketch of..."
|
| 86 |
|
| 87 |
|
| 88 |
The style of the result should look somewhat like the following example:
|