{"id":2421,"date":"2023-12-24T18:24:42","date_gmt":"2023-12-24T18:24:42","guid":{"rendered":"https:\/\/articlefiesta.com\/blog\/?p=2421"},"modified":"2023-12-24T19:40:34","modified_gmt":"2023-12-24T19:40:34","slug":"train-your-own-ai-model-with-your-face-using-sdxl","status":"publish","type":"post","link":"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/","title":{"rendered":"Train Your Own AI Model with Your Face \u2013 SDXL AI Model Training for Headshots"},"content":{"rendered":"\n<p>Quick Links \/ Quick Downloads<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/runpod.io?ref=r9m3wx7i\" data-type=\"link\" data-id=\"https:\/\/runpod.io?ref=r9m3wx7i\">Runpod.io<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/starbyface.com\/\" data-type=\"link\" data-id=\"https:\/\/starbyface.com\/\">Find Your Celebrity Look-a-like<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ArticleFiesta_Image_Caption.py\" data-type=\"link\" data-id=\"ArticleFiesta_Image_Caption.py\">Python Image Captioning Script<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/ArticleFiesta_SDXL_LORA_Training.json\" data-type=\"link\" data-id=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/ArticleFiesta_SDXL_LORA_Training.json\">Koyha SS Preset File<\/a><\/li>\n\n\n\n<li>If Running Locally:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/bmaltais\/kohya_ss\" data-type=\"link\" data-id=\"https:\/\/github.com\/bmaltais\/kohya_ss\">Koyha SS<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/AUTOMATIC1111\/stable-diffusion-webui\" data-type=\"link\" data-id=\"https:\/\/github.com\/AUTOMATIC1111\/stable-diffusion-webui\">Automatic 1111<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Do you hate the idea of spending a fortune on professional headshots? Want to create your own stunning portraits leveraging the power of AI? Today, you&#8217;re in luck! In this comprehensive guide, you&#8217;ll learn AI model training for headshots using SDXL with your own face, harnessing the capabilities of AI without breaking the bank.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-provider-youtube wp-block-embed-youtube\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"AI can make your face for less than $1!\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/kdlnyMg1e3U?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Why_Use_AI_for_Professional_Headshots\" >Why Use AI for Professional Headshots?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Getting_Started_What_Youll_Need\" >Getting Started: What You&#8217;ll Need<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step-by-Step_Guide_to_Training_Your_Model\" >Step-by-Step Guide to Training Your Model<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step_1_Gather_Your_Images\" >Step 1: Gather Your Images<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step_2_Edit_Your_Images\" >Step 2: Edit Your Images<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step_3_Identify_Your_Celebrity_Look-Alike\" >Step 3: Identify Your Celebrity Look-Alike<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step_4_Caption_Your_Images\" >Step 4: Caption Your Images<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step_5_Decide_Between_Local_Training_or_Cloud_Resources\" >Step 5: Decide Between Local Training or Cloud Resources<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step_6_Set_Up_Your_Training_Environment\" >Step 6: Set Up Your Training Environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step_7_Data_Set_Preparation\" >Step 7: Data Set Preparation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Step_8_Train_Your_Model\" >Step 8: Train Your Model<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Now_Use_Your_Model\" >Now Use Your Model<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Advantages_of_Using_AI_for_Professional_Headshots\" >Advantages of Using AI for Professional Headshots<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Running_Locally_vs_Using_Cloud_Resources\" >Running Locally vs. Using Cloud Resources<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/articlefiesta.com\/blog\/en\/train-your-own-ai-model-with-your-face-using-sdxl\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Use_AI_for_Professional_Headshots\"><\/span>Why Use AI for Professional Headshots?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Professional photographers and design services can cost anywhere from $25 to $155, or more. However, with advancements in artificial intelligence, you can create a high-quality headshot by training a model with your own images. If you have a decent computer or access to cloud resources, you could complete this task for less than a dollar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Getting_Started_What_Youll_Need\"><\/span>Getting Started: What You&#8217;ll Need<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>High-quality images of yourself.<\/li>\n\n\n\n<li>MS Paint or a similar image editing software.<\/li>\n\n\n\n<li><a href=\"https:\/\/runpod.io?ref=r9m3wx7i\" data-type=\"link\" data-id=\"https:\/\/runpod.io?ref=r9m3wx7i\">RunPod.io<\/a> account or a powerful local machine.<\/li>\n\n\n\n<li>A little patience and creativity.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-by-Step_Guide_to_Training_Your_Model\"><\/span>Step-by-Step Guide to Training Your Model<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Gather_Your_Images\"><\/span>Step 1: Gather Your Images<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"656\" height=\"420\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image.png\" alt=\"Select your images\" class=\"wp-image-2422\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image.png 656w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-300x192.png 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/figure>\n\n\n\n<p>Start by selecting several high-quality images of yourself. It&#8217;s crucial to have a diverse set that includes various angles and expressions. Remove any unwanted elements from the photos through cropping.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Edit_Your_Images\"><\/span>Step 2: Edit Your Images<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Use a simple tool like MS Paint to edit the images. Exclude any additional subjects from the photos and adjust them to focus solely on the desired subject \u2013 you! Delete any that aren&#8217;t high quality or have things obscuring your face (such as sunglasses)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Identify_Your_Celebrity_Look-Alike\"><\/span>Step 3: Identify Your Celebrity Look-Alike<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Utilize a service such as <a href=\"https:\/\/starbyface.com\/\" data-type=\"link\" data-id=\"https:\/\/starbyface.com\/\">StarByFace<\/a> to find a celebrity that resembles you. This step will help the AI model understand the look you&#8217;re aiming for, making the training process more efficient. It&#8217;s much easier to &#8220;improve&#8221; the training of a model based on something that&#8217;s in its knowledge base already rather than training from scratch. Think if someone tells you about an &#8216;WzzzYi&#8217;. You have no idea what that is, but if you are then told its similar to an BMW car, you instantly have something in your mind to base your predictions from, AI works in the same way.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" width=\"936\" height=\"1024\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1-936x1024.jpg\" alt=\"Find your lookalike celebrity\" class=\"wp-image-2423\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1-936x1024.jpg 936w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1-274x300.jpg 274w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1-768x840.jpg 768w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1.jpg 1189w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Caption_Your_Images\"><\/span>Step 4: Caption Your Images<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Describing each image effectively is essential for training the AI. Use tools like GPT Vision to generate descriptive captions or write them manually, focusing on details like posture, clothing, and surroundings. Here&#8217;s an example of a caption we could use, try to be as descriptive as possible.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>man sitting at an outdoor table, short hair, white t-shirt, beer glass on table, daytime, casual setting, neutral expression, textured wall background, close-up shot<\/p>\n<\/blockquote>\n\n\n\n<p>Here is the python script I use in the video to quickly generate captions for all the images, you don&#8217;t need to use this, but it can save you time:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nimport base64\nimport requests\n\n# OpenAI API Key\napi_key = \"sk-SET_ME_WITH_YOUR_API_KEY\"\n\n\n# Function to encode the image\ndef encode_image(image_path):\n    with open(image_path, \"rb\") as image_file:\n        return base64.b64encode(image_file.read()).decode(\"utf-8\")\n\n\ndef caption_image(image_path):\n    # Getting the base64 string\n    base64_image = encode_image(image_path)\n    headers = {\"Content-Type\": \"application\/json\", \"Authorization\": f\"Bearer {api_key}\"}\n    payload = {\n        \"model\": \"gpt-4-vision-preview\",\n        \"messages\": &#91;\n\n            {\n                \"role\": \"user\",\n                \"content\": &#91;\n                    {\n                        \"type\": \"text\",\n                        \"text\": \"I want to create a similar image to this using SDXL (stable diffusion), what description should I use? Reply with only input I would need, separating with commas.\",\n                    },\n                    {\n                        \"type\": \"image_url\",\n                        \"image_url\": {\"url\": f\"data:image\/jpeg;base64,{base64_image}\"},\n                    },\n                ],\n            }\n        ],\n        \"max_tokens\": 300,\n        \"temperature\": 0,\n    }\n    response = requests.post(\n        \"https:\/\/api.openai.com\/v1\/chat\/completions\", headers=headers, json=payload\n    )\n\n    response_json = response.json()\n    if \"error\" in response_json:\n        print(\"Error:\", response_json&#91;\"error\"])\n        return None\n\n    result = response_json&#91;\"choices\"]&#91;0]&#91;\"message\"]&#91;\"content\"]\n    print(result)\n    return result\n\n\ndef main():\n    # NOTE CHANGE THIS PATH TO WHERE YOUR IMAGES ARE\n    folder_path = \"C:\\\\kohya_ss\\\\caption_me\\\\me\"\n    all_images = os.listdir(folder_path)\n    for image in all_images:\n        if image.endswith(\".txt\"):\n            continue\n        print(\"Captioning\", image)\n        caption = caption_image(os.path.join(folder_path, image))\n        if caption is None:\n            continue\n        with open(os.path.join(folder_path, f\"{image}.txt\"), \"w\") as f:\n            f.write(caption)\n    print(\"Done\")\n\n\nif __name__ == \"__main__\":\n    main()\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Decide_Between_Local_Training_or_Cloud_Resources\"><\/span>Step 5: Decide Between Local Training or Cloud Resources<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Depending on your computer&#8217;s power, you can run the training locally or use a cloud service. For example, RunPod.io offers a cost-effective solution, providing you with virtual access to powerful hardware.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_6_Set_Up_Your_Training_Environment\"><\/span>Step 6: Set Up Your Training Environment<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>On RunPod.io, you can set up an environment that includes a robust GPU and ample RAM to facilitate the AI training. Select the appropriate templates and deployment options based on your preference and budget.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"463\" height=\"228\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3.png\" alt=\"Template to use\" class=\"wp-image-2436\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3.png 463w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-300x148.png 300w\" sizes=\"(max-width: 463px) 100vw, 463px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"328\" height=\"248\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-4.png\" alt=\"Instance settings\" class=\"wp-image-2437\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-4.png 328w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-4-300x227.png 300w\" sizes=\"(max-width: 328px) 100vw, 328px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_7_Data_Set_Preparation\"><\/span>Step 7: Data Set Preparation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Upload your images to the training platform and specify your celebrity look-alike. You can use the Jupyter notebook to make this easier. This will create a tailored training set for your AI model. Ensure your chosen celebrity is featured within the stable diffusion model&#8217;s data for effective results.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"899\" height=\"720\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1.png\" alt=\"Upload your files\" class=\"wp-image-2424\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1.png 899w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1-300x240.png 300w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-1-768x615.png 768w\" sizes=\"(max-width: 899px) 100vw, 899px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_8_Train_Your_Model\"><\/span>Step 8: Train Your Model<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Using Koyha SS, first we want to set up our folders. Under the LORA tab, click on data preperation, in here we want to use our celebrity name and class name we found earlier:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"583\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-1024x583.jpg\" alt=\"Koyha SS screenshot\" class=\"wp-image-2440\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-1024x583.jpg 1024w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-300x171.jpg 300w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-768x437.jpg 768w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-1536x874.jpg 1536w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5.jpg 1617w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After you&#8217;ve done this, use the preset file linked above and set up the folder structure. I go through this quite thoroughly in the video if you are struggling.<\/p>\n\n\n\n<p>Everything should be mostly done for you thanks to that preset file. Then initiate the training process, monitor the progress (&#8220;tail -f \/workspace\/logs\/koyha_ss.log&#8221; in Jupyter console tab), and adjust settings if necessary. By the end of this process, you should have a unique AI model that can generate professional headshots with your likeness.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"90\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-2.png\" alt=\"Start training\" class=\"wp-image-2425\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-2.png 835w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-2-300x32.png 300w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-2-768x83.png 768w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Now_Use_Your_Model\"><\/span>Now Use Your Model<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Import the Lora into the Automatic 1111 Stable Diffusion GUI (it lives under stablediffusion-ui\/models\/Lora) and now you can include it in your generations. You&#8217;ll find any trained LORA&#8217;s you have under the LORA tab, although if you had none to begin with you may need to restart Automatic 1111 for it to pick up, annoyingly it has no refresh button unless it had 1 file in there to begin with.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"873\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-1.jpg\" alt=\"Using loras in automatic 1111 stable diffusion web ui\" class=\"wp-image-2441\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-1.jpg 953w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-1-300x275.jpg 300w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-5-1-768x704.jpg 768w\" sizes=\"(max-width: 953px) 100vw, 953px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"658\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3.jpg\" alt=\"Generate some results!\" class=\"wp-image-2426\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3.jpg 657w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-300x300.jpg 300w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-150x150.jpg 150w\" sizes=\"(max-width: 657px) 100vw, 657px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"334\" height=\"661\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-1.jpg\" alt=\"Generate some results!\" class=\"wp-image-2427\" style=\"width:437px;height:auto\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-1.jpg 334w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-1-152x300.jpg 152w\" sizes=\"(max-width: 334px) 100vw, 334px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"439\" height=\"430\" src=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-2.jpg\" alt=\"Generate some results!\" class=\"wp-image-2428\" srcset=\"https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-2.jpg 439w, https:\/\/articlefiesta.com\/blog\/wp-content\/uploads\/2023\/12\/image-3-2-300x294.jpg 300w\" sizes=\"(max-width: 439px) 100vw, 439px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Advantages_of_Using_AI_for_Professional_Headshots\"><\/span>Advantages of Using AI for Professional Headshots<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Cost-Effective<\/strong>: Tremendous savings compared to hiring professional services.<\/li>\n\n\n\n<li><strong>Personalization<\/strong>: Greater control over how you want to be presented.<\/li>\n\n\n\n<li><strong>Scalability<\/strong>: Ability to create multiple headshots without additional costs.<\/li>\n\n\n\n<li><strong>Accessibility<\/strong>: Do it yourself, anytime, anywhere.<\/li>\n\n\n\n<li><strong>Future-Proof<\/strong>: No need to worry about hardware being outdated; cloud services continuously upgrade their offerings.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Running_Locally_vs_Using_Cloud_Resources\"><\/span>Running Locally vs. Using Cloud Resources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you prefer running the training locally, ensure your machine has the necessary specifications. Alternatively, cloud resources like RunPod.io offer great flexibility and often come pre-configured, saving you the hassle of setup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Training an AI model to create your own professional headshots is both feasible and accessible. With a fraction of the cost and a bit of technical know-how, you can produce high-resolution images that fit your personal or professional needs. Whether you opt for local training or cloud resources, AI opens up a world of possibilities for personalized headshot creation. Give it a try, and you might just surprise yourself with the results!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>With these steps, you&#8217;re ready to embark on a cost-saving adventure in AI-generated imagery. Unleash your creativity, learn more about AI, and step up your personal branding game all at the same time!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Crafting stunning AI-generated headshots for under $1! Dive into our easy guide to AI model training for headshots.<\/p>\n","protected":false},"author":1,"featured_media":2429,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[132],"tags":[3,108,687,686],"class_list":["post-2421","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-content-generation","tag-ai","tag-content-creation","tag-image-generation","tag-sdxl"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/posts\/2421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/comments?post=2421"}],"version-history":[{"count":8,"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/posts\/2421\/revisions"}],"predecessor-version":[{"id":2706,"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/posts\/2421\/revisions\/2706"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/media\/2429"}],"wp:attachment":[{"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/media?parent=2421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/categories?post=2421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/articlefiesta.com\/blog\/wp-json\/wp\/v2\/tags?post=2421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}