Sanster / IOPaint

Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
https://www.iopaint.com/
Apache License 2.0
19.49k stars 1.99k forks source link

Not starting & Giving Error. #439

Open RFedz007989 opened 9 months ago

RFedz007989 commented 9 months ago

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 commented 9 months ago

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

RFedz007989 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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