Fly-ShuAI commited on
Commit
a6581cf
·
verified ·
1 Parent(s): 373385f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -31,10 +31,10 @@ snapshot_download( # 下载整个仓库
31
  repo_type="model"
32
  )
33
 
34
- rmbg_model = AutoModelForImageSegmentation.from_pretrained('briaai/RMBG-2.0', trust_remote_code=True)
35
- torch.set_float32_matmul_precision(['high', 'highest'][0])
36
- rmbg_model.to(device)
37
- rmbg_model.eval()
38
 
39
  model_manager = ModelManager(device="cpu") # 1.3b: device=cpu: uses 6G VRAM, device=device: uses 16G VRAM; about 1-2 min per video
40
 
 
31
  repo_type="model"
32
  )
33
 
34
+ # rmbg_model = AutoModelForImageSegmentation.from_pretrained('ckpt/RMBG-2.0', trust_remote_code=True)
35
+ # torch.set_float32_matmul_precision(['high', 'highest'][0])
36
+ # rmbg_model.to(device)
37
+ # rmbg_model.eval()
38
 
39
  model_manager = ModelManager(device="cpu") # 1.3b: device=cpu: uses 6G VRAM, device=device: uses 16G VRAM; about 1-2 min per video
40