Spaces:
Runtime error
Runtime error
liuyizhang
commited on
Commit
•
21dafa0
1
Parent(s):
490d2ae
update app.py
Browse files- app.py +5 -6
- requirements.txt +0 -1
app.py
CHANGED
@@ -50,11 +50,6 @@ if os.environ.get('IS_MY_DEBUG') is not None:
|
|
50 |
inpainting_enable = False
|
51 |
kosmos_enable = False
|
52 |
|
53 |
-
if kosmos_enable:
|
54 |
-
# os.system("pip install transformers@git+https://github.com/huggingface/transformers.git@main")
|
55 |
-
# os.system("pip install transformers==4.32.0")
|
56 |
-
pass
|
57 |
-
|
58 |
try:
|
59 |
from lama_cleaner.model_manager import ModelManager
|
60 |
from lama_cleaner.schema import Config as lama_Config
|
@@ -87,7 +82,11 @@ if lama_cleaner_enable:
|
|
87 |
|
88 |
# from transformers import AutoProcessor, AutoModelForVision2Seq
|
89 |
import ast
|
90 |
-
|
|
|
|
|
|
|
|
|
91 |
|
92 |
config_file = 'GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py'
|
93 |
ckpt_repo_id = "ShilongLiu/GroundingDINO"
|
|
|
50 |
inpainting_enable = False
|
51 |
kosmos_enable = False
|
52 |
|
|
|
|
|
|
|
|
|
|
|
53 |
try:
|
54 |
from lama_cleaner.model_manager import ModelManager
|
55 |
from lama_cleaner.schema import Config as lama_Config
|
|
|
82 |
|
83 |
# from transformers import AutoProcessor, AutoModelForVision2Seq
|
84 |
import ast
|
85 |
+
|
86 |
+
if kosmos_enable:
|
87 |
+
# os.system("pip install transformers@git+https://github.com/huggingface/transformers.git@main")
|
88 |
+
# os.system("pip install transformers==4.32.0")
|
89 |
+
from kosmos_utils import *
|
90 |
|
91 |
config_file = 'GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py'
|
92 |
ckpt_repo_id = "ShilongLiu/GroundingDINO"
|
requirements.txt
CHANGED
@@ -37,5 +37,4 @@ mmcv==2.0.0
|
|
37 |
mmengine
|
38 |
openmim==0.3.9
|
39 |
|
40 |
-
tokenizers==0.14.0
|
41 |
|
|
|
37 |
mmengine
|
38 |
openmim==0.3.9
|
39 |
|
|
|
40 |
|