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

config file is not a valid json file #7979

Open
neonarc4 opened this issue May 19, 2024 · 4 comments
Open

config file is not a valid json file #7979

neonarc4 opened this issue May 19, 2024 · 4 comments

Comments

@neonarc4
Copy link

neonarc4 commented May 19, 2024

File "Z:\software\python11\Lib\site-packages\diffusers\configuration_utils.py", line 436, in load_config
raise EnvironmentError(f"It looks like the config file at '{config_file}' is not a valid JSON file.")
OSError: It looks like the config file at 'X:\test\dreamshaper_8.safetensors' is not a valid JSON file.

why other diffusers doesnt have single file ?

pipe = AutoPipelineForInpainting.from_pretrained(
test/dreamshaper_8.safetensors')

@tolgacangoz
Copy link
Contributor

tolgacangoz commented May 19, 2024

Try this:

pipe = StableDiffusionPipeline.from_single_file("test/dreamshaper_8.safetensors")

But, I couldn't use this pipe for inpainting :/
dreamshaper_8Inpainting.safetensors works for inpainting:

pipe = StableDiffusionInpaintPipeline.from_single_file("test/dreamshaper_8Inpainting.safetensors")

@neonarc4
Copy link
Author

neonarc4 commented May 19, 2024

thnx for >.</ but is their for AutoPipelineForText2Image ,I2VGenXLPipeline ,StableVideoDiffusionPipeline

like they dont have single_file

@suzukimain
Copy link

Maybe this PR has something to do with it.
#6986 (comment)

@yiyixuxu
Copy link
Collaborator

Hi!
we won't be able to support single file with AutoPipelineForText2Image since the pipeline type need to be explicitly given for single checkpoint
for I2VGenXLPipeline and StableVideoDiffusionPipeline we are happy to support if there are single checkpoint available cc @DN6

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

4 participants