Awiny commited on
Commit
93d3489
β€’
1 Parent(s): e175cc1

update requirements.txt

Browse files
examples/icon/twitter.png ADDED
examples/logo.png ADDED
models/blip2_model.py CHANGED
@@ -11,8 +11,8 @@ class ImageCaptioning:
11
  self.processor, self.model = self.initialize_model()
12
 
13
  def initialize_model(self):
14
- # device = "cuda" if torch.cuda.is_available() else "cpu"
15
- self.device = "cpu" # for low gpu memory devices
16
  if self.device == 'cpu':
17
  self.data_type = torch.float32
18
  else:
 
11
  self.processor, self.model = self.initialize_model()
12
 
13
  def initialize_model(self):
14
+ self.device = "cuda" if torch.cuda.is_available() else "cpu"
15
+ # self.device = "cpu" # for low gpu memory devices
16
  if self.device == 'cpu':
17
  self.data_type = torch.float32
18
  else:
models/segment_models/semantic_segment_anything_model.py CHANGED
@@ -19,8 +19,8 @@ class SemanticSegment():
19
  self.model_init()
20
 
21
  def model_init(self):
22
- # self.device = "cuda" if torch.cuda.is_available() else "cpu"
23
- self.device = 'cpu'
24
  self.init_clip()
25
  self.init_oneformer_ade20k()
26
  self.init_oneformer_coco()
 
19
  self.model_init()
20
 
21
  def model_init(self):
22
+ self.device = "cuda" if torch.cuda.is_available() else "cpu"
23
+ # self.device = 'cpu'
24
  self.init_clip()
25
  self.init_oneformer_ade20k()
26
  self.init_oneformer_coco()
requirements.txt CHANGED
@@ -16,4 +16,6 @@ spacy
16
  en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
17
  lvis
18
  scipy
19
- boto3
 
 
 
16
  en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
17
  lvis
18
  scipy
19
+ boto3
20
+ jsonschema
21
+ entrypoints