Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from PIL import Image, ImageOps
|
|
| 7 |
from io import BytesIO
|
| 8 |
from huggingface_hub import snapshot_download
|
| 9 |
|
| 10 |
-
def random_crop(img, min_size=
|
| 11 |
img = ImageOps.exif_transpose(img)
|
| 12 |
width, height = img.size
|
| 13 |
|
|
|
|
| 7 |
from io import BytesIO
|
| 8 |
from huggingface_hub import snapshot_download
|
| 9 |
|
| 10 |
+
def random_crop(img, min_size=0, max_size=2048, ratio=5/8):
|
| 11 |
img = ImageOps.exif_transpose(img)
|
| 12 |
width, height = img.size
|
| 13 |
|