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

how can i use my custom (based on sd-1.5 )model? #5

Open
gonduras opened this issue Jul 7, 2023 · 3 comments
Open

how can i use my custom (based on sd-1.5 )model? #5

gonduras opened this issue Jul 7, 2023 · 3 comments

Comments

@gonduras
Copy link

gonduras commented Jul 7, 2023

please explain
thank you!

@Weifeng-Chen
Copy link
Owner

there's a demo in readme. have a look

@G-force78
Copy link

please explain thank you!

Where did you put the model?

@G-force78
Copy link

I get this error

NameError                                 Traceback (most recent call last)

[<ipython-input-12-c66704109acf>](https://localhost:8080/#) in <cell line: 7>()
      5 state_dict_path = os.path.join(pipeline_model_path,"unet",  "/content/control-a-video/model/diffusion_pytorch_model.fp16.bin")
      6 state_dict = torch.load(state_dict_path, map_location="cpu")
----> 7 video_controlnet_pipe.unet.load_2d_state_dict(state_dict=state_dict)    # reload 2d model.

NameError: name 'video_controlnet_pipe' is not defined

from this, what is the video_controlnet_pipe ?

import os
import torch

pipeline_model_path = "/content/control-a-video/model/diffusion_pytorch_model.fp16.binl"
state_dict_path = os.path.join(pipeline_model_path,"unet",  "/content/control-a-video/model/diffusion_pytorch_model.fp16.bin")
state_dict = torch.load(state_dict_path, map_location="cpu")
video_controlnet_pipe.unet.load_2d_state_dict(state_dict=state_dict)    # reload 2d model.

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

3 participants