You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
####Using PhotoMaker to personalize image generation
308
308
309
-
You can use[PhotoMaker](https://github.com/TencentARC/PhotoMaker) to personalize generated images with your own ID.
309
+
You can use[PhotoMaker](https://github.com/TencentARC/PhotoMaker) to personalize generated images with your own ID.
310
310
311
311
**NOTE**, currently PhotoMaker**ONLY** works with**SDXL** (any SDXL model files will work).
312
312
313
313
Download PhotoMaker model file (in safetensor format)[here](https://huggingface.co/bssrdf/PhotoMaker). The official release of the model file (in .bin format) does not work with```stablediffusion.cpp```.
314
314
315
-
- Specify the PhotoMaker model path using the`--stacked-id-embd-dir PATH` parameter.
316
-
- Specify the input images path using the`--input-id-images-dir PATH` parameter.
315
+
- Specify the PhotoMaker model path using the`--stacked-id-embd-dir PATH` parameter.
316
+
- Specify the input images path using the`--input-id-images-dir PATH` parameter.
317
317
- input images**must** have the same width and height for preprocessing (to be improved)
318
318
319
319
In prompt, make sure you have a class word followed by the trigger word```"img"``` (hard-coded for now). The class word could be one of```"man, woman, girl, boy"```. If input ID images contain asian faces, add```Asian``` before the class
@@ -367,6 +367,12 @@ These projects wrap `stable-diffusion.cpp` for easier use in other languages/fra