Skip to content
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

'NoneType' object has no attribute 'tokenize' #2119

Closed
nothingness6 opened this issue Dec 1, 2023 · 13 comments
Closed

'NoneType' object has no attribute 'tokenize' #2119

nothingness6 opened this issue Dec 1, 2023 · 13 comments

Comments

@nothingness6
Copy link

comfyui

I have no idea what's wrong with it. Just installed ComfyUI and put the model in the P:\AI_Tools\ComfyUI_windows_portable\ComfyUI\models\checkpoints\ folder.
What am I missing?

@levicki
Copy link

levicki commented Dec 1, 2023

You cannot load that model with regular checkpoint loading node. It's CLIP output is not compatible with regular CLIP text encoders.

@nothingness6
Copy link
Author

nothingness6 commented Dec 1, 2023

You cannot load that model with regular checkpoint loading node. It's CLIP output is not compatible with regular CLIP text encoders.

Hi, Levicki.
I don't understand what you are talking about as I'm a newbie on this field. Could you give me more details with a solution, please?

@levicki
Copy link

levicki commented Dec 2, 2023

You cannot load that specific checkpoint file with that loader — they aren't compatible and there's no simpler way to explain it.

In other words, what you were trying to do doesn't make sense at all (because you don't understand what you are doing) and hence doesn't work.

@ltdrdata
Copy link
Contributor

ltdrdata commented Dec 2, 2023

You cannot load that model with regular checkpoint loading node. It's CLIP output is not compatible with regular CLIP text encoders.

Hi, Levicki. I don't understand what you are talking about as I'm a newbie on this field. Could you give me more details with a solution, please?

Simply. The selected your model isn't valid.
Are you trying to create a video using SVD, or are you just trying to create a single image?

@nothingness6
Copy link
Author

You cannot load that model with regular checkpoint loading node. It's CLIP output is not compatible with regular CLIP text encoders.

Hi, Levicki. I don't understand what you are talking about as I'm a newbie on this field. Could you give me more details with a solution, please?

Simply. The selected your model isn't valid. Are you trying to create a video using SVD, or are you just trying to create a single image?

Hi, Itdrdata.
Thanks for simplify it. I'm trying to create text/image to video.

@ltdrdata
Copy link
Contributor

ltdrdata commented Dec 2, 2023

You cannot load that model with regular checkpoint loading node. It's CLIP output is not compatible with regular CLIP text encoders.

Hi, Levicki. I don't understand what you are talking about as I'm a newbie on this field. Could you give me more details with a solution, please?

Simply. The selected your model isn't valid. Are you trying to create a video using SVD, or are you just trying to create a single image?

Hi, Itdrdata. Thanks for simplify it. I'm trying to create text/image to video.

In that case read this.
https://comfyanonymous.github.io/ComfyUI_examples/video/

@nothingness6
Copy link
Author

You cannot load that model with regular checkpoint loading node. It's CLIP output is not compatible with regular CLIP text encoders.

Hi, Levicki. I don't understand what you are talking about as I'm a newbie on this field. Could you give me more details with a solution, please?

Simply. The selected your model isn't valid. Are you trying to create a video using SVD, or are you just trying to create a single image?

Hi, Itdrdata. Thanks for simplify it. I'm trying to create text/image to video.

In that case read this. https://comfyanonymous.github.io/ComfyUI_examples/video/

Thanks for the link. I downloaded and tried txt_to_image_to_video.webp, but faced the same issue. Here are the screenshots :
comfyui
comfyui-02

@jyotirmoypaul
Copy link

Load a SD1.5 Text2Image
Generation Model Here,
Like RealisticVision or,
AbsoluteReality.

*Not a SVD Model.
GitAnonScrnsht

@nothingness6
Copy link
Author

Load a SD1.5 Text2Image Generation Model Here, Like RealisticVision or, AbsoluteReality.

*Not a SVD Model. GitAnonScrnsht

Hi, jyotirmoypaul.
Thanks for the reply. I changed it and then faced "Out of memory" issue. My laptop has 6GB of vram. Is there a way to use Comfy UI with 6GB vram?
comfyui-03

@jyotirmoypaul
Copy link

If you have only 6GB of VRAM, then you should not use the SVD-XT model. Go to this link - https://huggingface.co/stabilityai/stable-video-diffusion-img2vid/tree/main and download the SVD.safetensors model. Then put this into your ComfyUI/Models/Checkpoints folder. Then in ComfyUI workflow select SVD.safetensors in Image Only Checkpoint Loader(img2vid model).
You can use this workflow for text-to-video as it is more simplified - https://drive.google.com/file/d/1HYr3kz-Xg_C9eCQrGir8269UvnZlUI3S/view
You can watch this video for more information - https://www.youtube.com/watch?v=bpaYQDgPJeQ

@nothingness6
Copy link
Author

If you have only 6GB of VRAM, then you should not use the SVD-XT model. Go to this link - https://huggingface.co/stabilityai/stable-video-diffusion-img2vid/tree/main and download the SVD.safetensors model. Then put this into your ComfyUI/Models/Checkpoints folder. Then in ComfyUI workflow select SVD.safetensors in Image Only Checkpoint Loader(img2vid model). You can use this workflow for text-to-video as it is more simplified - https://drive.google.com/file/d/1HYr3kz-Xg_C9eCQrGir8269UvnZlUI3S/view You can watch this video for more information - https://www.youtube.com/watch?v=bpaYQDgPJeQ

Great!!! It works! I can't thank you enough.
Have a great day!

@sauceruney
Copy link

This helped me so much! Thank you all who contributed!

@muskcookie
Copy link

执行CLIPTextEncode时出现错误:

“NoneType”对象没有属性“tokenize”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants