broyang commited on
Commit
fa51d67
·
verified ·
1 Parent(s): e68e504

Update anime_model.py

Browse files
Files changed (1) hide show
  1. anime_model.py +2 -2
anime_model.py CHANGED
@@ -169,8 +169,8 @@ class Model:
169
  # raise ValueError
170
  #if num_images > MAX_NUM_IMAGES:
171
  # raise ValueError
172
- self.load("NormalBae")
173
- model = NormalBaeDetector.from_pretrained(self.MODEL_ID)#.to("cuda")
174
  torch.cuda.empty_cache()
175
  gc.collect()
176
  control_image = self.preprocess(
 
169
  # raise ValueError
170
  #if num_images > MAX_NUM_IMAGES:
171
  # raise ValueError
172
+ #self.load("NormalBae")
173
+ model = NormalBaeDetector.from_pretrained(self.MODEL_ID).to("cuda")
174
  torch.cuda.empty_cache()
175
  gc.collect()
176
  control_image = self.preprocess(