Spaces:
Runtime error
Runtime error
wondervictor
commited on
Commit
•
7155b30
1
Parent(s):
56fb124
update readme
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
import spaces
|
|
|
|
|
|
|
|
|
2 |
import gradio as gr
|
3 |
from inference import sam_preprocess, beit3_preprocess
|
4 |
from model.evf_sam import EvfSamModel
|
@@ -7,11 +11,6 @@ import torch
|
|
7 |
import numpy as np
|
8 |
import sys
|
9 |
import os
|
10 |
-
from pip._internal import main
|
11 |
-
main(['install', 'timm==1.0.8'])
|
12 |
-
import timm
|
13 |
-
print("installed", timm.__version__)
|
14 |
-
|
15 |
version = "YxZhang/evf-sam"
|
16 |
model_type = "ori"
|
17 |
|
|
|
1 |
import spaces
|
2 |
+
from pip._internal import main
|
3 |
+
main(['install', 'timm==1.0.8'])
|
4 |
+
import timm
|
5 |
+
print("installed", timm.__version__)
|
6 |
import gradio as gr
|
7 |
from inference import sam_preprocess, beit3_preprocess
|
8 |
from model.evf_sam import EvfSamModel
|
|
|
11 |
import numpy as np
|
12 |
import sys
|
13 |
import os
|
|
|
|
|
|
|
|
|
|
|
14 |
version = "YxZhang/evf-sam"
|
15 |
model_type = "ori"
|
16 |
|