-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Load Checkpoint Path when using segment_anything_ultra_v2 node #447
Comments
I am unable to reproduce the issue. It seems that there was an error loading the model. Perhaps we should check if the model file is damaged? |
Yeah actually the error originates from trying to load a checkpoint file (sam_checkpoint_path) using torch.load(). The file seems corrupted or incompatible with the model. I gave the error logs to chatgpt to analyze it and this is what it says, I have pasted it below: The error indicates an issue with loading the model checkpoint ( Here’s a detailed breakdown and steps to resolve the issue: Cause Analysis
Steps to ResolveStep 1: Verify Checkpoint File
Step 2: Check the
|
How to check if the model file is damaged? If it is damaged then how to resolve this issue, please let me know. |
By calculating the SHA256 value of the file and comparing it with the SHA256 value of the source file on the download page, we can determine if it is damaged. If the file is damaged, it needs to be downloaded again |
Okay, I will download the model file again, I have downloaded the model files from your hugging face repo which you have given in the instructions, is there any possibility of damage in the model files in your hugging face repo itself? Or can I just redownload the model file to solve the issue? Or is there anything changed in how we download the model files since you separated some nodes into another repo and the node I use 'segmentanythingultra V2' is from the ComfyUI_LayerStyle_Advance repo |
The model file has not undergone any changes |
I have used the SegmentAnythingUltra V2 node in one of my workflows and I am hosting that workflow in 'Baseten' platform to get it as an API endpoint, the custom nodes have loaded properly but when I ran the workflow then it is giving the below error, there is some issue with sam_model and checkpoint path that is provided there, I have downloaded all the model files as said in the readme file, can you please look into this:
I had raised this issue in COmfyUI_LayerStyle_Advance repo but thought to raise it here as well.
The text was updated successfully, but these errors were encountered: