python inference_scripts/inference_pmv2.py
Traceback (most recent call last):
File "/Users/tangzhenhua/Downloads/lab/PhotoMaker/inference_scripts/inference_pmv2.py", line 10, in
from photomaker import PhotoMakerStableDiffusionXLPipeline
File "/Users/tangzhenhua/miniconda3/envs/photomaker/lib/python3.10/site-packages/photomaker/init.py", line 2, in
from .model_v2 import PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken
File "/Users/tangzhenhua/miniconda3/envs/photomaker/lib/python3.10/site-packages/photomaker/model_v2.py", line 9, in
from . import FacePerceiverResampler
ImportError: cannot import name 'FacePerceiverResampler' from partially initialized module 'photomaker' (most likely due to a circular import) (/Users/tangzhenhua/miniconda3/envs/photomaker/lib/python3.10/site-packages/photomaker/init.py)
Try this line from .resampler import FacePerceiverResampler
See https://github.com/TencentARC/PhotoMaker/issues/157, the commit from a few hours ago fixed it