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

Start with existing init image? #36

Open
oxysoft opened this issue Jul 15, 2023 · 6 comments
Open

Start with existing init image? #36

oxysoft opened this issue Jul 15, 2023 · 6 comments

Comments

@oxysoft
Copy link

oxysoft commented Jul 15, 2023

Hi, is it possible to start with an existing image instead of generating from scratch?

@Bendito999
Copy link

Yes, see fork https://github.com/talesofai/AnimateDiff , that one has an example of an initial image being used on example 10.

@wang-zm18
Copy link

wang-zm18 commented Aug 15, 2023

According to the 10-InitImageYoimiya.yaml and tutorial, I got the following results. Unlike the given yoimiya example, it seems that the generated contents are not very consistent with the initial image. May I make some mistakes?
sample

@wang-zm18
Copy link

wang-zm18 commented Aug 15, 2023

Oh, I know the mistake! There are some differences in animated.py of two repositories. The updated results are consistent with the tutorials.
sample

@elliskt
Copy link

elliskt commented Oct 19, 2023

@wang-zm18 is it still able to see the tutorial?

@npit
Copy link

npit commented Mar 5, 2024

When trying to run the provided example as-is, I'm getting an error:

  File "/content/animatediff_image/scripts/animate.py", line 100, in main
    pipeline.text_encoder = convert_ldm_clip_checkpoint(base_state_dict)
  File "/content/animatediff_image/animatediff/utils/convert_from_ckpt.py", line 726, in convert_ldm_clip_checkpoint
    text_model.load_state_dict(text_model_dict)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 2041, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for CLIPTextModel:
	Unexpected key(s) in state_dict: "text_model.embeddings.position_ids". 

Are there specific library / checkpoint versions I should be using?

@TheOneTrueGuy
Copy link

despite the recent help from LLM models it seems like many of these issues are still outstanding. I wish I had time to put towards fixing even just this one,

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

6 participants