Skip to content

unknown config for DDPMSchedulerCustomized #18

@AlbanGauthier

Description

@AlbanGauthier

I get this error in src\trainer\genpercept_trainer.py,

self.training_noise_scheduler: DDPMSchedulerCustomized = DDPMSchedulerCustomized.from_pretrained(
while trying to train a GenPerceptPipeline:

We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like pretrained_weights\stable-diffusion-2-1\scheduler_beta_1.0_1.0 is not the path to a directory containing a scheduler_config.json file.

The problem is that we try to load a config using DDPMSchedulerCustomized.from_pretrained, from a config.json that does not exist:
'pretrained_weights\\stable-diffusion-2-1\\scheduler_beta_1.0_1.0'

Should the line be replace by :
self.training_noise_scheduler: DDPMSchedulerCustomized = DDPMSchedulerCustomized.from_pretrained( 'hf_configs/scheduler_beta_1.0_1.0' ) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions