Vision Bot Studio · AI page
Training a Detection Model
A detection model finds something on screen even when it moves around or looks a bit different each time, such as enemies, loot or resource nodes. This walkthrough goes from an empty project to a trained model your bot clicks on: capture example frames, outline the object in them, train, and use the model in a scene.
Turn on the AI page
The AI page only shows when the loaded config uses it. Click Tools… in the top bar (next to the config selector), tick Advanced object detection and click OK.
This adds the AI page to the left sidebar, the Detect Model, Check Model and Frame Capture actions to the Scene Editor, and the AI Processing group to the Settings page. Models belong to the whole config, so any scene can use them.
Choose where AI runs
Auto-labeling and training run either on your own PC or on our servers. One setting decides both: Settings → AI Processing → Run AI on:.
- Local (on this PC, free): no account and no credits. It needs a one-time download (about 4.5 GB with a supported NVIDIA graphics card, about 2.5 GB otherwise). It uses your NVIDIA graphics card when it has enough video memory, otherwise the processor, which is much slower.
- Hosted (on our servers, uses AI credits): nothing to install and fast on any PC. It is paid with your AI credits (see the Credits page in the sidebar).
If you have not chosen yet, the first Label Frames (with auto-labeling on) or Start Training asks you: This PC (free) or Our servers (AI credits). You can switch at any time in Settings.
With Local chosen, the Local AI (this PC) group appears below it. Install starts the download after you accept Meta's SAM 3 terms of use; you can pick where it is stored with Change…. The download runs in the background as a Local AI Setup job on the Jobs page, so you can keep using the app.
PC requirements for Local
| Minimum | Recommended | |
|---|---|---|
| Auto-labeling on the graphics card | NVIDIA card with 6 GB video memory | 8 GB or more |
| Training on the graphics card | NVIDIA card with 6 GB video memory (8 GB for RF-DETR (Segmentation)) | 12 GB or more |
| Memory (RAM) | 16 GB | 32 GB |
| Free disk space | about 8 GB | |
| Other | Windows 10 or 11 (64-bit), an up-to-date NVIDIA driver, internet for the one-time download | |
AMD and Intel graphics cards are not used: the AI models for labeling and training run on NVIDIA's CUDA technology, which only NVIDIA graphics cards support. Those PCs run labeling and training on the processor instead. Labeling then takes seconds per frame and training takes hours. Using a trained model in your bots works on any PC.
Train New Model
On the AI page, click Train New Model. Name it after what it should find (for example coin or enemy). The name must be unique among your projects. After OK, capturing starts right away.
Select a project's row to use the other buttons below the table. Open Folder shows its files; Delete removes its frames, labels and model, and this cannot be undone.
Capture Frames
Show the object in the game (or emulator), then press F9 or click Capture Frame. F9 works while the game window has focus, as long as the capture window is open. Reopen it later with Capture Frames to add more.
- Capture the object from different angles, zoom levels and game situations: more variety gives a better model.
- Also capture some frames where the object is not visible.
- Training needs at least 20 labeled frames to start, but a usable model normally needs at least 80. More labeled frames make it detect better, so keep adding frames from different situations (other places, lighting, distances, poses).
Capture while the bot plays
In the Scene Editor, + Add Action → Frame Capture saves the current game picture into one or more training projects every time the action runs. Tick the projects under Model(s) to capture into:; they do not need a finished model yet. Label the new frames later on the AI page.
Label Frames
Select the project and click Label Frames to mark where the object is in each frame.
- The first time, choose the shape: Bounding Box (drag a box, faster) or Polygon (click each corner around the shape, double-click to close; tighter, slower). The whole project keeps that shape.
- Outline every copy of the object in the frame. You only outline it: where the bot clicks on it is set later with the Detect Model action's Offset (step 9).
- Click Next Frame. If the object is not in the frame, click Next Frame without drawing: that frame teaches the model what is not the object.
Undo undoes your last change on the frame; Delete Frame removes a bad frame. Running Label Frames again offers Continue Labeling (only unlabeled frames) or Start Over (relabel everything; you can change the shape then).
Once the project has a model, Label Frames pre-fills orange numbered suggestions from it. Leave a suggestion to accept it, select some and click Reject Selected, or click Clear Suggestions to reject them all.
Let AI draw the outlines (auto-labeling)
SAM 3, an AI model by Meta, can draw the outlines for you, even before you have a model. Tick Suggest boxes automatically when labeling frames in Settings → AI Processing → Auto-labeling:.
Then click Auto-Label Settings… on the AI page to tell it what to look for in this project:
- Each class name has its own confidence (0-1). Higher gives fewer, surer suggestions.
- Use + Add Class for variants of the same object, for example "coin" and "gold coin".
- Merge overlapping boxes above: lower it if one object gets several boxes, raise it if objects close together get merged into one.
Test before you label everything. SAM 3 only finds what it understands by your words, and a game's own name for something often does not work ("goblin" can find nothing where "small green humanoid" finds them all). On the right of the window, pick a frame in the strip and click Run Test. It uses the names and numbers on the left as they are right now and outlines what it finds, each with the name that found it and its score, or says "Nothing found for …". Change the words or the confidence and test again until it finds the right things, then click OK to save.
- On this PC: free. The first test loads SAM 3 (up to about half a minute), the next ones take about a second while the window stays open.
- On our servers: 1 AI credit per test, shown on the button with your balance.
- A test never saves labels.
Now Label Frames labels every unlabeled frame in the background as a job on the Jobs page, and saves the results as it goes. Check them afterwards with Review Labels.
- On this PC (Local): free. With a supported NVIDIA card about 3 frames per second; on the processor about 10-15 seconds per frame on a fast PC, slower on a laptop. If the graphics card runs out of memory (for example because the game uses it too), labeling switches to the processor by itself; close other programs that use the card, then click Switch back to GPU on the job card.
- On our servers (Hosted): 1 credit per labeled frame, also for a frame where nothing was found. Before labeling more than 50 frames, the app asks once and shows the price and your balance. At most 8 class names. The first frames can take up to a minute while the service starts. When you run out of credits, labeling stops and the frames labeled until then are kept.
Review Labelsrecommended
Review Labels pages through labeled frames, hand-drawn and auto-labeled, so you can fix, remove or add outlines before you train.
- < Previous / Next > step through the frames, or type a frame number to jump to it.
- Select one object in the list and click Delete Selected to remove just that outline.
- Each frame is saved and marked reviewed when you leave it (see the Reviewed column).
- Skip throws away that frame's labels, so the next Label Frames run labels it again.
- Done closes.
Start Training
Select the project and click Start Training. It needs at least 20 labeled frames. First choose the model type:
- RF-DETR: the standard choice.
- RF-DETR (Segmentation): learns from the exact outline for a tighter box. It is only available for Polygon projects; on a Bounding Box project it is greyed out.
On this PC (Local)
- Free, no account. It uses the same one-time Local AI download as labeling.
- With an NVIDIA card with 6 GB of video memory or more (8 GB for RF-DETR (Segmentation)), training runs on the card: about 15-40 minutes for a typical project. Without one, it asks whether to train on the processor (free, but it can take many hours) or on our servers (AI credits).
- Training needs a lot of memory (about 16 GB of RAM plus page file). If Windows is low on memory, Start Training warns you first.
- Only one training runs on this PC at a time.
On our servers (Hosted)
Before anything starts, a price box shows what it will cost:
- Frames to train: all labeled frames by default. Lower it to pay less. Fewer frames usually make a weaker model; the app picks them evenly from all labeled frames, and the others stay labeled.
- Expected cost: what it usually costs. Max cost (reserved): the most it can cost. Your balance: your credits.
- The max cost is set aside when training starts. Training usually stops by itself well before it, and the unused part comes back when it finishes.
- If your balance is lower than the max cost, training cannot start. The box says how many frames your credits cover (for example "Use 150 frames or fewer"): lower Frames to train to that, or buy credits.
- Only the labeled frames are uploaded. Your uploaded frames are deleted from our servers when the training finishes; everything else, including the trained model, after 30 days.
- You can start trainings for more projects; they wait in line and train one at a time.
Either way, training stops by itself once the model stops improving (at most 100 epochs, one epoch being one pass over your labeled frames), and the finished model is imported into the project automatically.
Follow it on the Jobs page
Labeling, training and the Local AI download run in the background as jobs on the Jobs page (left sidebar). While a job runs, the Jobs icon gets a small dot. When a job starts, finishes or fails, a short notice shows in the bottom-right corner of the window; click View to open that job.
Click a card's header to fold it out: Parameters (what it started with, and for a hosted run the credits used so far), Output and Log (including the output of the training itself). A training card shows how many epochs are finished, out of at most 100.
Closing the app
- Training (hosted): once the upload has finished, training goes on on our servers. The next time you start the app, the job reconnects and imports the model if it finished meanwhile. Closing the app during the upload stops the training; no credits are charged.
- Training (this PC): closing the app (or a power cut) stops it. Click Continue on the job card later: it picks up from the last finished epoch.
Cancel and Continue
- Cancel asks first, then stops the training. For a hosted training, the epochs that already ran are charged.
- Continue picks up from the last finished epoch. A hosted Continue shows the price box first and charges only the epochs after that point. It always trains the same frames as the first run, so you cannot lower them there.
- STOPPED, CAN BE CONTINUED: a hosted training stopped partway, but its progress is saved. The card explains what happened; click Continue. A stopped training can be continued for up to 30 days.
- FAILED: open the card and read the Log. A hosted training that fails before it starts on your frames costs nothing.
- Import shows on a card when a trained model was downloaded but could not be copied into its project (for example because the project was renamed). Click it to copy the model in.
Use the model in your bot
Once the Imported Model column shows a model, add it to a scene in the Scene Editor with + Add Action:
- Detect Model: clicks the best match the model finds, for example the nearest enemy.
- Check Model: a condition that is true when the model finds something, for steps and prerequisites. It never clicks. Tick Inverted to make it true when nothing is found.
- Model: a finished model from the AI page.
- Confidence threshold: default 0.5; higher gives fewer but surer detections.
- Class filter: Any, or one class of a model that knows several.
- Exclusion zones: areas the model must ignore, for example your own character when it looks like the enemies.
Where it clicks: select the action and click Offset, then click the spot on the object the bot should hit. The offset grows and shrinks with the detected object, so the bot hits the same part of it whether it looks big (close by) or small (far away).
New Detect Model actions search the whole screen; click Recapture to drag a smaller search area. Validate runs the model once on the live game and reports the best score; Show Detection shows the box it found, and Validate Live (Windows only) keeps checking about 5 times a second until you click Stop.
A model trained elsewhere
Select a project and click Import Model… to pick a trained .onnx model file. After Start Training you do not need this: the model is imported for you.
Making the model better
Capture more frames (especially ones it gets wrong), label and review them, and click Start Training again. Each step picks up where it left off.
- It finds things that are not the object: label more frames, including frames without the object, reject wrong suggestions, then train again.
- It misses the object: capture more varied frames (angles, zoom, lighting, situations), label them and train again.
- Auto-labeling misses objects or finds wrong ones: add class names for variants, lower or raise each class's confidence, then fix the rest with Review Labels.