Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def get_depth_maps(image):
|
|
53 |
|
54 |
|
55 |
# run ControlNet depth with StyleAligned
|
56 |
-
def style_aligned_controlnet(reference_prompt, target_prompt, image)
|
57 |
#reference_prompt = "a poster in flat design style"
|
58 |
#target_prompts = [target_prompts] #["a train in flat design style", "the sun in flat design style"]
|
59 |
controlnet_conditioning_scale = 0.8
|
@@ -74,15 +74,6 @@ def style_aligned_controlnet(reference_prompt, target_prompt, image)
|
|
74 |
#mediapy.show_images([images[0], deph_map] + images[1:], titles=["reference", "depth"] + [f'result {i}' for i in range(1, len(images))])
|
75 |
|
76 |
|
77 |
-
# run StyleAligned
|
78 |
-
sets_of_prompts = [
|
79 |
-
"a toy train. macro photo. 3d game asset",
|
80 |
-
"a toy airplane. macro photo. 3d game asset",
|
81 |
-
"a toy bicycle. macro photo. 3d game asset",
|
82 |
-
"a toy car. macro photo. 3d game asset",
|
83 |
-
"a toy boat. macro photo. 3d game asset",
|
84 |
-
]
|
85 |
-
|
86 |
|
87 |
with gr.Blocks() as demo:
|
88 |
with gr.Row(variant='panel'):
|
|
|
53 |
|
54 |
|
55 |
# run ControlNet depth with StyleAligned
|
56 |
+
def style_aligned_controlnet(reference_prompt, target_prompt, image):
|
57 |
#reference_prompt = "a poster in flat design style"
|
58 |
#target_prompts = [target_prompts] #["a train in flat design style", "the sun in flat design style"]
|
59 |
controlnet_conditioning_scale = 0.8
|
|
|
74 |
#mediapy.show_images([images[0], deph_map] + images[1:], titles=["reference", "depth"] + [f'result {i}' for i in range(1, len(images))])
|
75 |
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
with gr.Blocks() as demo:
|
79 |
with gr.Row(variant='panel'):
|