RuntimeError: No configuration file specified.
找不到配置文件,路径写错
RuntimeError: The specified component was not found STDC1.,UserWarning: STDC1 exists already!
manager.BACKBONES._components_dict.clear()
manager.TRANSFORMS._components_dict.clear()
# 上面这两句写在下面的import上面就不会报错
import ppmatting
from ppmatting.core import predict
from ppmatting.utils import estimate_foreground_ml, get_image_list, mkdir
ModuleNotFoundError: No module named 'ppmatting'
先加这句再引入本地库import ppmatting
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(LOCAL_PATH, '..'))
import ppmatting
from ppmatting.core import predict
from ppmatting.utils import get_image_list