Тёмный

InstantID Stylize Portraits in 1 click ComfyUI 

ImpactFrames
Подписаться 4,2 тыс.
Просмотров 10 тыс.
50% 1

#InstantID #Photomaker #tiktok #animateanyone #comfyui #comfy #ai #StableDiffusion
Instant-ID another IP adaptor portrait stylizer
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
SOCIAL MEDIA LINKS!
✨ Support my (*・‿・)ノ⌒*:・゚✧

character available at ko-fi.com/impactframes/shop
SD related civitai.com/user/impactframes
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
VIDEO LINKS📄🖍️o(≧o≦)o🔥
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
to watch tutorials
/ @impactframes
ko-fi.com/impactframes
patreon.com/ImpactFrames coming soon! :)
------------------------------------------------------------
please star the repos bellow.
github.com/ZHO-ZHO-ZHO/ComfyU...
troubleshoot video
ko-fi.com/s/250070822c
• Troubleshoot ComfyUI F...
Models
civitai.com/models/214823/leo...
civitai.com/models/230934/soc...
precompiled insightface wheels
github.com/Gourieff/sd-webui-...
github.com/Gourieff/Assets/ra...
other necessary models are easily searchable with the ComfyUI manager
WF
comfyworkflows.com/workflows/...
comfyworkflows.com/workflows/...
comfyworkflows.com/workflows/...
Enjoy
ImpactFrames.
Thanks
ImpactFrames
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🔥NOTES
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Watch my fix nodes video if troubles
• Troubleshoot ComfyUI F...

Развлечения

Опубликовано:

 

11 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 71   
@lilillllii246
@lilillllii246 3 месяца назад
Thanks. I ran it, but I keep getting this message "Error occurred when executing LoadImage". What should I do?
@sandocarlos1
@sandocarlos1 21 день назад
I try to do the manual installation of mono the samples in the video at minute 9:23 but it tells me: it is not recognized as an internal or external command, executable program or batch file.
@paranormaletvfr
@paranormaletvfr 4 месяца назад
thx for tuto !
@impactframes
@impactframes 4 месяца назад
Thank you
@impactframes
@impactframes 4 месяца назад
0:00-1:00: Introduction and overview of InstantID, a custom note similar to PhotoMaker for adding custom styles to images in ConfUI. 1:00-3:00: Explanation of the different styles available in InstantID, including SXDXL Styler, Prompts Styler from XDXL, and Prepare Image for Clip Vision. Links to download these custom nodes are provided in the video description. 3:00-5:00: Troubleshooting tips for installing InstantID, including how to fix missing dependencies and install the custom node manually. The video also mentions that InstantID is more resource-intensive than PhotoMaker. 5:00-8:00: Demonstration of how to install InstantID manually in ConfUI Windows Portable. This includes instructions on how to install the required wheel files and models. 8:00-12:00: Installing additional custom workflows, such as Gallery BYU, and troubleshooting tips for using the Inside Face mode. 12:00-15:00: Running InstantID with the LCM Turbo model and saving the generated images. The video notes that this model requires more VRAM than PhotoMaker. 15:00-20:00: Conclusion and summary of the video. The creator mentions that InstantID is a great custom note for adding unique styles to portraits in ConfUI.
@impactframes
@impactframes 21 день назад
the version of the precompiled insightface wheels are in the video description those are the ones I used for this on windows portable
@itsmenord1993
@itsmenord1993 4 месяца назад
I'm planning to buy the 4070 ti super or 4080 super is this enough for ai a1111 or comfyui for sdxl version?
@impactframes
@impactframes 4 месяца назад
I recommend a used 3090 is about the price of the new 4070 having more vram is preferred even if 4070 super is faster for certain things vram is more important
@itsmenord1993
@itsmenord1993 4 месяца назад
500$ for used 3090 here in our place. It really is vram hungry for this to use efficiently
@KKsinsa
@KKsinsa 4 месяца назад
I am currently using the 4070ti 12G, but it seems that this node is not compatible. It appears that only the RTX 4090 is supported at the moment.
@impactframes
@impactframes 4 месяца назад
Did you installed the onnxrunyime-gpu? I think you are right it needs optimizations in my machine it uses about 16GB or more but I think it will work on the 4070 when it gets optimized.
@matthallett4126
@matthallett4126 4 месяца назад
I've tried everything I can to get these nodes into Comfy, and they always fail. Portable Vs, Manual Install, All the diffused models in the right directories. Onyx files, uninstall, reinstall Torch, but I'm am about to try your links and edit this if it works.
@impactframes
@impactframes 4 месяца назад
Wow hope it works did you watch the last part were it still the nodes fail despite all being correctly installed Insightface = !Insightface message and it turns out that it is just the workflow that needs to be recreate it. Please watch that is about the end of the video and I am sure that issue is tripping people up. It actually happens similar to other custom nodes because the workflows can't update automatically when there is a change in the definitions inside the ui program of the nodes if you know what I mean.
@97BuckeyeGuy
@97BuckeyeGuy 4 месяца назад
I tried running Instant ID earlier today, but I kept running out of VRAM at the very end. I guess 12GB of VRAM isn't good enough for the newest SD tools any more.
@impactframes
@impactframes 4 месяца назад
We need to wait for a more optimized version of this At the end of the video I mention that it hogged the full of my 24GB VRAM but I am running many other apps including screen recording but I still think it went over 16GB. Photomaker can be run on 8 to12GB and is better in my opinion, this one is nice but if you can use more pics I like best Photomaker
@97BuckeyeGuy
@97BuckeyeGuy 4 месяца назад
@@impactframes Yeah. I think it needs about 13GB to complete. My workflow would get 100% through the next to last node, pause for a few seconds, and then throw a memory error before giving a final image. Frustrating
@impactframes
@impactframes 4 месяца назад
@@97BuckeyeGuy It won't be long to get a optimization there are many eyes on it as It's trending on github right now.
@Thomas_Leo
@Thomas_Leo 4 месяца назад
I saw a trick on another video. Try this: 1. Open Nvidia Control Panel 2. Manage 3D settings 3.CUDA - System Fallback Policy (select Prefer Sysmem Fallback option) This should prevent the error.
@impactframes
@impactframes 4 месяца назад
@@Thomas_Leo oh nice that could work mine those this automatically but I forgot it might be different depending on the GPU, thanks for sharing.
@sandocarlos1
@sandocarlos1 21 день назад
The version of comfyUI portable that I downloaded yesterday has a problem installing instantID, can you tell me what version you have?
@impactframes
@impactframes 21 день назад
the version of the precompiled insightface wheels are in the video description those are the ones I used for this on windows portable
@alinwrkshp17
@alinwrkshp17 4 месяца назад
I am trying to get this running but I keep getting a 'str' object does not have attribute 'shape' error when I leave the 'Prepare Image For Clip Vision' node installed. I assume this is b/c the InstantID Generation is expecting a img and not a str, but can't for the life of me figure out how to get it to change output. Am I missing a key step/model somwhere?
@impactframes
@impactframes 4 месяца назад
It looks like amodel mismatch error. I think instant I'd only works with sdxl models and not with 1.5 but is hard to say just from the message.
@user-dq1sv9ls3y
@user-dq1sv9ls3y 3 месяца назад
Error occurred when executing IDControlNetLoader: Error no file named diffusion_pytorch_model.bin found in directory E:\models\InstantID\checkpoints\controlnet.
@user-dq1sv9ls3y
@user-dq1sv9ls3y 3 месяца назад
It prompts that the corresponding file cannot be found in the file directory: diffusion_pytorch_model.bin. The file directory file should be: diffusion_pytorch_mode.safetensors
@riccardobiagi7595
@riccardobiagi7595 4 месяца назад
is it possible to have it working on m1 mac? I get this error "Error occurred when executing Ipadapter_instantidLoader: 'StableDiffusionXLInstantIDPipeline' object has no attribute 'dtype'"
@impactframes
@impactframes 4 месяца назад
Sorry I think this needs CUDA to work not totally sure because it runs on OSX servers but I think you can have Nvidia GPU on MAC servers so almost sure it is not working on M1 but I don't have mac sorry
@riccardobiagi7595
@riccardobiagi7595 4 месяца назад
damn, thanks for the feedback!@@impactframes
@2manyart
@2manyart 2 месяца назад
Is it possible to use a mask on the image like in a1111, rather than generate a random picture?
@impactframes
@impactframes 2 месяца назад
Reply not sure on the implementation from the video but it is possible on the ipadapter i'stant I'd I haven't check the latest updates on this one but at the time there was no masks. But I will check later
@nDman
@nDman 4 месяца назад
It is great but it uses lots of vram, on 12GB 3060 I get out of memory errors sometimes.
@impactframes
@impactframes 4 месяца назад
Yes hope someone figure out the optimizations needed for it. Thanks
@JunaidAmjadPhotography
@JunaidAmjadPhotography 4 месяца назад
I've set the controlnet directory but an error is displayed. Error occurred when executing IDControlNetLoader: Error no file named config.json found in directory D:\AI\sdxl\sdxl\git\extensions\sd-webui-controlnet\models. Installed all custom nodes via manager. All directories also set. What can be done?
@impactframes
@impactframes 4 месяца назад
Looks like the configs.json is not on the same folder look in the min 12:46 of this video I download it and place it on the checkpoints> controlnet> together with the actual model file so there are two files there configs.json and the model itself
@impactframes
@impactframes 4 месяца назад
Looks like the configs.json is not on the same folder look in the min 12:46 of this video I download it and place it on the checkpoints> controlnet> together with the actual model file so there are two files there configs.json and the model itself
@KINGLIFERISM
@KINGLIFERISM 3 месяца назад
That is silly the way the node works but... whatever I guess. @@impactframes
@impactframes
@impactframes 3 месяца назад
@@KINGLIFERISM yes is so complex
@intergalacticpassenger5911
@intergalacticpassenger5911 4 месяца назад
I did everything according to your instructions, now when I run, there are no errors in the console, but in the browser comfyui does not start, black screen
@impactframes
@impactframes 4 месяца назад
So you enter the environment install all the requirements.txt and now does not start? So you get to see the link to open 8188?
@knightride9635
@knightride9635 4 месяца назад
Which one is better, photoID or Photomaker ?
@impactframes
@impactframes 4 месяца назад
I like Photomaker better because it has more styles also looks more Realistic.
@abdullahazzam664
@abdullahazzam664 4 месяца назад
Im getting the error.. please help "Error occurred when executing IDGenerationNode: Allocation on device 0 would exceed allowed memory. (out of memory) Currently allocated : 11.52 GiB Requested : 1.53 GiB Device limit : 6.00 GiB Free (according to CUDA): 0 bytes PyTorch limit (set by user-supplied memory fraction) : 17179869184.00 GiB"
@impactframes
@impactframes 3 месяца назад
Looks like OOM I think this thing needs about 12GB to run apparently there is now a native version of this node that might help but sorry beyond the troubleshoot video I made I don't know how can you solve it.
@eltalismandelafe7531
@eltalismandelafe7531 4 месяца назад
A lot of thanks for the video! When i load the V1.0 InstantID_locally workfrlow i get this error: Failed to validate prompt for output 12: * IDGenerationNode 15: - Return type mismatch between linked nodes: insightface, INSIGHTFACE != INSIGHTFACEMODEL Output will be ignored invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
@impactframes
@impactframes 4 месяца назад
Is this my workflows which I linked in the video? I Think you might have to recreate the workflow as I explain towards the end of this video mainly the insight face loader and the I'd gen get conflicted sometimes is around the 20min mark
@eltalismandelafe7531
@eltalismandelafe7531 4 месяца назад
@@impactframes No, with your workflow this error appears: !!! Exception during processing !!! Traceback (most recent call last): File "C:\Users\Luna\Documents\ComfyUI_windows_portable\python_embeded\lib\site-packages\diffusers\configuration_utils.py", line 428, in load_config config_dict = cls._dict_from_json_file(config_file) File "C:\Users\Luna\Documents\ComfyUI_windows_portable\python_embeded\lib\site-packages\diffusers\configuration_utils.py", line 551, in _dict_from_json_file return json.loads(text) File "json\__init__.py", line 346, in loads File "json\decoder.py", line 337, in decode File "json\decoder.py", line 355, in raw_decode json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Luna\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 155, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\Users\Luna\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 85, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\Users\Luna\Documents\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 373, in new_func res_value = old_func(*final_args, **kwargs) File "C:\Users\Luna\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 78, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "C:\Users\Luna\Documents\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-InstantID\InstantIDNode.py", line 96, in load_idcontrolnet controlnet = ControlNetModel.from_pretrained(controlnet_path, torch_dtype=torch.float16) File "C:\Users\Luna\Documents\ComfyUI_windows_portable\python_embeded\lib\site-packages\huggingface_hub\utils\_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "C:\Users\Luna\Documents\ComfyUI_windows_portable\python_embeded\lib\site-packages\diffusers\models\modeling_utils.py", line 712, in from_pretrained config, unused_kwargs, commit_hash = cls.load_config( File "C:\Users\Luna\Documents\ComfyUI_windows_portable\python_embeded\lib\site-packages\huggingface_hub\utils\_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "C:\Users\Luna\Documents\ComfyUI_windows_portable\python_embeded\lib\site-packages\diffusers\configuration_utils.py", line 432, in load_config raise EnvironmentError(f"It looks like the config file at '{config_file}' is not a valid JSON file.") OSError: It looks like the config file at 'C:\Users\Luna\Documents\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-InstantID\checkpoints\controlnet\config.json' is not a valid JSON file.
@0A01amir
@0A01amir 4 месяца назад
Have to wait for an official nod to be released, sadly right now, there is none :(
@impactframes
@impactframes 4 месяца назад
Yes but it won't take long this repo is too popular I think someone will make the optimizations needed soon and release them for all.
@0A01amir
@0A01amir 4 месяца назад
@@impactframes I hope so 👍
@chauhandivyansh9416
@chauhandivyansh9416 3 месяца назад
How do I do this on Runpod?
@kira7x2
@kira7x2 4 месяца назад
InstantID is cool a fuck
@impactframes
@impactframes 4 месяца назад
Yes is very 😎 one click one image and it can do all of this. It's amazing.
@andrewq7125
@andrewq7125 4 месяца назад
3060 12 GB Prompt executed in 690.19 seconds - Is it normal?
@impactframes
@impactframes 4 месяца назад
make sure you are using onnxruntime-gpu like I do on min 10:42 if not it might be better to wait for optimiz\ations on this implementation because the memory management might be slowing things down
@andrewq7125
@andrewq7125 4 месяца назад
@@impactframes I'm using onnxruntime-gp.Yes, it might be better to wait for optimizations. Does PhotoMake have the same problem?
@VigneshoViyan
@VigneshoViyan 4 месяца назад
insightface link not working
@impactframes
@impactframes 4 месяца назад
I just try them and they are working
@blender6665
@blender6665 4 месяца назад
Teacher, according to your installation, the ipadater_instantid loader appears: ERROR:root:!!! Exception during processing!!! ERROR:root:Traceback (most recent call last): File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-InstantID\InstantIDNode.py", line 191, in load_ip_adapter_instantid pipe.load_ip_adapter_instantid(face_adapter) File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-InstantID\pipeline_stable_diffusion_xl_instantid.py", line 156, in load_ip_adapter_instantid self.set_image_proj_model(model_ckpt, image_emb_dim, num_tokens) File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-InstantID\pipeline_stable_diffusion_xl_instantid.py", line 174, in set_image_proj_model self.image_proj_model = image_proj_model.to(self.device, dtype=self.dtype) ^^^^^^^^^^ File "F:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\configuration_utils.py", line 137, in __getattr__ raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'StableDiffusionXLInstantIDPipeline' object has no attribute 'dtype' Prompt executed in 0.30 seconds
@impactframes
@impactframes 4 месяца назад
Di you make sure to do all the steps with the installation make sure to watch the whole video for example did you installed Insightface and onnxrunyime-gpu?
@blender6665
@blender6665 4 месяца назад
@@impactframes I solved the 'dtype' problem according to your method, reinstalled 'insightface-0.7.3-cp310-cp310-win_amd64.whl' and then upgraded diffusers from 0.21 to 0.25 and it was solved but torch.cuda.OutOfMemoryError appeared. : CUDA out of memory. So frustrating🤪
@impactframes
@impactframes 4 месяца назад
@@blender6665 somebody else commented here the Nvidia panel has a feature to fallback on system memory >nvdia control panel>manage 3D settings>Cuda system fallback policy>Prefer system fallback. See if that works but I don't know cos this thing hogs so much vram but some people said it works for them
@thewebstylist
@thewebstylist 4 месяца назад
Wow that UI UX no fun
@impactframes
@impactframes 4 месяца назад
That's why I made a video about Enfugue this is UI is more for people to do experiments with SD it allows for a grain control but Enfugue is more for User experience and is very powerful too.
@rendraco
@rendraco 4 месяца назад
I get this error while installing - "ERROR: insightface-0.7.3-cp310-cp310-win_amd64.whl is not a supported wheel on this platform." what wrong am I doing?
@impactframes
@impactframes 4 месяца назад
Maybe you need 3.11 are you on ComfyUI windows portable? Go into your python embedded folder type CMD at the top and do python.exe python --version If you qre on sepqrqte environment just activate your environment .\Scripts\activate.bat and pip install -U insightface
@kattamaran
@kattamaran 4 месяца назад
3080 12 Steps, 7mins
@impactframes
@impactframes 4 месяца назад
Sorry It must be the memory management beetr wait for the optimizations but also make sure you have onnxruntime-gpu and you did all the steps I showed. The video is almost realtime with leosamhelloworld turboLCM model you can see how it changes the generations while I talk specially at the beggining of the video it took no more than 40 seconds for an image many came under 20you can read the stats in the main menu. when I tested it the last one took a long time because it had to load all the models and I was doing other stuff on my computer.
@impactframes
@impactframes 4 месяца назад
make sure you using onnxruntime-gpu like on min 10:42
Далее
The EASIEST ComfyUI Faceswap Workflow! Fast and fun!
8:14
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Просмотров 16 млн
Танцуем с ЛПшкой 😂
00:14
Просмотров 252 тыс.
InstantID for Automatic 1111
6:56
Просмотров 48 тыс.
Шишка на руке 🤯
0:25
Просмотров 2,9 млн