Spaces:
Paused
Paused
Update model_loader.py
Browse files- model_loader.py +3 -1
model_loader.py
CHANGED
|
@@ -45,7 +45,9 @@ def get_model():
|
|
| 45 |
processor = AutoProcessor.from_pretrained(
|
| 46 |
MODEL_NAME,
|
| 47 |
trust_remote_code=True,
|
| 48 |
-
use_fast=True
|
|
|
|
|
|
|
| 49 |
)
|
| 50 |
|
| 51 |
print("Loading model...")
|
|
|
|
| 45 |
processor = AutoProcessor.from_pretrained(
|
| 46 |
MODEL_NAME,
|
| 47 |
trust_remote_code=True,
|
| 48 |
+
use_fast=True,
|
| 49 |
+
min_pixels=224 * 224, # add on 8/5/26
|
| 50 |
+
max_pixels=1536 * 1536 # add on 8/5/26
|
| 51 |
)
|
| 52 |
|
| 53 |
print("Loading model...")
|