Local AI Scripts Installation Guide
Found AI supports running on locally deployed Stable Diffusion. You can either use the scripts provided by us, or write your own functions through API calls, which can then be applied in Found.
First, make sure you have Stable diffusion deployed locally. You also need to install the ControlNet plugins:
A1111: https://github.com/AUTOMATIC1111/stable-diffusion-webui
ControlNet plugin: https://github.com/Mikubill/sd-webui-controlnet
ControlNet model: https://huggingface.co/lllyasviel/ControlNet-v1-1/tree/main
The file storage paths are as follows::
ControlNet plugin:/extensions/ControlNet
ControlNet model:/extensions/sd-webui-controlnet/models
ControlNet preprocessor:/extensions/sd-webui-controlnet/annotator/downloads
After deploying and starting Stable Diffusion, confirm that it can run properly. Next, download local AI scripts from Found's Settings panel. In Found, select the relevant asset files and right-click to execute the local AI script.
Upon the first execution, the program will guide you to choose the directory of Stable diffusion after installing dependencies. Please ensure the webui version is higher than a9fed7c3 (11th week of 2023) and that the ControlNet plugin is installed.
After completing the installation of environment dependencies, you will see a default settings pop-up window with the following functions:
Common Prompts: We often use prompt words like "masterpiece" and "high quality". Simply add them in the settings (and negative prompts, if necessary), and the system will automatically include them every time you use Found AI Local Scripts, eliminating the need for manual input.
Do not display prompts in the notes panel: When this feature is enabled, the prompt in the generated results will no longer display the common prompts set above.
Size: Please set the maximum resolution for the images generated each time based on the actual video memory capacity.
Sampler: This option allows you to change the default sampling method for generated images.
Click "OK" to confirm these settings.
Custom Settings:
If you wish to customize the settings, follow these steps:
Navigate to the "Documents/Found/scripts" folder on your computer.
In this folder, locate the file named "custom".
Right-click on this file and choose to open with Notepad.
Next, you can add the following custom settings in the file:
- [default prompt]:This is the commonly used prompt word you set.
[custom prompt]:With this setting, you can use a short word or phrase to trigger a longer sentence or description. For example, by entering: "A man wearing a blue dress and a red cape"="superhero”
This means when you input "superhero", it will automatically be translated to "A man wearing a blue dress and a red cape".
[lora]:In this section, you can set frequently used lora phrases to custom trigger words. For example, if you have a cyberpunk style lora named "cyberpunk", you can set it as: "cyberpunk"
This means when you input "cyberpunk", it is equivalent to using that lora setting. You can also adjust the weight of the lora by entering "cyberpunk:0.5".
[model]
[model]
By default, Found will use the model currently loaded in stable diffusion. However, to avoid having to remember the hash value of the model each time you switch, you can set an easier-to-understand word for commonly used models here. For example, set the model hash value "f2bsued5" as "realistic": "f2bsued5"="realistic"
This way, when using the Found AI function, just enter "model:realistic" in the parameters, and the system will automatically load the model associated with this hash value.
[image_size] Set the default image generation size. Available values are 512, 768, and 1024.
[default prompt display] Decide whether to display common prompt words in the returned parameters. Choose "true" to display, and "false" not to.
[sampler] Default sampler selection. Normally, there is no need to change this option.
Frequently Asked Questions:
Q: What should I do if my stable diffusion has been updated to a new version or if I've changed its path?
A: Simply re-run any function of the local version, and the system will restart the preset process.
Q: Why did I receive the "Execution Failed" prompt?
A: Most "Execution Failed" incidents are related to missing essential plugins or the controlnet model. Ensure that the required models and plugins for the script are installed in your stable diffusion.