InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Patchmatch initializing and failed to load

Open RaphaelDreams opened this issue 3 years ago • 8 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

8GB

What version did you experience this issue on?

3.1 and 3.2

What happened?

Patch-match initializing but for some reason I get this error, have no clue what it means:

2023-10-10 22:02:01,557]::[InvokeAI]::INFO --> Patchmatch initialized /media/Raphael/Storage/InvokeAI_WebUI/InvokeAI 3.1.0 WebUI/.venv/lib/python3.9/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be removed in 0.17. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( Traceback (most recent call last): File "/media/Raphael/Storage/InvokeAI_WebUI/InvokeAI 3.1.0 WebUI/.venv/bin/invokeai-web", line 7, in from invokeai.app.api_app import invoke_api File "/media/Raphael/Storage/InvokeAI_WebUI/InvokeAI 3.1.0 WebUI/.venv/lib/python3.9/site-packages/invokeai/app/api_app.py", line 26, in from .api.dependencies import ApiDependencies File "/media/Raphael/Storage/InvokeAI_WebUI/InvokeAI 3.1.0 WebUI/.venv/lib/python3.9/site-packages/invokeai/app/api/dependencies.py", line 15, in from invokeai.app.services.images import ImageService, ImageServiceDependencies File "/media/Raphael/Storage/InvokeAI_WebUI/InvokeAI 3.1.0 WebUI/.venv/lib/python3.9/site-packages/invokeai/app/services/images.py", line 37, in from invokeai.app.util.metadata import get_metadata_graph_from_raw_session File "/media/Raphael/Storage/InvokeAI_WebUI/InvokeAI 3.1.0 WebUI/.venv/lib/python3.9/site-packages/invokeai/app/util/metadata.py", line 6, in from invokeai.app.services.graph import Edge File "/media/Raphael/Storage/InvokeAI_WebUI/InvokeAI 3.1.0 WebUI/.venv/lib/python3.9/site-packages/invokeai/app/services/graph.py", line 154, in class GraphInvocationOutput(BaseInvocationOutput): File "/media/Raphael/Storage/InvokeAI_WebUI/InvokeAI 3.1.0 WebUI/.venv/lib/python3.9/site-packages/invokeai/app/invocations/baseinvocation.py", line 618, in wrapper cls.annotations.update({"type": output_type_annotation}) AttributeError: type object 'GraphInvocationOutput' has no attribute 'annotations'

End Log

Screenshots

image

Additional context

No response

Contact Details

No response

RaphaelDreams avatar Oct 11 '23 04:10 RaphaelDreams

Honestly man I been running arch even reinstalled the system at one point I think patchmatch isn't a thing anymore it hasn't been updated or looked after in ages. Couldn't get tj to work for the life of me.

Lolagatorade avatar Oct 12 '23 05:10 Lolagatorade

Believe it's a Python version issue: https://github.com/invoke-ai/InvokeAI/issues/4440, but this should have been fixed in 3.2

Try updating to Python 3.10 to solve the error.

For patchmatch, take a look at these docs: https://invoke-ai.github.io/InvokeAI/installation/060_INSTALL_PATCHMATCH/

Millu avatar Oct 12 '23 07:10 Millu

Patchmatch is successfully initialized according to the terminal output, this isn't a patchmatch issue.

It looks like you are just on an outdated version, which is missing the fix for this issue. You don't need to upgrade from python 3.9 actually, we've handled this specific issue. Please update your install of invoke.

psychedelicious avatar Oct 12 '23 07:10 psychedelicious

Patchmatch is successfully initialized according to the terminal output, this isn't a patchmatch issue.

It looks like you are just on an outdated version, which is missing the fix for this issue. You don't need to upgrade from python 3.9 actually, we've handled this specific issue. Please update your install of invoke.

I updated to the 3.3 version and am still having the same issue, I also installed 3.2 then updated to the 3.3 branch through the terminal.

RaphaelDreams avatar Oct 12 '23 21:10 RaphaelDreams

I think it has to do with something in python3.19 but I have no clue and I need this version of python. Python 3.9.13

RaphaelDreams avatar Oct 12 '23 22:10 RaphaelDreams

@RaphaelDreams Dang, that's unfortunate. I'm surprised we haven't gotten more issues about this.

I created a new venv with python 3.9.6 and I have the same issue there.

A workaround is to use pyenv to install a more up-to-date version of python, then use that to install InvokeAI. That will leave your existing python installation alone. The updated python would automatically be used by InvokeAI.

I should also mention we have decided to deprecate python 3.9 in the 3.3 release, so this still will be necessary anyways. Sorry for the hassle.

psychedelicious avatar Oct 13 '23 03:10 psychedelicious

It worked it was just a older version of python that was not compatible with invokeai, I really appreciate the help.

Here is a guide for to install pyenv with anyone with the same issue needing a newer version but not willing to give up their anaconda install: https://www.k0nze.dev/posts/install-pyenv-venv-vscode/ also need python3-openssl instead of the one listed in that list or it won't work otherwise.

Thanks for the help now I can go back to making AI generated goodness.

RaphaelDreams avatar Oct 13 '23 18:10 RaphaelDreams

Good to hear and thanks for that link. Have fun!

psychedelicious avatar Oct 13 '23 20:10 psychedelicious