Code Monkey home page Code Monkey logo

Comments (13)

aartykov avatar aartykov commented on July 24, 2024 12

Try setting "parser.add_argument("--pretrained_model_path", type=str, default="models/StableDiffusion/stable-diffusion-v1-5.safetensors",) " default path to "models/StableDiffusion". It should solve your problem.

from animatediff.

zhanghongyong123456 avatar zhanghongyong123456 commented on July 24, 2024 4

models/StableDiffusion worked for me. it resolved all model path issues, the other recommendations didn't work. thanks aartykov

Error caused by path mismatch,
in code : parser.add_argument("--pretrained_model_path", type=str, default="models/StableDiffusion/stable-diffusion-v1-5",)
image

but in file: StableDiffusion name
Need to specify the correct path
like this
image

from animatediff.

RexLeeGrey avatar RexLeeGrey commented on July 24, 2024 4

Configured all afternoon and still can't solve the problem, is this something you don't want people to use?

from animatediff.

sdbds avatar sdbds commented on July 24, 2024 3

same problem

from animatediff.

796F avatar 796F commented on July 24, 2024 2

models/StableDiffusion worked for me. it resolved all model path issues, the other recommendations didn't work. thanks aartykov

from animatediff.

guoti777 avatar guoti777 commented on July 24, 2024 2

错误原因是:手动下的配置文件浏览器会自动修改名字(添加前缀),如tokenizer文件夹中的vocab.json被修改为“tokenizer_vocab.json”。(这个前缀就是所在文件夹的名字)
解决办法:手动修改回去就可以了。亲测可用。
官方代码没有问题的,不用修改。

from animatediff.

dancemanUK avatar dancemanUK commented on July 24, 2024 1

其它路径这样子,修写。在win10下面。

>>> create validation pipeline >>>

       # tokenizer    = CLIPTokenizer.from_pretrained(args.pretrained_model_path, subfolder="tokenizer")
        tokenizer    = CLIPTokenizer.from_pretrained("G:\\AI\\AnimateDiff\\models\\StableDiffusion\\tokenizer\\")
       # text_encoder = CLIPTextModel.from_pretrained(args.pretrained_model_path, subfolder="text_encoder")
        text_encoder = CLIPTextModel.from_pretrained("G:\\AI\\AnimateDiff\\models\\StableDiffusion\\text_encoder\\")
       # vae          = AutoencoderKL.from_pretrained(args.pretrained_model_path, subfolder="vae")
        vae          = AutoencoderKL.from_pretrained("G:\\AI\\AnimateDiff\\models\\StableDiffusion\\vae\\")                  
       # unet         = UNet3DConditionModel.from_pretrained_2d(args.pretrained_model_path, subfolder="unet", unet_additional_kwargs=OmegaConf.to_container(inference_config.unet_additional_kwargs))
        unet         = UNet3DConditionModel.from_pretrained_2d("G:\\AI\\AnimateDiff\\models\\StableDiffusion\\unet\\", unet_additional_kwargs=OmegaConf.to_container(inference_config.unet_additional_kwargs))

from animatediff.

dancemanUK avatar dancemanUK commented on July 24, 2024

same problem

青龙大佬,改文件animate.py,约是第150行。
parser.add_argument("--pretrained_model_path", type=str, default="models/StableDiffusion/stable-diffusion-v1-5.safetensors",)

from animatediff.

Ainaemaet avatar Ainaemaet commented on July 24, 2024

@RexLeeGrey couldn't agree more. I appreciate the work but the instructions are sorely lacking and so many issues without solutions.

I've been at it for 3 days and still can't get it figured out. Running WSL2 and every single time I solve one error there is another.

Haven't had this much trouble with any other app. :/

from animatediff.

RexLeeGrey avatar RexLeeGrey commented on July 24, 2024

Please use the configuration file to generate it directly, do not use Webui.

from animatediff.

WainWong avatar WainWong commented on July 24, 2024

其它路径这样子,修写。在win10下面。

>>> create validation pipeline >>>

创建验证管道 >>>

       # tokenizer    = CLIPTokenizer.from_pretrained(args.pretrained_model_path, subfolder="tokenizer")
        tokenizer    = CLIPTokenizer.from_pretrained("G:\\AI\\AnimateDiff\\models\\StableDiffusion\\tokenizer\\")
       # text_encoder = CLIPTextModel.from_pretrained(args.pretrained_model_path, subfolder="text_encoder")
        text_encoder = CLIPTextModel.from_pretrained("G:\\AI\\AnimateDiff\\models\\StableDiffusion\\text_encoder\\")
       # vae          = AutoencoderKL.from_pretrained(args.pretrained_model_path, subfolder="vae")
        vae          = AutoencoderKL.from_pretrained("G:\\AI\\AnimateDiff\\models\\StableDiffusion\\vae\\")                  
       # unet         = UNet3DConditionModel.from_pretrained_2d(args.pretrained_model_path, subfolder="unet", unet_additional_kwargs=OmegaConf.to_container(inference_config.unet_additional_kwargs))
        unet         = UNet3DConditionModel.from_pretrained_2d("G:\\AI\\AnimateDiff\\models\\StableDiffusion\\unet\\", unet_additional_kwargs=OmegaConf.to_container(inference_config.unet_additional_kwargs))

it work,thanks

from animatediff.

LIANGSHUOWEN avatar LIANGSHUOWEN commented on July 24, 2024

这个

it works for me, thanks!!!

from animatediff.

LIANGSHUOWEN avatar LIANGSHUOWEN commented on July 24, 2024

错误原因是:手动下的配置文件浏览器会自动修改名字(添加前缀),如tokenizer文件夹中的vocab.json被修改为“tokenizer_vocab.json”。(这个前缀就是所在文件夹的名字) 解决办法:手动修改回去就可以了。亲测可用。 官方代码没有问题的,不用修改。
it works for me, thanks!!!

from animatediff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.