Spaces:
Runtime error
Runtime error
Error with model local checkpoint paths
Browse files
app.py
CHANGED
|
@@ -6,8 +6,8 @@ from PIL import Image
|
|
| 6 |
import torch
|
| 7 |
|
| 8 |
preprocess_ckp = "Salesforce/blip2-opt-2.7b" #Checkpoint path used for perprocess image
|
| 9 |
-
base_model_ckp = "
|
| 10 |
-
peft_model_ckp = "
|
| 11 |
|
| 12 |
#init_model_required = True
|
| 13 |
processor = None
|
|
|
|
| 6 |
import torch
|
| 7 |
|
| 8 |
preprocess_ckp = "Salesforce/blip2-opt-2.7b" #Checkpoint path used for perprocess image
|
| 9 |
+
base_model_ckp = "./model/blip2-opt-2.7b-fp16-sharded" #Base model checkpoint path
|
| 10 |
+
peft_model_ckp = "./model/blip2_peft" #PEFT model checkpoint path
|
| 11 |
|
| 12 |
#init_model_required = True
|
| 13 |
processor = None
|