Spaces:
Runtime error
Runtime error
akh1r0ck
commited on
Commit
·
867252c
1
Parent(s):
eb815ed
update collage size
Browse files
app.py
CHANGED
@@ -54,9 +54,9 @@ def show_image(obj_image, bg_image):
|
|
54 |
resize_min_rate = obj_width/bg_width
|
55 |
new_metrics = obj_width
|
56 |
|
57 |
-
|
58 |
|
59 |
-
|
|
|
60 |
|
61 |
obj_image = resize_with_fixed_aspect_ratio(obj_image, int(new_metrics/obj_vs_bg), size_metrics)
|
62 |
|
|
|
54 |
resize_min_rate = obj_width/bg_width
|
55 |
new_metrics = obj_width
|
56 |
|
|
|
57 |
|
58 |
+
|
59 |
+
obj_vs_bg = random.uniform(resize_min_rate, resize_min_rate+5)
|
60 |
|
61 |
obj_image = resize_with_fixed_aspect_ratio(obj_image, int(new_metrics/obj_vs_bg), size_metrics)
|
62 |
|