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

Not starting & Giving Error. #439

Open
RFedz007989 opened this issue Jan 31, 2024 · 7 comments
Open

Not starting & Giving Error. #439

RFedz007989 opened this issue Jan 31, 2024 · 7 comments
Labels

Comments

@RFedz007989
Copy link

Hi,

I am getting this below mentioned error when trying to start.

┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ C:\Users\vkark\anaconda3\lib\site-packages\typer_config\decorators.py:92 in wrapped │
│ │
│ C:\Users\vkark\anaconda3\lib\site-packages\iopaint\cli.py:159 in start │
│ │
│ 156 │ │
│ 157 │ from iopaint.download import cli_download_model, scan_models │
│ 158 │ │
│ > 159 │ scanned_models = scan_models() │
│ 160 │ if model not in [it.name for it in scanned_models]: │
│ 161 │ │ logger.info(f"{model} not found in {model_dir}, try to downloading") │
│ 162 │ │ cli_download_model(model) │
│ │
│ C:\Users\vkark\anaconda3\lib\site-packages\iopaint\download.py:202 in scan_models │
│ │
│ 199 │ diffusers_model_names = [] │
│ 200 │ for it in cache_dir.glob("**/*/model_index.json"): │
│ 201 │ │ with open(it, "r", encoding="utf-8") as f: │
│ > 202 │ │ │ data = json.load(f) │
│ 203 │ │ │ class_name = data["class_name"] │
│ 204 │ │ │ name = folder_name_to_show_name(it.parent.parent.parent.name) │
│ 205 │ │ │ if name in diffusers_model_names: │
│ │
│ C:\Users\vkark\anaconda3\lib\json_init
.py:293 in load │
│ │
│ 290 │ To use a custom JSONDecoder subclass, specify it with the cls
│ 291 │ kwarg; otherwise JSONDecoder is used. │
│ 292 │ """ │
│ > 293 │ return loads(fp.read(), │
│ 294 │ │ cls=cls, object_hook=object_hook, │
│ 295 │ │ parse_float=parse_float, parse_int=parse_int, │
│ 296 │ │ parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) │
│ │
│ C:\Users\vkark\anaconda3\lib\json_init
.py:346 in loads │
│ │
│ 343 │ if (cls is None and object_hook is None and │
│ 344 │ │ │ parse_int is None and parse_float is None and │
│ 345 │ │ │ parse_constant is None and object_pairs_hook is None and not kw): │
│ > 346 │ │ return _default_decoder.decode(s) │
│ 347 │ if cls is None: │
│ 348 │ │ cls = JSONDecoder │
│ 349 │ if object_hook is not None: │
│ │
│ C:\Users\vkark\anaconda3\lib\json\decoder.py:337 in decode │
│ │
│ 334 │ │ containing a JSON document). │
│ 335 │ │ │
│ 336 │ │ """ │
│ > 337 │ │ obj, end = self.raw_decode(s, idx=_w(s, 0).end()) │
│ 338 │ │ end = _w(s, end).end() │
│ 339 │ │ if end != len(s): │
│ 340 │ │ │ raise JSONDecodeError("Extra data", s, end) │
│ │
│ C:\Users\vkark\anaconda3\lib\json\decoder.py:355 in raw_decode │
│ │
│ 352 │ │ try: │
│ 353 │ │ │ obj, end = self.scan_once(s, idx) │
│ 354 │ │ except StopIteration as err: │
│ > 355 │ │ │ raise JSONDecodeError("Expecting value", s, err.value) from None │
│ 356 │ │ return obj, end │
│ 357 │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

(base) C:\WINDOWS\system32>

Pls Assist...
Thank You

@Sanster
Copy link
Owner

Sanster commented Feb 1, 2024

Thank you for reporting this bug. It has been fixed in iopaint==1.0.0b12.

@RFedz007989
Copy link
Author

Thank you for reporting this bug. It has been fixed in iopaint==1.0.0b12.
So as of now I can't use this, as this will be fixed in the next version right.
Thank You

@RFedz007989
Copy link
Author

Thank you for reporting this bug. It has been fixed in iopaint==1.0.0b12.
So as of now I can't use this, as this will be fixed in the next version right.
Thank You

Now I am getting this error

IOpaint starting error

Can you pls Assist me on this how to fix this.
Thank You

@Sanster
Copy link
Owner

Sanster commented Feb 3, 2024

Maybe you can try removing xformers. When the PyTorch version is greater than 2.0, diffusers will automatically use memory-efficient attention, and xformers are not needed. https://huggingface.co/docs/diffusers/v0.26.1/en/optimization/torch2.0

@RFedz007989
Copy link
Author

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Thanks, but still I am getting the same error which I mentioned before.
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Thank You

It would have been of great help, if there would have been a 1Click Windows Installer for IOPiant

@RFedz007989
Copy link
Author

I tried & tried many times, but was getting the above mentioned error again & again, so left with no option to just reinstall it. I think there's an issue for which Fix can't be done.

Anyways Thanks a lot for your help.
Have a Gr8 Day :)

Thank You
Rocky

Copy link

github-actions bot commented Feb 5, 2025

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants