Skip to content

Using the AI Server on a different computer from the Stash Server

skier233 edited this page Jan 1, 2025 · 4 revisions

A common setup is to run the AI Server on a different computer than the stash server to be able to take advantage of a more powerful GPU than what is available on the stash server. Here is how to setup this setup:

  1. Ensure the computer that will be running the AI Server can access the files on the stash server
    1. For example, if the videos for stash are in C:\stash\scenes, ensure you have the stash server's drive mapped to the computer that will run the AI Server so you could access those files at F:\stash\scenes for example.
  2. Install the AI Server on the desired computer.
  3. Install the Stash Plugin.
  4. Navigate to the Stash Plugin config.py file and change the API_BASE_URL to the IP address of the AI Tagger computer, ie: API_BASE_URL = 'http://192.168.1.125:8000'
  5. In the Stash Plugin config.py file, add a mapping into path_mutation that will be used to convert paths on the Stash server into a format that can be read by the computer running the AI Server. For example from above: path_mutation = {r"C:\stash\scenes": r"F:\stash\scenes"}