bluestyle97 commited on
Commit
e6f5524
1 Parent(s): c070b3c

Update freesplatter/webui/runner.py

Browse files
Files changed (1) hide show
  1. freesplatter/webui/runner.py +6 -7
freesplatter/webui/runner.py CHANGED
@@ -76,13 +76,12 @@ class FreeSplatterRunner:
76
  self.device = device
77
 
78
  # background remover
79
- # self.rembg = AutoModelForImageSegmentation.from_pretrained(
80
- # "briaai/RMBG-2.0",
81
- # trust_remote_code=True,
82
- # cache_dir='ckpts/',
83
- # )
84
- # self.rembg.eval()
85
- self.rembg = rembg.new_session('birefnet-general')
86
 
87
  # diffusion models
88
  pipeline = DiffusionPipeline.from_pretrained(
 
76
  self.device = device
77
 
78
  # background remover
79
+ self.rembg = AutoModelForImageSegmentation.from_pretrained(
80
+ "ZhengPeng7/BiRefNet",
81
+ trust_remote_code=True,
82
+ )
83
+ self.rembg.eval()
84
+ # self.rembg = rembg.new_session('birefnet-general')
 
85
 
86
  # diffusion models
87
  pipeline = DiffusionPipeline.from_pretrained(