Znati-dev commited on
Commit
3591e6a
·
verified ·
1 Parent(s): af8adf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -6,8 +6,11 @@ app = FastAPI()
6
 
7
  # Create ONE session (cached in memory)
8
  SESSION = new_session(
9
- "isnet-general-use",
10
- alpha_matting=True
 
 
 
11
  )
12
 
13
  @app.get("/")
 
6
 
7
  # Create ONE session (cached in memory)
8
  SESSION = new_session(
9
+ "u2net",
10
+ alpha_matting=True,
11
+ alpha_matting_foreground_threshold=240,
12
+ alpha_matting_background_threshold=10,
13
+ alpha_matting_erode_size=10,
14
  )
15
 
16
  @app.get("/")