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
18.16k stars 1.86k forks source link

[BUG]pydantic_core._pydantic_core.ValidationError: 1 validation error for Config paint_by_example_example_image Input should be an instance of Image [type=is_instance_of, input_value=None, input_type=NoneType] #429

Open wang3680 opened 5 months ago

wang3680 commented 5 months ago

Model LAMA

Describe the bug [2024-01-24 09:36:41,914] ERROR in app: Exception on /inpaint [POST] Traceback (most recent call last): File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function return cors_after_request(app.make_response(f(*args, kwargs))) File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask_compat.py", line 39, in reraise raise value File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](req.view_args) File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\lama_cleaner\server.py", line 259, in process p2p_guidance_scale=form["p2pGuidanceScale"], File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\pydantic\main.py", line 164, in init pydantic_self.pydantic_validator.validate_python(data, self_instance=__pydantic_self__) pydantic_core._pydantic_core.ValidationError: 1 validation error for Config paint_by_example_example_image Input should be an instance of Image [type=is_instance_of, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.4/v/is_instance_of

System Info (venv) E:\wss\python\pycharm-work\lama-cleaner-0.37.0>python main.py --model=lama --device=cpu --port=8085

2024-01-24 09:33:59.046 | INFO | lama_cleaner.helper:load_jit_model:102 - Loading model from: C:\Users\wss.cache\torch\hub\checkpoints\big-lama.pt 2024-01-24 09:33:59.799 | INFO | lama_cleaner.helper:load_jit_model:102 - Loading model from: C:\Users\wss.cache\torch\hub\checkpoints\clickseg_pplnet. pt

Sanster commented 5 months ago

Hello, could you please try the new version? 'Lama-cleaner' has been renamed to 'iopaint'. pip install iopaint