wondervictor commited on
Commit
85817cd
·
verified ·
1 Parent(s): 752a92c

remove depth

Browse files
Files changed (1) hide show
  1. model.py +3 -3
model.py CHANGED
@@ -50,9 +50,9 @@ class Model:
50
  self.vq_model = self.load_vq()
51
  self.t5_model = self.load_t5()
52
  self.gpt_model_canny = self.load_gpt(condition_type='canny')
53
- self.gpt_model_depth = self.load_gpt(condition_type='depth')
54
  self.get_control_canny = CannyDetector()
55
- self.get_control_depth = MidasDetector('cuda')
56
  # self.get_control_depth = MidasDetector.from_pretrained("lllyasviel/Annotators")
57
 
58
  def to(self, device):
@@ -123,7 +123,7 @@ class Model:
123
  image = resize_image_to_16_multiple(image, 'canny')
124
  W, H = image.size
125
  print(W, H)
126
- self.gpt_model_depth.to('cpu')
127
  self.t5_model.model.to('cuda')
128
  self.gpt_model_canny.to('cuda')
129
  self.vq_model.to('cuda')
 
50
  self.vq_model = self.load_vq()
51
  self.t5_model = self.load_t5()
52
  self.gpt_model_canny = self.load_gpt(condition_type='canny')
53
+ # self.gpt_model_depth = self.load_gpt(condition_type='depth')
54
  self.get_control_canny = CannyDetector()
55
+ # self.get_control_depth = MidasDetector('cuda')
56
  # self.get_control_depth = MidasDetector.from_pretrained("lllyasviel/Annotators")
57
 
58
  def to(self, device):
 
123
  image = resize_image_to_16_multiple(image, 'canny')
124
  W, H = image.size
125
  print(W, H)
126
+ # self.gpt_model_depth.to('cpu')
127
  self.t5_model.model.to('cuda')
128
  self.gpt_model_canny.to('cuda')
129
  self.vq_model.to('cuda')