Humphreykowl commited on
Commit
405e531
·
verified ·
1 Parent(s): c06b67e

Update models/model_manager.py

Browse files
Files changed (1) hide show
  1. models/model_manager.py +0 -2
models/model_manager.py CHANGED
@@ -87,8 +87,6 @@ class ModelManager:
87
  ).to(self.device)
88
 
89
  # 启用内存优化
90
- if hasattr(self.caption_model, 'enable_attention_slicing'):
91
- pass # BLIP 不支持 attention slicing
92
 
93
 
94
  self.caption_model.eval()
 
87
  ).to(self.device)
88
 
89
  # 启用内存优化
 
 
90
 
91
 
92
  self.caption_model.eval()