mirror of
https://www.modelscope.cn/AI-ModelScope/RMBG-2.0.git
synced 2025-08-13 20:26:05 +08:00
Update birefnet.py
This commit is contained in:
parent
b104609356
commit
839b3a2e36
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import math
|
import math
|
||||||
|
from transformers import PretrainedConfig
|
||||||
|
|
||||||
|
class Config(PretrainedConfig):
|
||||||
class Config():
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
# PATH settings
|
# PATH settings
|
||||||
self.sys_home_dir = os.path.expanduser('~') # Make up your file system as: SYS_HOME_DIR/codes/dis/BiRefNet, SYS_HOME_DIR/datasets/dis/xx, SYS_HOME_DIR/weights/xx
|
self.sys_home_dir = os.path.expanduser('~') # Make up your file system as: SYS_HOME_DIR/codes/dis/BiRefNet, SYS_HOME_DIR/datasets/dis/xx, SYS_HOME_DIR/weights/xx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user