diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

config file is not a valid json file

Open neonarc4 opened this issue 9 months ago • 4 comments

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')

neonarc4 avatar May 19 '24 09:05 neonarc4

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")

tolgacangoz avatar May 19 '24 10:05 tolgacangoz

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

like they dont have single_file

neonarc4 avatar May 19 '24 10:05 neonarc4

Maybe this PR has something to do with it. https://github.com/huggingface/diffusers/pull/6986#issue-2136319703

suzukimain avatar May 20 '24 04:05 suzukimain

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

yiyixuxu avatar May 20 '24 16:05 yiyixuxu