{"id":124,"date":"2024-10-09T11:11:34","date_gmt":"2024-10-09T11:11:34","guid":{"rendered":"https:\/\/fdel.moe\/blog\/?p=124"},"modified":"2024-10-09T11:11:36","modified_gmt":"2024-10-09T11:11:36","slug":"ai-image-generator","status":"publish","type":"post","link":"https:\/\/fdel.moe\/blog\/2024\/10\/09\/ai-image-generator\/","title":{"rendered":"AI Image generator"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Copied from Git Hub <a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#download\">https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#download<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\">lllyasviel<\/a>\/<strong><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\">Fooocus<\/a><\/strong>Public<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Focus on prompting and generating<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">License<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/LICENSE\">&nbsp;GPL-3.0 license<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">lllyasviel\/Fooocus<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"folders-and-files\">Folders and files<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th colspan=\"2\">Name<\/th><th><\/th><\/tr><\/thead><tbody><tr><td colspan=\"3\">Latest commit<a href=\"https:\/\/github.com\/lllyasviel\"><\/a><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/commits?author=lllyasviel\">lllyasviel<\/a>2 months agoHistory<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/commits\/main\/\"><\/a><\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/.github\">.github<\/a><\/td><td>2 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/css\">css<\/a><\/td><td>3 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/extras\">extras<\/a><\/td><td>2 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/javascript\">javascript<\/a><\/td><td>3 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/language\">language<\/a><\/td><td>2 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/ldm_patched\">ldm_patched<\/a><\/td><td>2 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/models\">models<\/a><\/td><td>5 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/modules\">modules<\/a><\/td><td>2 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/presets\">presets<\/a><\/td><td>3 months ago<\/td><\/tr><tr><td colspan=\"2\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/tree\/main\/sdxl_styles\">sdxl_styles<\/a><\/td><td>3 months ago<\/td><\/tr><tr><td colspan=\"3\">View all files<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Repository files navigation<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#\">README<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#\">GPL-3.0 license<\/a><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/278888447-483fb86d-c9a2-4c20-997c-46dafc124f25.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNzg4ODg0NDctNDgzZmI4NmQtYzlhMi00YzIwLTk5N2MtNDZkYWZjMTI0ZjI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5MDkwZjRkMGM1MGZmZTEzMjk0NmJmOGUyMTdiYTM3NTU4ODhjOWRiYThmMzBkMDliYzdhOTc2YzM3MzMzY2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.txZ0V7pOTLkSdWIzphHVKaKBsW2PnzO9QLEqU59wm94\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/278888447-483fb86d-c9a2-4c20-997c-46dafc124f25.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNzg4ODg0NDctNDgzZmI4NmQtYzlhMi00YzIwLTk5N2MtNDZkYWZjMTI0ZjI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5MDkwZjRkMGM1MGZmZTEzMjk0NmJmOGUyMTdiYTM3NTU4ODhjOWRiYThmMzBkMDliYzdhOTc2YzM3MzMzY2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.txZ0V7pOTLkSdWIzphHVKaKBsW2PnzO9QLEqU59wm94\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Fooocus<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#fooocus\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#download\">&gt;&gt;&gt; Click Here to Install Fooocus &lt;&lt;&lt;<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fooocus is an image generating software (based on&nbsp;<a href=\"https:\/\/www.gradio.app\/\">Gradio<\/a>&nbsp;<a href=\"https:\/\/github.com\/gradio-app\/gradio\"><\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fooocus presents a rethinking of image generator designs. The software is offline, open source, and free, while at the same time, similar to many online image generators like Midjourney, the manual tweaking is not needed, and users only need to focus on the prompts and images. Fooocus has also simplified the installation: between pressing &#8220;download&#8221; and generating the first image, the number of needed mouse clicks is strictly limited to less than 3. Minimal GPU memory requirement is 4GB (Nvidia).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Recently many fake websites exist on Google when you search \u201cfooocus\u201d. Do not trust those \u2013 here is the only official source of Fooocus.<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Project Status: Limited Long-Term Support (LTS) with Bug Fixes Only<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#project-status-limited-long-term-support-lts-with-bug-fixes-only\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Fooocus project, built entirely on the&nbsp;<strong>Stable Diffusion XL<\/strong>&nbsp;architecture, is now in a state of limited long-term support (LTS) with bug fixes only. As the existing functionalities are considered as nearly free of programmartic issues (Thanks to&nbsp;<a href=\"https:\/\/github.com\/mashb1t\">mashb1t<\/a>&#8216;s huge efforts), future updates will focus exclusively on addressing any bugs that may arise.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>There are no current plans to migrate to or incorporate newer model architectures.<\/strong>&nbsp;However, this may change during time with the development of open-source community. For example, if the community converge to one single dominant method for image generation (which may really happen in half or one years given the current status), Fooocus may also migrate to that exact method.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For those interested in utilizing newer models such as&nbsp;<strong>Flux<\/strong>, we recommend exploring alternative platforms such as&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/stable-diffusion-webui-forge\">WebUI Forge<\/a>&nbsp;(also from us),&nbsp;<a href=\"https:\/\/github.com\/comfyanonymous\/ComfyUI\">ComfyUI\/SwarmUI<\/a>. Additionally, several&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#forks\">excellent forks of Fooocus<\/a>&nbsp;are available for experimentation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Again, recently many fake websites exist on Google when you search \u201cfooocus\u201d. Do&nbsp;<strong>NOT<\/strong>&nbsp;get Fooocus from those websites \u2013 this page is the only official source of Fooocus. We never have any website like such as \u201cfooocus.com\u201d, \u201cfooocus.net\u201d, \u201cfooocus.co\u201d, \u201cfooocus.ai\u201d, \u201cfooocus.org\u201d, \u201cfooocus.pro\u201d, \u201cfooocus.one\u201d. Those websites are ALL FAKE.&nbsp;<strong>They have ABSOLUTLY no relationship to us. Fooocus is a 100% non-commercial offline open-source software.<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Features<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#features\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below is a quick list using Midjourney&#8217;s examples:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Midjourney<\/th><th>Fooocus<\/th><\/tr><\/thead><tbody><tr><td>High-quality text-to-image without needing much prompt engineering or parameter tuning.<br>(Unknown method)<\/td><td>High-quality text-to-image without needing much prompt engineering or parameter tuning.<br>(Fooocus has an offline GPT-2 based prompt processing engine and lots of sampling improvements so that results are always beautiful, no matter if your prompt is as short as \u201chouse in garden\u201d or as long as 1000 words)<\/td><\/tr><tr><td>V1 V2 V3 V4<\/td><td>Input Image -&gt; Upscale or Variation -&gt; Vary (Subtle) \/ Vary (Strong)<\/td><\/tr><tr><td>U1 U2 U3 U4<\/td><td>Input Image -&gt; Upscale or Variation -&gt; Upscale (1.5x) \/ Upscale (2x)<\/td><\/tr><tr><td>Inpaint \/ Up \/ Down \/ Left \/ Right (Pan)<\/td><td>Input Image -&gt; Inpaint or Outpaint -&gt; Inpaint \/ Up \/ Down \/ Left \/ Right<br>(Fooocus uses its own inpaint algorithm and inpaint models so that results are more satisfying than all other software that uses standard SDXL inpaint method\/model)<\/td><\/tr><tr><td>Image Prompt<\/td><td>Input Image -&gt; Image Prompt<br>(Fooocus uses its own image prompt algorithm so that result quality and prompt understanding are more satisfying than all other software that uses standard SDXL methods like standard IP-Adapters or Revisions)<\/td><\/tr><tr><td>&#8211;style<\/td><td>Advanced -&gt; Style<\/td><\/tr><tr><td>&#8211;stylize<\/td><td>Advanced -&gt; Advanced -&gt; Guidance<\/td><\/tr><tr><td>&#8211;niji<\/td><td><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/discussions\/679\">Multiple launchers: &#8220;run.bat&#8221;, &#8220;run_anime.bat&#8221;, and &#8220;run_realistic.bat&#8221;.<\/a><br>Fooocus support SDXL models on Civitai<br>(You can google search \u201cCivitai\u201d if you do not know about it)<\/td><\/tr><tr><td>&#8211;quality<\/td><td>Advanced -&gt; Quality<\/td><\/tr><tr><td>&#8211;repeat<\/td><td>Advanced -&gt; Image Number<\/td><\/tr><tr><td>Multi Prompts (::)<\/td><td>Just use multiple lines of prompts<\/td><\/tr><tr><td>Prompt Weights<\/td><td>You can use &#8221; I am (happy:1.5)&#8221;.<br>Fooocus uses A1111&#8217;s reweighting algorithm so that results are better than ComfyUI if users directly copy prompts from Civitai. (Because if prompts are written in ComfyUI&#8217;s reweighting, users are less likely to copy prompt texts as they prefer dragging files)<br>To use embedding, you can use &#8220;(embedding:file_name:1.1)&#8221;<\/td><\/tr><tr><td>&#8211;no<\/td><td>Advanced -&gt; Negative Prompt<\/td><\/tr><tr><td>&#8211;ar<\/td><td>Advanced -&gt; Aspect Ratios<\/td><\/tr><tr><td>InsightFace<\/td><td>Input Image -&gt; Image Prompt -&gt; Advanced -&gt; FaceSwap<\/td><\/tr><tr><td>Describe<\/td><td>Input Image -&gt; Describe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Below is a quick list using LeonardoAI&#8217;s examples:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>LeonardoAI<\/th><th>Fooocus<\/th><\/tr><\/thead><tbody><tr><td>Prompt Magic<\/td><td>Advanced -&gt; Style -&gt; Fooocus V2<\/td><\/tr><tr><td>Advanced Sampler Parameters (like Contrast\/Sharpness\/etc)<\/td><td>Advanced -&gt; Advanced -&gt; Sampling Sharpness \/ etc<\/td><\/tr><tr><td>User-friendly ControlNets<\/td><td>Input Image -&gt; Image Prompt -&gt; Advanced<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Also,&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/discussions\/117\">click here to browse the advanced features.<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Download<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#download\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Windows<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#windows\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can directly download Fooocus with:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/releases\/download\/v2.5.0\/Fooocus_win64_2-5-0.7z\">&gt;&gt;&gt; Click here to download &lt;&lt;&lt;<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After you download the file, please uncompress it and then run the &#8220;run.bat&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/260325783-c49269c4-c274-4893-b368-047c401cc58c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNjAzMjU3ODMtYzQ5MjY5YzQtYzI3NC00ODkzLWIzNjgtMDQ3YzQwMWNjNThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTliZjc4Nzk5ZDAyNGFjYTk2YTFiMDVjYTVkNzY3YjU2ZmU4OTMzODExNDZlNDA1MmYzYjljZWQ3ZjVkYmI0YmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4afaunQlLAfDmwk4dAyGDgRlOvbRqX6iUH8-WJ8z-2s\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/260325783-c49269c4-c274-4893-b368-047c401cc58c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNjAzMjU3ODMtYzQ5MjY5YzQtYzI3NC00ODkzLWIzNjgtMDQ3YzQwMWNjNThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTliZjc4Nzk5ZDAyNGFjYTk2YTFiMDVjYTVkNzY3YjU2ZmU4OTMzODExNDZlNDA1MmYzYjljZWQ3ZjVkYmI0YmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4afaunQlLAfDmwk4dAyGDgRlOvbRqX6iUH8-WJ8z-2s\" alt=\"image\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The first time you launch the software, it will automatically download models:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It will download\u00a0<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#models\">default models<\/a>\u00a0to the folder &#8220;Fooocus\\models\\checkpoints&#8221; given different presets. You can download them in advance if you do not want automatic download.<\/li>\n\n\n\n<li>Note that if you use inpaint, at the first time you inpaint an image, it will download\u00a0<a href=\"https:\/\/huggingface.co\/lllyasviel\/fooocus_inpaint\/resolve\/main\/inpaint_v26.fooocus.patch\">Fooocus&#8217;s own inpaint control model from here<\/a>\u00a0as the file &#8220;Fooocus\\models\\inpaint\\inpaint_v26.fooocus.patch&#8221; (the size of this file is 1.28GB).<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">After Fooocus 2.1.60, you will also have&nbsp;<code>run_anime.bat<\/code>&nbsp;and&nbsp;<code>run_realistic.bat<\/code>. They are different model presets (and require different models, but they will be automatically downloaded).&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/discussions\/679\">Check here for more details<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After Fooocus 2.3.0 you can also switch presets directly in the browser. Keep in mind to add these arguments if you want to change the default behavior:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use\u00a0<code>--disable-preset-selection<\/code>\u00a0to disable preset selection in the browser.<\/li>\n\n\n\n<li>Use\u00a0<code>--always-download-new-model<\/code>\u00a0to download missing models on preset switch. Default is fallback to\u00a0<code>previous_default_models<\/code>\u00a0defined in the corresponding preset, also see terminal output.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/260323110-d386f817-4bd7-490c-ad89-c1e228c23447.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNjAzMjMxMTAtZDM4NmY4MTctNGJkNy00OTBjLWFkODktYzFlMjI4YzIzNDQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2MWY0ZjcyM2IzYzIwMzAwOThkZTA4ZDY4MmQzMzI2MzU5NGQzNzFjNTMyYzlkY2Y4YmNhNjcwNGU4ZTUxMWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.H8EagkTW8NubRBld9PTy1RTuRtfhwp8XvDzZHZOiqDE\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/260323110-d386f817-4bd7-490c-ad89-c1e228c23447.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNjAzMjMxMTAtZDM4NmY4MTctNGJkNy00OTBjLWFkODktYzFlMjI4YzIzNDQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2MWY0ZjcyM2IzYzIwMzAwOThkZTA4ZDY4MmQzMzI2MzU5NGQzNzFjNTMyYzlkY2Y4YmNhNjcwNGU4ZTUxMWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.H8EagkTW8NubRBld9PTy1RTuRtfhwp8XvDzZHZOiqDE\" alt=\"image\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you already have these files, you can copy them to the above locations to speed up installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that if you see&nbsp;<strong>&#8220;MetadataIncompleteBuffer&#8221; or &#8220;PytorchStreamReader&#8221;<\/strong>, then your model files are corrupted. Please download models again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below is a test on a relatively low-end laptop with&nbsp;<strong>16GB System RAM<\/strong>&nbsp;and&nbsp;<strong>6GB VRAM<\/strong>&nbsp;(Nvidia 3060 laptop). The speed on this machine is about 1.35 seconds per iteration. Pretty impressive \u2013 nowadays laptops with 3060 are usually at very acceptable price.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/260322896-938737a5-b105-4f19-b051-81356cb7c495.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNjAzMjI4OTYtOTM4NzM3YTUtYjEwNS00ZjE5LWIwNTEtODEzNTZjYjdjNDk1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwYTFjNTA0Mjc0ZmMzY2ZkNmRjNjYyMTg0ZWM1MzZiNzRlMGRlMmY0MjE0ZjM1OGZjMzhlMGVmZmQ1OTg1Y2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bsVj9WR1_sKXtwx-gDApdhOhRIzjFzHVViSzTmC9XUg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/260322896-938737a5-b105-4f19-b051-81356cb7c495.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNjAzMjI4OTYtOTM4NzM3YTUtYjEwNS00ZjE5LWIwNTEtODEzNTZjYjdjNDk1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwYTFjNTA0Mjc0ZmMzY2ZkNmRjNjYyMTg0ZWM1MzZiNzRlMGRlMmY0MjE0ZjM1OGZjMzhlMGVmZmQ1OTg1Y2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bsVj9WR1_sKXtwx-gDApdhOhRIzjFzHVViSzTmC9XUg\" alt=\"image\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Besides, recently many other software report that Nvidia driver above 532 is sometimes 10x slower than Nvidia driver 531. If your generation time is very long, consider download&nbsp;<a href=\"https:\/\/www.nvidia.com\/download\/driverResults.aspx\/199991\/en-us\/\">Nvidia Driver 531 Laptop<\/a>&nbsp;or&nbsp;<a href=\"https:\/\/www.nvidia.com\/download\/driverResults.aspx\/199990\/en-us\/\">Nvidia Driver 531 Desktop<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the minimal requirement is&nbsp;<strong>4GB Nvidia GPU memory (4GB VRAM)<\/strong>&nbsp;and&nbsp;<strong>8GB system memory (8GB RAM)<\/strong>. This requires using Microsoft\u2019s Virtual Swap technique, which is automatically enabled by your Windows installation in most cases, so you often do not need to do anything about it. However, if you are not sure, or if you manually turned it off (would anyone really do that?), or&nbsp;<strong>if you see any &#8220;RuntimeError: CPUAllocator&#8221;<\/strong>, you can enable it here:Click here to see the image instructions.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/260322660-2a06b130-fe9b-4504-94f1-2763be4476e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNjAzMjI2NjAtMmEwNmIxMzAtZmU5Yi00NTA0LTk0ZjEtMjc2M2JlNDQ3NmU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJiYWU0YTRhYWM2NTBmMjczMGQyNWE2OTk3ZDc3N2ZlMTRkOTg0YmU4YTIyMjJkYjVmMWY4NmQ4YTk4YTU1ZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TZSiTxoIrrHfhWPisAyjENEuTSg4zjpvX56CMEX9TJs\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/private-user-images.githubusercontent.com\/19834515\/260322660-2a06b130-fe9b-4504-94f1-2763be4476e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjg0NzE5NzEsIm5iZiI6MTcyODQ3MTY3MSwicGF0aCI6Ii8xOTgzNDUxNS8yNjAzMjI2NjAtMmEwNmIxMzAtZmU5Yi00NTA0LTk0ZjEtMjc2M2JlNDQ3NmU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDA5VDExMDExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJiYWU0YTRhYWM2NTBmMjczMGQyNWE2OTk3ZDc3N2ZlMTRkOTg0YmU4YTIyMjJkYjVmMWY4NmQ4YTk4YTU1ZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TZSiTxoIrrHfhWPisAyjENEuTSg4zjpvX56CMEX9TJs\" alt=\"image\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Please open an issue if you use similar devices but still cannot achieve acceptable performances.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#minimal-requirement\">minimal requirement<\/a>&nbsp;for different platforms is different.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See also the common problems and troubleshoots&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/troubleshoot.md\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Colab<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#colab\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(Last tested &#8211; 2024 Aug 12 by&nbsp;<a href=\"https:\/\/github.com\/mashb1t\">mashb1t<\/a>)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Colab<\/th><th>Info<\/th><\/tr><\/thead><tbody><tr><td><a href=\"https:\/\/colab.research.google.com\/github\/lllyasviel\/Fooocus\/blob\/main\/fooocus_colab.ipynb\"><\/a><\/td><td>Fooocus Official<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In Colab, you can modify the last line to&nbsp;<code>!python entry_with_update.py --share --always-high-vram<\/code>&nbsp;or&nbsp;<code>!python entry_with_update.py --share --always-high-vram --preset anime<\/code>&nbsp;or&nbsp;<code>!python entry_with_update.py --share --always-high-vram --preset realistic<\/code>&nbsp;for Fooocus Default\/Anime\/Realistic Edition.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also change the preset in the UI. Please be aware that this may lead to timeouts after 60 seconds. If this is the case, please wait until the download has finished, change the preset to initial and back to the one you&#8217;ve selected or reload the page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that this Colab will disable refiner by default because Colab free&#8217;s resources are relatively limited (and some &#8220;big&#8221; features like image prompt may cause free-tier Colab to disconnect). We make sure that basic text-to-image is always working on free-tier Colab.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using&nbsp;<code>--always-high-vram<\/code>&nbsp;shifts resource allocation from RAM to VRAM and achieves the overall best balance between performance, flexibility and stability on the default T4 instance. Please find more information&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/pull\/1710#issuecomment-1989185346\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks to&nbsp;<a href=\"https:\/\/github.com\/camenduru\">camenduru<\/a>&nbsp;for the template!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Linux (Using Anaconda)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#linux-using-anaconda\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to use Anaconda\/Miniconda, you can<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/lllyasviel\/Fooocus.git\ncd Fooocus\nconda env create -f environment.yaml\nconda activate fooocus\npip install -r requirements_versions.txt\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then download the models: download&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#models\">default models<\/a>&nbsp;to the folder &#8220;Fooocus\\models\\checkpoints&#8221;.&nbsp;<strong>Or let Fooocus automatically download the models<\/strong>&nbsp;using the launcher:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>conda activate fooocus\npython entry_with_update.py\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or, if you want to open a remote port, use<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>conda activate fooocus\npython entry_with_update.py --listen\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use&nbsp;<code>python entry_with_update.py --preset anime<\/code>&nbsp;or&nbsp;<code>python entry_with_update.py --preset realistic<\/code>&nbsp;for Fooocus Anime\/Realistic Edition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Linux (Using Python Venv)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#linux-using-python-venv\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your Linux needs to have&nbsp;<strong>Python 3.10<\/strong>&nbsp;installed, and let&#8217;s say your Python can be called with the command&nbsp;<strong>python3<\/strong>&nbsp;with your venv system working; you can<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/lllyasviel\/Fooocus.git\ncd Fooocus\npython3 -m venv fooocus_env\nsource fooocus_env\/bin\/activate\npip install -r requirements_versions.txt\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">See the above sections for model downloads. You can launch the software with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source fooocus_env\/bin\/activate\npython entry_with_update.py\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or, if you want to open a remote port, use<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source fooocus_env\/bin\/activate\npython entry_with_update.py --listen\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use&nbsp;<code>python entry_with_update.py --preset anime<\/code>&nbsp;or&nbsp;<code>python entry_with_update.py --preset realistic<\/code>&nbsp;for Fooocus Anime\/Realistic Edition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Linux (Using native system Python)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#linux-using-native-system-python\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you know what you are doing, and your Linux already has&nbsp;<strong>Python 3.10<\/strong>&nbsp;installed, and your Python can be called with the command&nbsp;<strong>python3<\/strong>&nbsp;(and Pip with&nbsp;<strong>pip3<\/strong>), you can<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/lllyasviel\/Fooocus.git\ncd Fooocus\npip3 install -r requirements_versions.txt\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">See the above sections for model downloads. You can launch the software with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 entry_with_update.py\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or, if you want to open a remote port, use<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 entry_with_update.py --listen\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use&nbsp;<code>python entry_with_update.py --preset anime<\/code>&nbsp;or&nbsp;<code>python entry_with_update.py --preset realistic<\/code>&nbsp;for Fooocus Anime\/Realistic Edition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Linux (AMD GPUs)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#linux-amd-gpus\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#minimal-requirement\">minimal requirement<\/a>&nbsp;for different platforms is different.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Same with the above instructions. You need to change torch to the AMD version<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip uninstall torch torchvision torchaudio torchtext functorch xformers \npip install torch torchvision torchaudio --index-url https:\/\/download.pytorch.org\/whl\/rocm5.6\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">AMD is not intensively tested, however. The AMD support is in beta.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use&nbsp;<code>python entry_with_update.py --preset anime<\/code>&nbsp;or&nbsp;<code>python entry_with_update.py --preset realistic<\/code>&nbsp;for Fooocus Anime\/Realistic Edition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Windows (AMD GPUs)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#windows-amd-gpus\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#minimal-requirement\">minimal requirement<\/a>&nbsp;for different platforms is different.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Same with Windows. Download the software and edit the content of&nbsp;<code>run.bat<\/code>&nbsp;as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\\python_embeded\\python.exe -m pip uninstall torch torchvision torchaudio torchtext functorch xformers -y\n.\\python_embeded\\python.exe -m pip install torch-directml\n.\\python_embeded\\python.exe -s Fooocus\\entry_with_update.py --directml\npause\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then run the&nbsp;<code>run.bat<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AMD is not intensively tested, however. The AMD support is in beta.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For AMD, use&nbsp;<code>.\\python_embeded\\python.exe entry_with_update.py --directml --preset anime<\/code>&nbsp;or&nbsp;<code>.\\python_embeded\\python.exe entry_with_update.py --directml --preset realistic<\/code>&nbsp;for Fooocus Anime\/Realistic Edition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Mac<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#mac\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#minimal-requirement\">minimal requirement<\/a>&nbsp;for different platforms is different.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mac is not intensively tested. Below is an unofficial guideline for using Mac. You can discuss problems&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/pull\/129\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can install Fooocus on Apple Mac silicon (M1 or M2) with macOS &#8216;Catalina&#8217; or a newer version. Fooocus runs on Apple silicon computers via&nbsp;<a href=\"https:\/\/pytorch.org\/get-started\/locally\/\">PyTorch<\/a>&nbsp;MPS device acceleration. Mac Silicon computers don&#8217;t come with a dedicated graphics card, resulting in significantly longer image processing times compared to computers with dedicated graphics cards.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install the conda package manager and pytorch nightly. Read the\u00a0<a href=\"https:\/\/developer.apple.com\/metal\/pytorch\/\">Accelerated PyTorch training on Mac<\/a>\u00a0Apple Developer guide for instructions. Make sure pytorch recognizes your MPS device.<\/li>\n\n\n\n<li>Open the macOS Terminal app and clone this repository with\u00a0<code>git clone https:\/\/github.com\/lllyasviel\/Fooocus.git<\/code>.<\/li>\n\n\n\n<li>Change to the new Fooocus directory,\u00a0<code>cd Fooocus<\/code>.<\/li>\n\n\n\n<li>Create a new conda environment,\u00a0<code>conda env create -f environment.yaml<\/code>.<\/li>\n\n\n\n<li>Activate your new conda environment,\u00a0<code>conda activate fooocus<\/code>.<\/li>\n\n\n\n<li>Install the packages required by Fooocus,\u00a0<code>pip install -r requirements_versions.txt<\/code>.<\/li>\n\n\n\n<li>Launch Fooocus by running\u00a0<code>python entry_with_update.py<\/code>. (Some Mac M2 users may need\u00a0<code>python entry_with_update.py --disable-offload-from-vram<\/code>\u00a0to speed up model loading\/unloading.) The first time you run Fooocus, it will automatically download the Stable Diffusion SDXL models and will take a significant amount of time, depending on your internet connection.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Use&nbsp;<code>python entry_with_update.py --preset anime<\/code>&nbsp;or&nbsp;<code>python entry_with_update.py --preset realistic<\/code>&nbsp;for Fooocus Anime\/Realistic Edition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Docker<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#docker\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/docker.md\">docker.md<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Download Previous Version<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#download-previous-version\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See the guidelines&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/discussions\/1405\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Minimal Requirement<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#minimal-requirement\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below is the minimal requirement for running Fooocus locally. If your device capability is lower than this spec, you may not be able to use Fooocus locally. (Please let us know, in any case, if your device capability is lower but Fooocus still works.)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Operating System<\/th><th>GPU<\/th><th>Minimal GPU Memory<\/th><th>Minimal System Memory<\/th><th><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/troubleshoot.md\">System Swap<\/a><\/th><th>Note<\/th><\/tr><\/thead><tbody><tr><td>Windows\/Linux<\/td><td>Nvidia RTX 4XXX<\/td><td>4GB<\/td><td>8GB<\/td><td>Required<\/td><td>fastest<\/td><\/tr><tr><td>Windows\/Linux<\/td><td>Nvidia RTX 3XXX<\/td><td>4GB<\/td><td>8GB<\/td><td>Required<\/td><td>usually faster than RTX 2XXX<\/td><\/tr><tr><td>Windows\/Linux<\/td><td>Nvidia RTX 2XXX<\/td><td>4GB<\/td><td>8GB<\/td><td>Required<\/td><td>usually faster than GTX 1XXX<\/td><\/tr><tr><td>Windows\/Linux<\/td><td>Nvidia GTX 1XXX<\/td><td>8GB (* 6GB uncertain)<\/td><td>8GB<\/td><td>Required<\/td><td>only marginally faster than CPU<\/td><\/tr><tr><td>Windows\/Linux<\/td><td>Nvidia GTX 9XX<\/td><td>8GB<\/td><td>8GB<\/td><td>Required<\/td><td>faster or slower than CPU<\/td><\/tr><tr><td>Windows\/Linux<\/td><td>Nvidia GTX &lt; 9XX<\/td><td>Not supported<\/td><td>\/<\/td><td>\/<\/td><td>\/<\/td><\/tr><tr><td>Windows<\/td><td>AMD GPU<\/td><td>8GB (updated 2023 Dec 30)<\/td><td>8GB<\/td><td>Required<\/td><td>via DirectML (* ROCm is on hold), about 3x slower than Nvidia RTX 3XXX<\/td><\/tr><tr><td>Linux<\/td><td>AMD GPU<\/td><td>8GB<\/td><td>8GB<\/td><td>Required<\/td><td>via ROCm, about 1.5x slower than Nvidia RTX 3XXX<\/td><\/tr><tr><td>Mac<\/td><td>M1\/M2 MPS<\/td><td>Shared<\/td><td>Shared<\/td><td>Shared<\/td><td>about 9x slower than Nvidia RTX 3XXX<\/td><\/tr><tr><td>Windows\/Linux\/Mac<\/td><td>only use CPU<\/td><td>0GB<\/td><td>32GB<\/td><td>Required<\/td><td>about 17x slower than Nvidia RTX 3XXX<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">* AMD GPU ROCm (on hold): The AMD is still working on supporting ROCm on Windows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">* Nvidia GTX 1XXX 6GB uncertain: Some people report 6GB success on GTX 10XX, but some other people report failure cases.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Note that Fooocus is only for extremely high quality image generating. We will not support smaller models to reduce the requirement and sacrifice result quality.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshoot<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#troubleshoot\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See the common problems&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/troubleshoot.md\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Default Models<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#default-models\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Given different goals, the default models and configs of Fooocus are different:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Task<\/th><th>Windows<\/th><th>Linux args<\/th><th>Main Model<\/th><th>Refiner<\/th><th>Config<\/th><\/tr><\/thead><tbody><tr><td>General<\/td><td>run.bat<\/td><td><\/td><td>juggernautXL_v8Rundiffusion<\/td><td>not used<\/td><td><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/presets\/default.json\">here<\/a><\/td><\/tr><tr><td>Realistic<\/td><td>run_realistic.bat<\/td><td>&#8211;preset realistic<\/td><td>realisticStockPhoto_v20<\/td><td>not used<\/td><td><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/presets\/realistic.json\">here<\/a><\/td><\/tr><tr><td>Anime<\/td><td>run_anime.bat<\/td><td>&#8211;preset anime<\/td><td>animaPencilXL_v500<\/td><td>not used<\/td><td><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/presets\/anime.json\">here<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the download is&nbsp;<strong>automatic<\/strong>&nbsp;&#8211; you do not need to do anything if the internet connection is okay. However, you can download them manually if you (or move them from somewhere else) have your own preparation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">UI Access and Authentication<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#ui-access-and-authentication\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In addition to running on localhost, Fooocus can also expose its UI in two ways:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Local UI listener: use\u00a0<code>--listen<\/code>\u00a0(specify port e.g. with\u00a0<code>--port 8888<\/code>).<\/li>\n\n\n\n<li>API access: use\u00a0<code>--share<\/code>\u00a0(registers an endpoint at\u00a0<code>.gradio.live<\/code>).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In both ways the access is unauthenticated by default. You can add basic authentication by creating a file called&nbsp;<code>auth.json<\/code>&nbsp;in the main directory, which contains a list of JSON objects with the keys&nbsp;<code>user<\/code>&nbsp;and&nbsp;<code>pass<\/code>&nbsp;(see example in&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/auth-example.json\">auth-example.json<\/a>).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">List of &#8220;Hidden&#8221; Tricks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#list-of-hidden-tricks\"><\/a>Click to see a list of tricks. Those are based on SDXL and are not very up-to-date with latest models.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/discussions\/117#raw\"><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/AUTOMATIC1111\/stable-diffusion-webui\/pull\/12371\"><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/apps.apple.com\/us\/app\/draw-things-ai-generation\/id6444050820\"><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/arxiv.org\/pdf\/2210.00939.pdf\"><\/a><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/discussions\/117#sharpness\"><\/a><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Customization<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#customization\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After the first time you run Fooocus, a config file will be generated at&nbsp;<code>Fooocus\\config.txt<\/code>. This file can be edited to change the model path or default parameters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, an edited&nbsp;<code>Fooocus\\config.txt<\/code>&nbsp;(this file will be generated after the first launch) may look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n    \"path_checkpoints\": \"D:\\\\Fooocus\\\\models\\\\checkpoints\",\n    \"path_loras\": \"D:\\\\Fooocus\\\\models\\\\loras\",\n    \"path_embeddings\": \"D:\\\\Fooocus\\\\models\\\\embeddings\",\n    \"path_vae_approx\": \"D:\\\\Fooocus\\\\models\\\\vae_approx\",\n    \"path_upscale_models\": \"D:\\\\Fooocus\\\\models\\\\upscale_models\",\n    \"path_inpaint\": \"D:\\\\Fooocus\\\\models\\\\inpaint\",\n    \"path_controlnet\": \"D:\\\\Fooocus\\\\models\\\\controlnet\",\n    \"path_clip_vision\": \"D:\\\\Fooocus\\\\models\\\\clip_vision\",\n    \"path_fooocus_expansion\": \"D:\\\\Fooocus\\\\models\\\\prompt_expansion\\\\fooocus_expansion\",\n    \"path_outputs\": \"D:\\\\Fooocus\\\\outputs\",\n    \"default_model\": \"realisticStockPhoto_v10.safetensors\",\n    \"default_refiner\": \"\",\n    \"default_loras\": [[\"lora_filename_1.safetensors\", 0.5], [\"lora_filename_2.safetensors\", 0.5]],\n    \"default_cfg_scale\": 3.0,\n    \"default_sampler\": \"dpmpp_2m\",\n    \"default_scheduler\": \"karras\",\n    \"default_negative_prompt\": \"low quality\",\n    \"default_positive_prompt\": \"\",\n    \"default_styles\": [\n        \"Fooocus V2\",\n        \"Fooocus Photograph\",\n        \"Fooocus Negative\"\n    ]\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Many other keys, formats, and examples are in&nbsp;<code>Fooocus\\config_modification_tutorial.txt<\/code>&nbsp;(this file will be generated after the first launch).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Consider twice before you really change the config. If you find yourself breaking things, just delete&nbsp;<code>Fooocus\\config.txt<\/code>. Fooocus will go back to default.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A safer way is just to try &#8220;run_anime.bat&#8221; or &#8220;run_realistic.bat&#8221; &#8211; they should already be good enough for different tasks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><del>Note that&nbsp;<code>user_path_config.txt<\/code>&nbsp;is deprecated and will be removed soon.<\/del>&nbsp;(Edit: it is already removed.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">All CMD Flags<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#all-cmd-flags\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>entry_with_update.py  &#91;-h] &#91;--listen &#91;IP]] &#91;--port PORT]\n                      &#91;--disable-header-check &#91;ORIGIN]]\n                      &#91;--web-upload-size WEB_UPLOAD_SIZE]\n                      &#91;--hf-mirror HF_MIRROR]\n                      &#91;--external-working-path PATH &#91;PATH ...]]\n                      &#91;--output-path OUTPUT_PATH]\n                      &#91;--temp-path TEMP_PATH] &#91;--cache-path CACHE_PATH]\n                      &#91;--in-browser] &#91;--disable-in-browser]\n                      &#91;--gpu-device-id DEVICE_ID]\n                      &#91;--async-cuda-allocation | --disable-async-cuda-allocation]\n                      &#91;--disable-attention-upcast]\n                      &#91;--all-in-fp32 | --all-in-fp16]\n                      &#91;--unet-in-bf16 | --unet-in-fp16 | --unet-in-fp8-e4m3fn | --unet-in-fp8-e5m2]\n                      &#91;--vae-in-fp16 | --vae-in-fp32 | --vae-in-bf16]\n                      &#91;--vae-in-cpu]\n                      &#91;--clip-in-fp8-e4m3fn | --clip-in-fp8-e5m2 | --clip-in-fp16 | --clip-in-fp32]\n                      &#91;--directml &#91;DIRECTML_DEVICE]]\n                      &#91;--disable-ipex-hijack]\n                      &#91;--preview-option &#91;none,auto,fast,taesd]]\n                      &#91;--attention-split | --attention-quad | --attention-pytorch]\n                      &#91;--disable-xformers]\n                      &#91;--always-gpu | --always-high-vram | --always-normal-vram | --always-low-vram | --always-no-vram | --always-cpu &#91;CPU_NUM_THREADS]]\n                      &#91;--always-offload-from-vram]\n                      &#91;--pytorch-deterministic] &#91;--disable-server-log]\n                      &#91;--debug-mode] &#91;--is-windows-embedded-python]\n                      &#91;--disable-server-info] &#91;--multi-user] &#91;--share]\n                      &#91;--preset PRESET] &#91;--disable-preset-selection]\n                      &#91;--language LANGUAGE]\n                      &#91;--disable-offload-from-vram] &#91;--theme THEME]\n                      &#91;--disable-image-log] &#91;--disable-analytics]\n                      &#91;--disable-metadata] &#91;--disable-preset-download]\n                      &#91;--disable-enhance-output-sorting]\n                      &#91;--enable-auto-describe-image]\n                      &#91;--always-download-new-model]\n                      &#91;--rebuild-hash-cache &#91;CPU_NUM_THREADS]]\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Inline Prompt Features<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#inline-prompt-features\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Wildcards<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#wildcards\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example prompt:&nbsp;<code>__color__ flower<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Processed for positive and negative prompt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Selects a random wildcard from a predefined list of options, in this case the&nbsp;<code>wildcards\/color.txt<\/code>&nbsp;file. The wildcard will be replaced with a random color (randomness based on seed). You can also disable randomness and process a wildcard file from top to bottom by enabling the checkbox&nbsp;<code>Read wildcards in order<\/code>&nbsp;in Developer Debug Mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wildcards can be nested and combined, and multiple wildcards can be used in the same prompt (example see&nbsp;<code>wildcards\/color_flower.txt<\/code>).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Array Processing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#array-processing\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example prompt:&nbsp;<code>[[red, green, blue]] flower<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Processed only for positive prompt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Processes the array from left to right, generating a separate image for each element in the array. In this case 3 images would be generated, one for each color. Increase the image number to 3 to generate all 3 variants.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Arrays can not be nested, but multiple arrays can be used in the same prompt. Does support inline LoRAs as array elements!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Inline LoRAs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#inline-loras\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example prompt:&nbsp;<code>flower &lt;lora:sunflowers:1.2&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Processed only for positive prompt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Applies a LoRA to the prompt. The LoRA file must be located in the&nbsp;<code>models\/loras<\/code>&nbsp;directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advanced Features<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#advanced-features\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/discussions\/117\">Click here to browse the advanced features.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Forks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#forks\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below are some Forks to Fooocus:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Fooocus&#8217; forks<\/th><\/tr><\/thead><tbody><tr><td><a href=\"https:\/\/github.com\/fenneishi\/Fooocus-Control\">fenneishi\/Fooocus-Control<\/a><br><a href=\"https:\/\/github.com\/runew0lf\/RuinedFooocus\">runew0lf\/RuinedFooocus<\/a><br><a href=\"https:\/\/github.com\/MoonRide303\/Fooocus-MRE\">MoonRide303\/Fooocus-MRE<\/a><br><a href=\"https:\/\/github.com\/metercai\/SimpleSDXL\">metercai\/SimpleSDXL<\/a><br><a href=\"https:\/\/github.com\/mashb1t\/Fooocus\">mashb1t\/Fooocus<\/a><br>and so on &#8230;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Thanks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#thanks\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many thanks to&nbsp;<a href=\"https:\/\/github.com\/twri\">twri<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/github.com\/3Diva\">3Diva<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/github.com\/K3nt3L\">Marc K3nt3L<\/a>&nbsp;for creating additional SDXL styles available in Fooocus.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The project starts from a mixture of&nbsp;<a href=\"https:\/\/github.com\/AUTOMATIC1111\/stable-diffusion-webui\">Stable Diffusion WebUI<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/github.com\/comfyanonymous\/ComfyUI\">ComfyUI<\/a>&nbsp;codebases.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, thanks&nbsp;<a href=\"https:\/\/github.com\/daswer123\">daswer123<\/a>&nbsp;for contributing the Canvas Zoom!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Update Log<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#update-log\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The log is&nbsp;<a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/blob\/main\/update_log.md\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Localization\/Translation\/I18N<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#localizationtranslationi18n\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can put json files in the&nbsp;<code>language<\/code>&nbsp;folder to translate the user interface.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, below is the content of&nbsp;<code>Fooocus\/language\/example.json<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n  \"Generate\": \"\u751f\u6210\",\n  \"Input Image\": \"\u5165\u529b\u753b\u50cf\",\n  \"Advanced\": \"\uace0\uae09\",\n  \"SAI 3D Model\": \"SAI 3D Mod\u00e8le\"\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you add&nbsp;<code>--language example<\/code>&nbsp;arg, Fooocus will read&nbsp;<code>Fooocus\/language\/example.json<\/code>&nbsp;to translate the UI.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, you can edit the ending line of Windows&nbsp;<code>run.bat<\/code>&nbsp;as<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\\python_embeded\\python.exe -s Fooocus\\entry_with_update.py --language example\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or&nbsp;<code>run_anime.bat<\/code>&nbsp;as<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\\python_embeded\\python.exe -s Fooocus\\entry_with_update.py --language example --preset anime\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or&nbsp;<code>run_realistic.bat<\/code>&nbsp;as<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\\python_embeded\\python.exe -s Fooocus\\entry_with_update.py --language example --preset realistic\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For practical translation, you may create your own file like&nbsp;<code>Fooocus\/language\/jp.json<\/code>&nbsp;or&nbsp;<code>Fooocus\/language\/cn.json<\/code>&nbsp;and then use flag&nbsp;<code>--language jp<\/code>&nbsp;or&nbsp;<code>--language cn<\/code>. Apparently, these files do not exist now.&nbsp;<strong>We need your help to create these files!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that if no&nbsp;<code>--language<\/code>&nbsp;is given and at the same time&nbsp;<code>Fooocus\/language\/default.json<\/code>&nbsp;exists, Fooocus will always load&nbsp;<code>Fooocus\/language\/default.json<\/code>&nbsp;for translation. By default, the file&nbsp;<code>Fooocus\/language\/default.json<\/code>&nbsp;does not exist.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/releases\">Releases&nbsp;21<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/releases\/tag\/v2.5.5\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/releases\/tag\/v2.5.5\">v2.5.5Latest<\/a><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/releases\/tag\/v2.5.5\">on Aug 12<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/releases\">+ 20 releases<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/graphs\/contributors\">Contributors60<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a class=\"\" href=\"https:\/\/github.com\/lllyasviel\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/mashb1t\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/MoonRide303\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/xhoxye\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/MindOfMatter\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/crohrer\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/eddyizm\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/midareashi\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/daswer123\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/Alexdnk\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/bruno-c\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/agarzon\"><\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/Zaldos\"><\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/graphs\/contributors\">+ 46 contributors<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Languages<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/search?l=python\">Python96.7%<\/a>\u00a0<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/lllyasviel\/Fooocus\/search?l=javascript\">JavaScript2.8%<\/a>\u00a0<\/li>\n\n\n\n<li>Other0.5%<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Footer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/\"><\/a>\u00a9 2024 GitHub,&nbsp;Inc.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"sr-footer-heading\">Footer navigation<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.github.com\/site-policy\/github-terms\/github-terms-of-service\">Terms<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.github.com\/site-policy\/privacy-policies\/github-privacy-statement\">Privacy<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/security\">Security<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.githubstatus.com\/\">Status<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.github.com\/\">Docs<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.github.com\/?tags=dotcom-footer\">Contact<\/a><\/li>\n\n\n\n<li>Manage cookies<\/li>\n\n\n\n<li>Do not share my personal information<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Copied from Git Hub https:\/\/github.com\/lllyasviel\/Fooocus?tab=readme-ov-file#download lllyasviel\/FooocusPublic Focus on prompting and generating License &nbsp;GPL-3.0 license lllyasviel\/Fooocus Folders and files Name Latest commitlllyasviel2 months agoHistory .github 2 months ago css 3 months ago extras 2 months ago javascript 3 months ago language 2 months ago ldm_patched 2 months ago models 5 months ago modules 2 months ago [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to"],"blog_post_layout_featured_media_urls":{"thumbnail":["https:\/\/fdel.moe\/blog\/wp-content\/uploads\/2024\/10\/th-2907084966-150x150.jpg",150,150,true],"full":["https:\/\/fdel.moe\/blog\/wp-content\/uploads\/2024\/10\/th-2907084966.jpg",474,453,false]},"categories_names":{"17":{"name":"How To","link":"https:\/\/fdel.moe\/blog\/category\/how-to\/"}},"tags_names":[],"comments_number":"0","_links":{"self":[{"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/comments?post=124"}],"version-history":[{"count":1,"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/posts\/124\/revisions\/126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/media\/125"}],"wp:attachment":[{"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdel.moe\/blog\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}