{"id":153,"date":"2024-02-10T21:38:20","date_gmt":"2024-02-10T21:38:20","guid":{"rendered":"https:\/\/zahiralam.com\/blog\/?p=153"},"modified":"2024-11-04T09:09:05","modified_gmt":"2024-11-04T09:09:05","slug":"unleash-your-creativity-installing-stable-diffusion-webui-forge-on-mac-using-conda","status":"publish","type":"post","link":"https:\/\/zahiralam.com\/blog\/unleash-your-creativity-installing-stable-diffusion-webui-forge-on-mac-using-conda\/","title":{"rendered":"Unleash Your Creativity: Installing Stable Diffusion WebUI Forge on Mac using Conda"},"content":{"rendered":"\n<p>Stable Diffusion WebUI Forge opens the door to a world of artistic possibilities, and you can embark on this journey using Conda on your Mac. This guide will walk you through the setup step-by-step, guiding you from creating a Conda environment to generating breathtaking images.\n\n\n\n<p><strong>Quick Tip<\/strong>: Before diving into this guide, check out how to supercharge your creations with FLUX.1-dev on Mac. It\u2019s the go-to model for producing high-quality visuals. Explore the full tutorial here:\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-zahirs-blog wp-block-embed-zahirs-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"YJDTr9tl3J\"><a href=\"https:\/\/zahiralam.com\/blog\/installing-flux-1-dev-on-mac-a-webui-forge-guide-for-image-creators\/\">Installing FLUX.1-dev on Mac: A WebUI Forge Guide for Image Creators<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Installing FLUX.1-dev on Mac: A WebUI Forge Guide for Image Creators&#8221; &#8212; Zahirs Blog\" src=\"https:\/\/zahiralam.com\/blog\/installing-flux-1-dev-on-mac-a-webui-forge-guide-for-image-creators\/embed\/#?secret=2qnYBp5iVH#?secret=YJDTr9tl3J\" data-secret=\"YJDTr9tl3J\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Before we begin:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure you have&nbsp;<strong>Conda<\/strong>&nbsp;installed on your Mac. Download and follow the instructions from :&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.conda.io\/en\/latest\/miniconda.html\" target=\"_blank\">https:\/\/zahiralam.com\/blog\/conda-installation-on-apple-silicon-mac-simplified-step-by-step-instructions\/<\/a><\/li>\n\n\n\n<li>This process may require administrator privileges, so be prepared to enter your password when prompted.<\/li>\n<\/ul>\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\">Let&#8217;s dive in!<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create a Conda environment:<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Open your terminal and type the following command to create a new environment named <code>webui-forge<\/code> with Python 3.10:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-1\">conda create -n webui-forge python=3.10<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#conda%20create%20-n%20webui-forge%20python%3D3.10\">\n                            <button class=\"copy-button\" data-label=\"conda create -n webui-forge python=3.10\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li><strong>Activate the environment:<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Activate the newly created environment by running:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-2\">conda activate webui-forge<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#conda%20activate%20webui-forge\">\n                            <button class=\"copy-button\" data-label=\"conda activate webui-forge\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li><strong>Clone the Stable Diffusion WebUI Forge repository:<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Use the <code>git<\/code> command to clone the repository into your local environment:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-3\">git clone https:\/\/github.com\/lllyasviel\/stable-diffusion-webui-forge.git<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#git%20clone%20https%3A%2F%2Fgithub.com%2Flllyasviel%2Fstable-diffusion-webui-forge.git\">\n                            <button class=\"copy-button\" data-label=\"git clone https:\/\/github.com\/lllyasviel\/stable-diffusion-webui-forge.git\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Navigate to the project directory:<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Change your directory to the cloned repository folder:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-4\">cd stable-diffusion-webui-forge<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#cd%20stable-diffusion-webui-forge\">\n                            <button class=\"copy-button\" data-label=\"cd stable-diffusion-webui-forge\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li><strong>Start the installation:<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Run the provided script to initiate the installation process:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-5\">.\/webui.sh --always-cpu --skip-torch-cuda-test<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#.%2Fwebui.sh%20--always-cpu%20--skip-torch-cuda-test\">\n                            <button class=\"copy-button\" data-label=\".\/webui.sh --always-cpu --skip-torch-cuda-test\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Troubleshooting Common Issues<\/strong><\/h2>\n\n\n\n<p>If you encounter an error related to missing dependencies, such as:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-6\">ModuleNotFoundError: No module named &#039;fastapi&#039;<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#ModuleNotFoundError%3A%20No%20module%20named%20%27fastapi%27\">\n                            <button class=\"copy-button\" data-label=\"ModuleNotFoundError: No module named &#039;fastapi&#039;\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>This indicates that\u00a0<code>fastapi<\/code>\u00a0is missing from your environment. To resolve it, simply install\u00a0<code>fastapi<\/code>\u00a0within the\u00a0<code>webui-forge<\/code>\u00a0environment:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-7\">conda install fastapi -n webui-forge<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#conda%20install%20fastapi%20-n%20webui-forge\">\n                            <button class=\"copy-button\" data-label=\"conda install fastapi -n webui-forge\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>Once installed, rerun the command:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-8\">.\/webui.sh --always-cpu --skip-torch-cuda-test<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#.%2Fwebui.sh%20--always-cpu%20--skip-torch-cuda-test\">\n                            <button class=\"copy-button\" data-label=\".\/webui.sh --always-cpu --skip-torch-cuda-test\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>Following these steps should ensure all necessary dependencies are in place for a smooth setup.\n\n\n\n<h2 class=\"wp-block-heading\">Important notes:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The installation process can take some time, depending on your internet speed and system resources. Be patient and let it complete.<\/li>\n\n\n\n<li>You might be prompted to download additional dependencies during the installation. Follow the instructions provided on screen.<\/li>\n\n\n\n<li>Once the installation finishes, you can access the WebUI by opening <strong>http:\/\/127.0.0.1:7860\/<\/strong> in your web browser.<\/li>\n<\/ul>\n\n\n\n<p>\n\n\n\n<p><strong>Congratulations!<\/strong> You&#8217;ve successfully installed Stable Diffusion WebUI Forge on your Mac using Conda. Now, the world of AI-powered image generation awaits your exploration. Remember to download Stable Diffusion models separately and place them in the designated directory for them to work with the WebUI.\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional tips:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Consider using a dedicated GPU for optimal performance, especially when dealing with larger models and complex prompts.<\/li>\n\n\n\n<li>Explore the extensive documentation and community resources available online for troubleshooting and discovering exciting features.<\/li>\n\n\n\n<li>Be responsible and creative with your AI-generated art!<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Stable Diffusion WebUI Forge opens the door to a world of artistic possibilities, and you can embark on this journey using Conda on your Mac. [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":736,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[36,17,37,38],"class_list":["post-153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-artificial-intelligence","tag-conda","tag-mac-m1-m2-m3","tag-stable-diffusion","tag-webui-forge"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":19,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":1404,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/153\/revisions\/1404"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media\/736"}],"wp:attachment":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}