praeclarumjj3 commited on
Commit
e6524c4
1 Parent(s): 8cc0ab8

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +2 -2
chat.py CHANGED
@@ -34,7 +34,7 @@ class Chat:
34
  self.tokenizer, self.model, self.image_processor, self.seg_image_processor, self.depth_image_processor, self.context_len = load_pretrained_model(
35
  model_path, model_base, self.model_name, load_8bit, load_4bit, device=self.device)
36
  self.is_multimodal = 'llava' in self.model_name.lower()
37
- self.is_seg = "seg_llava" in self.model_name.lower()
38
  self.is_depth = False
39
 
40
  @torch.inference_mode()
@@ -202,4 +202,4 @@ if __name__ == "__main__":
202
  parser.add_argument("--no-register", action="store_true")
203
  parser.add_argument("--load-8bit", action="store_true")
204
  parser.add_argument("--load-4bit", action="store_true")
205
- args = parser.parse_args()
 
34
  self.tokenizer, self.model, self.image_processor, self.seg_image_processor, self.depth_image_processor, self.context_len = load_pretrained_model(
35
  model_path, model_base, self.model_name, load_8bit, load_4bit, device=self.device)
36
  self.is_multimodal = 'llava' in self.model_name.lower()
37
+ self.is_seg = "vcoder" in self.model_name.lower()
38
  self.is_depth = False
39
 
40
  @torch.inference_mode()
 
202
  parser.add_argument("--no-register", action="store_true")
203
  parser.add_argument("--load-8bit", action="store_true")
204
  parser.add_argument("--load-4bit", action="store_true")
205
+ args = parser.parse_args()