Spaces:
Sleeping
Sleeping
francescoKrnl
commited on
Commit
•
6b54399
1
Parent(s):
8c046c6
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def run(image, item_name):
|
|
36 |
ones = Image.new("L", (512, 512), 255)
|
37 |
return ones
|
38 |
prompt = item_name + " professional 3d model. octane render, highly detailed, volumetric, dramatic lighting"
|
39 |
-
inverted_image =
|
40 |
image = inverted_image.convert("RGB")
|
41 |
image_t = TF.to_tensor(image) > 0.5
|
42 |
with torch.no_grad():
|
|
|
36 |
ones = Image.new("L", (512, 512), 255)
|
37 |
return ones
|
38 |
prompt = item_name + " professional 3d model. octane render, highly detailed, volumetric, dramatic lighting"
|
39 |
+
inverted_image = ImageOps.invert(image["layers"][0])
|
40 |
image = inverted_image.convert("RGB")
|
41 |
image_t = TF.to_tensor(image) > 0.5
|
42 |
with torch.no_grad():
|