JackAILab commited on
Commit
c3e699e
1 Parent(s): ba1de1d

Update pipline_StableDiffusion_ConsistentID.py

Browse files
pipline_StableDiffusion_ConsistentID.py CHANGED
@@ -64,7 +64,7 @@ class ConsistentIDStableDiffusionPipeline(StableDiffusionPipeline):
64
 
65
  ### BiSeNet
66
  self.bise_net = BiSeNet(n_classes = 19)
67
- self.bise_net.cuda()
68
  self.bise_net_cp=bise_net_cp_path
69
  self.bise_net.load_state_dict(torch.load(self.bise_net_cp))
70
  self.bise_net.eval()
 
64
 
65
  ### BiSeNet
66
  self.bise_net = BiSeNet(n_classes = 19)
67
+ # self.bise_net.cuda() # CUDA must not be initialized in the main process on Spaces with Stateless GPU environment
68
  self.bise_net_cp=bise_net_cp_path
69
  self.bise_net.load_state_dict(torch.load(self.bise_net_cp))
70
  self.bise_net.eval()