Spaces:
Runtime error
Runtime error
Commit
•
89f9702
1
Parent(s):
695c45e
Update app.py
Browse files
app.py
CHANGED
@@ -64,6 +64,7 @@ def train(*inputs):
|
|
64 |
image = file.crop((left, top, right, bottom))
|
65 |
image = image.resize((512, 512))
|
66 |
extension = file_temp.name.split(".")[1]
|
|
|
67 |
image.save(f'instance_images/{prompt}_({j+1}).jpg', format="JPEG", quality = 100)
|
68 |
file_counter += 1
|
69 |
|
|
|
64 |
image = file.crop((left, top, right, bottom))
|
65 |
image = image.resize((512, 512))
|
66 |
extension = file_temp.name.split(".")[1]
|
67 |
+
image.convert('RGB')
|
68 |
image.save(f'instance_images/{prompt}_({j+1}).jpg', format="JPEG", quality = 100)
|
69 |
file_counter += 1
|
70 |
|