RamAnanth1 commited on
Commit
29b065a
1 Parent(s): 45fcf4c

Update ldm/modules/encoders/modules.py

Browse files
Files changed (1) hide show
  1. ldm/modules/encoders/modules.py +1 -1
ldm/modules/encoders/modules.py CHANGED
@@ -144,7 +144,7 @@ class FrozenOpenCLIPEmbedder(AbstractEncoder):
144
  freeze=True, layer="last"):
145
  super().__init__()
146
  assert layer in self.LAYERS
147
- model, _, _ = open_clip.create_model_and_transforms(arch, device=torch.device('cpu'), pretrained=version)
148
  del model.visual
149
  self.model = model
150
 
 
144
  freeze=True, layer="last"):
145
  super().__init__()
146
  assert layer in self.LAYERS
147
+ model, _, _ = open_clip.create_model_and_transforms(arch, device=torch.device('cuda'), pretrained=version)
148
  del model.visual
149
  self.model = model
150