You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the .onnx file is large(about 170M),I decided to provide a loading progress. Code as below:
constmodelSettings={// Do not require config.json to be present in the repositoryconfig: {model_type: "custom"},subfolder: "",process_callback: (progress)=>{modelLoadingProgress.value=Math.round(progress*100);console.log("model : "+progress)}};modelSettings.device="webgpu";modelSettings.dtype="fp32";model=awaitAutoModel.from_pretrained('briaai/RMBG-1.4',modelSettings);
I found the process_callback never been called. Can anyone help?
The text was updated successfully, but these errors were encountered:
We also provide information like total number of bytes, so progress is not a single number. Feel free to console.log it to see the available fields. :)
Question
Because the .onnx file is large(about 170M),I decided to provide a loading progress. Code as below:
I found the process_callback never been called. Can anyone help?
The text was updated successfully, but these errors were encountered: