Public
Public API documentation for RemBG.
Index
RemBG.ISNetGeneralUseRemBG.SiluetaRemBG.U2NetRemBG.U2NetClothSegRemBG.U2NetHumanSegRemBG.U2NetpRemBG.get_onnx_execution_providerRemBG.new_sessionRemBG.removeRemBG.set_onnx_execution_provider
Public Interface
RemBG.remove — Functionremove(img; kwargs...)Remove background from image.
Examples
remove(img)
remove(img; session=new_session(U2Net)) # or use specific sessionRemBG.new_session — Functionnew_session(::MattingModel)Constructs an InferenceSession object by input type.
Examples
session = new_session(U2Net)RemBG.set_onnx_execution_provider — Functionset_onnx_execution_provider(execution_provider::Symbol)Set the execution provider for ONNX inference session. Now the "execution_provider" only accepts ":cpu" and ":cuda".
See also get_onnx_execution_provider.
RemBG.get_onnx_execution_provider — Functionget_onnx_execution_provider()Get the current execution provider for the ONNX inference session.
See also set_onnx_execution_provider.
RemBG.U2Net — ConstantU2NetModel object. U2NetModel is a subtype of MattingModel.
RemBG.U2Netp — ConstantU2NetpModel object. U2NetpModel is a subtype of MattingModel.
RemBG.U2NetClothSeg — ConstantU2NetClothSegModel object. U2NetClothSegModel is a subtype of MattingModel.
RemBG.U2NetHumanSeg — ConstantU2NetHumanSegModel object. U2NetHumanSegModel is a subtype of MattingModel.
RemBG.Silueta — ConstantSiluetaModel object. SiluetaModel is a subtype of MattingModel.
RemBG.ISNetGeneralUse — ConstantISNetGeneralUseModel object. ISNetGeneralUseModel is a subtype of MattingModel.