Checkpoint not loading

#237
by zippy101 - opened

I am completely new to this whole sphere (learned what Comfyui and Wan 2.2 even was yesterday) so I'm sure I'm doing something stupid, but I can't get Comfyui to recognize the files I drop in the checkpoint folder. All I've done so far is install Comfyui, downloaded/dropped the 'v12 Mega' file into the checkpoints folder, and dragged the 'v3 Mega workflow' onto the Comfyui screen (also downloaded whatever it told me to if a prompt came up). Am I missing a bunch of steps?

When I clicked the arrows on the checkpoint loader to switch to the 'v12 Mega checkpoint' the text just disappeared which I assume tells me that the 'v9 checkpoint' text that came loaded in with the 'V3 Mega workflow' was probably just a leftover artifact from whenever the 'V3 Mega workflow' was last saved out.

The Wan 2.2 templates that come with Comfyui seem to work fine if that helps narrow the problem.

checkpointFolder

checkpointError

It seems like you are trying to run workflow with missing nodes - that red rectangle around node. Your observation about the name of the model in freshly downloaded workflow as residuum from that computer where the workflow was saved is correct. You should 1 - install all missing nodes. 2 - set all the models used (checkpoint, lora etc...) to your own, in your local space. It is very probable your file structure (subfolders) is different from the one who made the workflow, so you need to tell comfy where your files are. After first succes inference I suggest to save the workflow (ctrl+s) with your settings.
EDIT : oh...or the red rectangle is there only because the checkpoint wasnt loaded? maybe, so sorry for confusion....so it just need to know, where the checkpoint is. If you download the model while comfy was running, you'll need to refresh ('r') - after refreshing models appear ;-)

Wow! Thank you so much for responding so quickly!

@qpqpqpqpqpqp If what you dropped in the chat is a link, then for me it just sorta brings me to a page of code that I assume should present as a webpage. Is the 'raw' part of that link supposed to be 'tree'? I'll go give the tree one a shot just in case.
EDIT: Oh you meant the Workflow from the Mega V3 folder right? That's the one I'm currently using in the photo above.

@010O11 Yeah the boxes (nodes?) turn red when I hit 'run' I assume because Comfy doesn't see the checkpoints in the checkpoint folder for some reason and their value gets replaced with 'undefined' when I click the arrows to change them. I restarted Comfy and refreshed the page several times but it never seems to work. Is the checkpoint the 'model' you're referring to? If it's not, then I've never downloaded a model. I've only downloaded the 'All-in-one v12 Mega checkpoint' (into the checkpoint folder), the 'V3 Mega workflow' (just dragged it onto the Comfy screen so it's not in any folder), and some suggested ggufs (into the unet folder) that some Youtube video from 5 monthes ago said I might need. I have put literally nothing else in the Comfy file structure so if I'm missing something major let me know. Comfy did automatically prompt me to download some stuff that I assume are 'extensions', which I did. I'm on my third day of learning about Comfy or AI in general so I don't know many terms yet.

Owner

You might just not be picking the right location of the files. Usually the "put_checkpoints_here" file is in the base "checkpoints" folder, and not Wan-AIO....

I have definitely been putting them in the base checkpoints folder and it's sounding like that's not where they should be going. At the risk of sounding like an idiot, what is Wan-AIO? Am I going to have to download a version of Wan 2.2 separately from the template stuff in Comfyui?

Owner

It is fine to put them in the base checkpoints folder. "Wan-AIO" is just a folder name it thinks it should be finding the models in, which you don't have. Just pick where they actually are (in the root), or make a "Wan-AIO" folder and put them in there.

Wan-AIO

If this looks correct, then it didn't seem to work. I also tried dropping this "Wan-AIO" folder into all 3 tiers above it (ComfyUI > resources > ComfyUI > models) to see if the two checkpoint loaders would see the models
Wan_AIO_workflow
How do I direct the checkpoint loaders to a specific folder? I tried right clicking them to see if they might have a file browse tab or something to that effect but instead it gave me a bunch of options that look like they were for altering the node itself.

Is there a guide to setting this up that I might have missed? Thank you for trying to explain this to me.

Put the Wan-AIO in unet then! It seems you still don't get it

@qpqpqpqpqpqp You're right that I clearly still don't get something, but I don't think that just arbitrarily dropping a folder I titled "Wan-AIO" into the unet folder or any other folder is going to make the checkpoint loaders see the models within. If the images I showed above look the way they should to you (correctly implemented and not strange), then I suspect the only way to fix it is that I need to know how to redirect the checkpoint loaders to a different folder than the one they are currently looking for (which I can't figure out how to do).

I'd appreciate it if you could elaborate on what steps I should take like you're explaining it to a confused old man. If you're too busy, then I understand considering what an undertaking all this must be.

@zippy101 - Move your Wan-AIO folder into the checkpoints folder(The second folder from the top in the folder image you have shared).
Then press 'r' inside comfyUI to refresh the nodes. Now you will be able to see the AIO model in the checkpoint loader list.
By Default the Checkpoint loader node requires the models to be placed exactly inside the checkpoints folder to get detected.
You can edit the extra_model_paths.yaml file inside your comfyUI folder to re-direct comfyUI to detect checkpoints in other folders but it is extra work for us.
Refer this thread for this - https://www.reddit.com/r/StableDiffusion/comments/1896top/extra_model_pathsyaml_for_comfy_ui/

@Arunk25 For some reason these checkpoint loaders still won't see the models even after dropping the Wan-AIO folder into the checkpoints folder, but maybe there's other people that are running into the same issue on the reddit page so I'll see if anyone has found a solution there. If I do, I'll post the fix into this discussion. Also if anyone thinks of anything else to try, I'll give it a shot. Thank you so much for pointing me in a direction.

@zippy101 >
1 - comfyui/models/checkpoints/ - here you should place the AiO, or subfolder with the AiO.
2 - 'r' for refresh if you moved the files when comfyui running.
3 - in the node 'checkpoint loader' click on the 'ckpt_name' lane and select your downloaded AiO, it should be visible there

@010O11 I have been doing exactly that. In the workflow that I downloaded from the V3 Mega (Which was labeled 'MG-Rapid-AIO-Mega-ep9.json' when I downloaded it) there are 2 different checkpoint loaders (both labeled 'CheckpointLoaderSimpleMultiGPU'). In my checkpoints folder I made another folder that I labeled 'Wan-AIO' which is where I stored the 'wan2.2-rapid-mega-aio-nsfw-v12.2.safetensors' and the 'wan2.2-rapid-mega-aio-nsfw-v9.safetensors'.

The problem is no matter how many times I hit 'r' to refresh or just straight up restart the entire application, the arrow tabs on the checkpoint loaders are always greyed out (with the exception of their device tab which can go back and forth between cuda:0 and cpu). When I drag the workflow onto the comfy screen (because I don't know how to import the workflow otherwise and I'm not sure if it matters), both checkpoint loaders come loaded in with the 'Wan-AIO\wan2.2-rapid-mega-aio-nsfw-v9.safetensors' model, however if I click on them their value gets replaced with 'null'.

I considered the unlikely possibility that the problem was that I had 2 different models loaded into the 'Wan-AIO' folder, so I removed the v9 model that the workflow tells you to download at the top, but that didn't work either. I tried directing the checkpoint loaders to the folder the models were stored in using the code I was directed to in the reddit post, but I have zero coding knowledge so I would have no way of knowing if I even did it correctly and the post is 2 years old. Needless to say it didn't work. I have a lot to learn still, but I feel like if I'm able to wrap my head around this then that would be a heck of an achievement.

What I'm realizing is that ComfyUI isn't seeing anything I put into it's file structure. If I drop new LoRAs into the lora folder it doesn't detect them either. I imagine it'll be the same for anything I drop into any of the model folders which makes me wonder if the problem is much more fundamental.

In the workflow that I downloaded from the V3 Mega (Which was labeled 'MG-Rapid-AIO-Mega-ep9.json' when I downloaded it) there are 2 different checkpoint loaders (both labeled 'CheckpointLoaderSimpleMultiGPU').

  • I don't know man, but when I look at the folder Mega-v3 here in repo files I see there Rapid-AIO-Mega.json (4months old) - and thats the workflow you should use. There is only 1 model (checkpoint) needed to load in order to generate video. That's different from the original wan2.2 14B where are 2 models needed (high+low)

What I'm realizing is that ComfyUI isn't seeing anything I put into it's file structure. If I drop new LoRAs into the lora folder it doesn't detect them either. I imagine it'll be the same for anything I drop into any of the model folders which makes me wonder if the problem is much more fundamental.

  • if you messed up with 'extra_model_paths.yaml' and don't need to (models are in comfyui/models/etc...), than just rename the file back to 'extra_model_paths.yaml.example'

FIGURED IT OUT!!

I was right that it was something incredibly fundamental and stupid. Turns out I have 2 Comfy directories with seemingly identical file structures. One is in appData (this was the trouble maker) and the other in documents (this was the correct one). No idea if the appData one is supposed to exist or has a purpose.

I figured it out because I downloaded LoRA Manager to see if I could "force" my LoRAs to be recognized by downloading them through the manager and then I noticed it was trying to store them in a completely different location (documents directory). So I dumped all the stuff in the new location and hit 'r' to refresh aaaaand.... it didn't work AGAIN. So, I restarted the entire Comfy application and miraculously everything started working!

@010O11 Also everyone above was right that I had somehow downloaded the wrong workflow. Thanks again for all your help.

@zippy101 > CG! :) I completely forgot to ask you which version of comfy you have - there are 3 [portable, app and manual install], each with its own data location...glad you solve it ;-)

Sign up or log in to comment