Acly / comfyui-inpaint-nodes

Nodes for better inpainting with ComfyUI: Fooocus inpaint model for SDXL, LaMa, MAT, and various other tools for pre-filling inpaint & outpaint areas.
GNU General Public License v3.0
490 stars 35 forks source link

ImportError: cannot import name 'LaMaArch' from 'spandrel.architectures.LaMa' #49

Closed 925-Studio closed 1 month ago

925-Studio commented 1 month ago

After update I got this error message in terminal and the nodes were failed to load. Any ideas? Thanks.

Acly commented 1 month ago

The latest update is for compatibility with latest ComfyUI and does not work with older versions, so make sure you are up to date.

Also check spandrel is installed:

pip install --upgrade spandrel
925-Studio commented 1 month ago

pip install --upgrade spandrel

Yep, apparently it was the old version of spandrel caused the problem. After the update, the problem is gone. Thank you for the tip.