Skip to content

ValueError when to('cuda') on Value-guided planning pipeline #6409

Description

@hilookas

Describe the bug

When I run the Value-guided planning pipeline colab https://colab.research.google.com/drive/1rXm8CX4ZdN5qivjJ2lhwhkOmt_m0CvU0 with to('cuda') to speed up the diffusion process. It gave me a ValueError.

Reproduction

https://colab.research.google.com/drive/1SFl7daLQxd8QyHJP6ndSPznSFX2rppQ2 Code block 24 pipeline.to(DEVICE)

Logs

ValueError: ValueGuidedRLPipeline {
"_class_name": "ValueGuidedRLPipeline",
"_diffusers_version": "0.25.0.dev0",
"_name_or_path": "bglick13/hopper-medium-v2-value-function-hor32"
}
has been incorrectly initialized or <class 'diffusers.experimental.rl.value_guided_sampling.ValueGuidedRLPipeline'> is incorrectly implemented. Expected {'env', 'unet', 'value_function', 'scheduler'} to be defined, but dict_keys([]) are defined.

System Info

colab

Who can help?

@yiyixuxu

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions