Browse Source

When blip_offload enabled keep BLIP model on CPU to start.

pull/46/merge
pharmapsychotic 2 years ago
parent
commit
bf7404d7fa
  1. 1
      clip_interrogator/clip_interrogator.py

1
clip_interrogator/clip_interrogator.py

@ -89,6 +89,7 @@ class Interrogator():
med_config=med_config med_config=med_config
) )
blip_model.eval() blip_model.eval()
if not self.config.blip_offload:
blip_model = blip_model.to(config.device) blip_model = blip_model.to(config.device)
self.blip_model = blip_model self.blip_model = blip_model
else: else:

Loading…
Cancel
Save