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

[Bug]: Expecting value: line 1 column 1 (char 0) #94

Closed
2 tasks done
aiographer opened this issue Apr 5, 2023 · 5 comments
Closed
2 tasks done

[Bug]: Expecting value: line 1 column 1 (char 0) #94

aiographer opened this issue Apr 5, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@aiographer
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Are you using the latest version of the extension?

  • I have the modelscope text2video extension updated to the lastest version and I still have the issue.

What happened?

After I push the generate button, nothing happens. I get this message from the log:

ModelScope text2video extension for auto1111 webui
Git commit: d16d9d4 (Thu Mar 30 09:18:56 2023)
Starting text2video
Pipeline setup
Traceback (most recent call last):
File "C:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-modelscope-text2video\scripts\modelscope-text2vid.py", line 76, in process
pipe = setup_pipeline()
File "C:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-modelscope-text2video\scripts\modelscope-text2vid.py", line 30, in setup_pipeline
return TextToVideoSynthesis(ph.models_path+'/ModelScope/t2v')
File "C:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-modelscope-text2video\scripts\t2v_pipeline.py", line 59, in init
config_dict = json.load(f)
File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Exception occurred: Expecting value: line 1 column 1 (char 0)

Steps to reproduce the problem

  1. after installaton with huggingface models added
  2. Switch to Modelscope tab,
  3. prompt writing into the text field
  4. generate button pushed
  5. Show video button pushed
  6. .Nothing happens, video shows the error message
  7. Log shows error

What should have happened?

I would like to get a short video, instead off the error video

WebUI and Deforum extension Commit IDs

webui commit id -
txt2vid commit id -

What GPU were you using for launching?

3060 12 GB ram

On which platform are you launching the webui backend with the extension?

Local PC setup (Windows)

Settings

Normal settings, no vmed ram, no xformer, (not works with vmed ram and/or xformer )

Console logs

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Loading A111 WebUI Launcher
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 i   Settings file found, loading
 →   Updating Settings File  ✓
 i   Launcher Version 1.7.0
 i   Found a custom WebUI Config
 i   No Launcher launch options
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 →   Checking requirements :
 i   Python 3.10.6150.1013 found in registry:  C:\Users\PC\AppData\Local\Programs\Python\Python310\
 i   Clearing PATH of any mention of Python
 →   Adding python 3.10 to path  ✓
 i   Git found and already in PATH:  C:\Program Files\Git\cmd\git.exe
 i   Automatic1111 SD WebUI found:  C:\Stable Diffusion\stable-diffusion-webui
 i   One or more checkpoint models were found
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Loading Complete, opening launcher
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 i   No arguments set
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ↺   Updating Webui
 ✓   Done
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ↺   Updating Extension: deforum-for-automatic1111-webui
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ↺   Updating Extension: sd-webui-modelscope-text2video
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ↺   Updating Extension: stable-diffusion-webui-images-browser
 ✓   Done
 i   No arguments set
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  WEBUI LAUNCHING VIA EMS LAUNCHER, EXIT THIS WINDOW TO STOP THE WEBUI
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 !   Any error happening after 'commit hash : XXXX' is not related to the launcher. Please report them on Automatic1111's github instead :
 ☁   https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/new/choose
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Cancel
venv "C:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing requirements for Web UI



Launching Web UI with arguments: --autolaunch
No module 'xformers'. Proceeding without it.
Loading weights [27a4ac756c] from C:\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\SD15NewVAEpruned.ckpt
Creating model from config: C:\Stable Diffusion\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 4.8s (load weights from disk: 1.0s, create model: 0.5s, apply weights to model: 0.7s, apply half(): 1.0s, move model to device: 0.7s, load textual inversion embeddings: 0.9s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 12.1s (import torch: 1.7s, import gradio: 1.1s, import ldm: 0.5s, other imports: 0.9s, load scripts: 1.4s, load SD checkpoint: 4.9s, create ui: 1.2s, gradio launch: 0.3s).
ModelScope text2video extension for auto1111 webui
Git commit: d16d9d47 (Thu Mar 30 09:18:56 2023)
Starting text2video
Pipeline setup
Traceback (most recent call last):
  File "C:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-modelscope-text2video\scripts\modelscope-text2vid.py", line 76, in process
    pipe = setup_pipeline()
  File "C:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-modelscope-text2video\scripts\modelscope-text2vid.py", line 30, in setup_pipeline
    return TextToVideoSynthesis(ph.models_path+'/ModelScope/t2v')
  File "C:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-modelscope-text2video\scripts\t2v_pipeline.py", line 59, in __init__
    config_dict = json.load(f)
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Exception occurred: Expecting value: line 1 column 1 (char 0)

Additional information

No response

@aiographer aiographer added the bug Something isn't working label Apr 5, 2023
@justinwking
Copy link

I am not an expert, but I think the json file was not downloaded in it's raw format. Therefore it is reading the HTML metadata and confused. try going back to the json file and downloading the file in it's raw format, and your problem should be solved.

@github-actions github-actions bot added the invalid This doesn't seem right label Apr 23, 2023
@github-actions
Copy link

This issue has been closed due to incorrect formatting. Please address the following mistakes and reopen the issue:

  • The issue title should be concise and contain no more than 9 words.
  • Provide a valid commit ID in the format 'commit id - [commit_hash]' both for the WebUI and the Extension.

@kabachuha kabachuha added wrong format and removed invalid This doesn't seem right labels Apr 23, 2023
@kabachuha kabachuha changed the title [Bug]: Exception occurred: Expecting value: line 1 column 1 (char 0) [Bug]: Expecting value: line 1 column 1 (char 0) Apr 23, 2023
@kabachuha kabachuha reopened this Apr 23, 2023
@github-actions github-actions bot removed bug Something isn't working wrong format labels Apr 23, 2023
@github-actions
Copy link

Thanks for addressing your formatting mistakes. The issue has been reopened now.

@github-actions github-actions bot added the bug Something isn't working label Apr 23, 2023
@xnmt9
Copy link

xnmt9 commented Aug 19, 2023

For anyone else who has this, make sure you have the actual configurations.json file, and not an HTML instead (open it and look inside it, or cat it)

@kabachuha
Copy link
Owner

@xnmt9 right, this is actually mentioned both in the readme and in the extension, so I can close this issue now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants