First Run Walkthrough
Which document is this? The shortest single path — six steps from a running server to your first prediction. Installing Seg-Studio is covered by the README’s “Try it” steps, individual features by the User Guide, and the same workflow at full length on a sample dataset by the Handbook.
Welcome to Seg-Studio, a semantic segmentation tool built for factory inspection (it teaches an AI to mark defect areas on an image, pixel by pixel). This guide walks you through the full workflow — from opening the app to seeing your first AI prediction (the AI’s own marking of an image) — in about 10 minutes on a machine with an NVIDIA GPU (graphics card).
No machine learning experience required. Just follow the steps.
Japanese version: ja/first-run-manual.md
Prerequisite: Seg-Studio has to be installed and running before step 1. If it isn’t, install it first — README → Try it — then come back here.
Before You Start
You need two things:
- The Seg-Studio server running on your machine (or a machine on your network).
The server is the part of Seg-Studio that works in the background; open
Seg-Studio from the Start menu (Windows) or
~/Applications(macOS) to start it, or runstart-windows.bat/bash start-macos.sh. You should be able to reachhttp://localhost:8002/ui/in a browser. - A handful of test images — 5 to 10 photos of the parts you want to inspect. Standard formats (PNG, JPEG) work fine.
If someone else set up the server for you, just confirm the URL and move on.
Step 1: Open Seg-Studio (30 seconds)
Open your browser and go to:
http://localhost:8002/ui/
You should see a header bar with four tabs. The screen first opens in Japanese, whatever language your browser uses, so the tabs read プロジェクト, ラベル, 学習 and ライブ検査. To switch to English, click EN at the right end of the header: the tabs become Projects, Annotate, Training, and Live Inspect, and the button changes to JP for switching back. The browser remembers your choice. The Projects tab is selected by default.
Tip: If the page won’t load, the server probably isn’t running. Start Seg-Studio again, or look at the terminal where the server was started (the black text window that opened when Seg-Studio was started). If someone else set up this PC, tell them. See also Troubleshooting.
Step 2: Create Your First Project (1 minute)
A project holds your images, labels, and trained models for one inspection task.
- Type a name in the text field — something descriptive like
Surface Scratch TestorSolder Joint Check. - Click Create Project.
- A project card appears and is selected automatically.
That’s it. You now have a workspace ready for images.
Step 3: Upload Test Images (1 minute)
- Click the Annotate tab at the top (ラベル on the Japanese screen).
- Click the + button in the left image panel, or drag and drop image files directly into the panel.
- Wait for the upload progress to finish.
- Click any image thumbnail to load it onto the canvas.
You should see your image fill the center of the screen, with a class list on the right side.
Step 4: Label a Few Images (3 minutes)
This is where you teach the AI what to look for. You paint over defect areas so the model can learn the pattern.
- Create a class — Click Add Class on the right panel. Give it a name
like
scratchorcrack. This is the defect category (one kind of defect, with its own colour). - Select the Brush tool — Press B on your keyboard, or click the brush icon in the toolbar.
- Paint over a defect — Click and drag on the image to mark the defect area.
- Press [ and ] to shrink or grow the brush.
- Press E to switch to the eraser if you make a mistake.
- Move to the next image — Click another thumbnail in the left panel. Your work is saved automatically when you switch images.
- Repeat for at least 3 images. The more images you label, the better the results.
Tip: For faster labeling, try the SAM click tool (press S). Left-click on a defect and the AI will try to select its outline for you. Press Enter to confirm or Esc to cancel.
Step 5: Train Your First Model (a few minutes on an NVIDIA GPU)
Now let the AI learn from your labels.
- Click the Training tab at the top.
- Select a training mode — pick Defect detection for a first run. The Start Train button stays disabled until a mode is selected.
- Click Start Train. The default settings work well for a first run — no need to change anything.
- Watch the progress. The Models list shows the epoch and the best F1 so
far, and the Logs panel adds one line per epoch with its
loss— how far the AI’s answers still are from your labels. If the loss goes down over the epochs, the model is learning. - Training stops automatically when the model stops improving, so how long it runs depends on your hardware and your data. On an NVIDIA GPU, a first run over the handful of small images in this tutorial usually finishes in a few minutes. More images, larger images, a larger patch size (the size of the image pieces the AI studies at one time), or slower hardware can stretch it to tens of minutes or more.
Note: If the Start button is disabled, select a training mode first. For useful results you also want at least 3 labeled images with at least one class painted.
Step 6: Check the Results
The Result tab does not open by itself when training finishes. Click Results on the run in the Models list (or Open Results in the summary above it); the run’s Result tab opens in the tab bar.
- Click Run Inference to generate predictions on your images (the AI marks the defects it finds).
- Browse through images in the left panel. For each image you’ll see:
- The AI’s prediction overlay (colored regions)
- A confidence score (how sure the AI is)
Compare the prediction against your original labels. If the AI is missing defects or marking too much, that’s normal for a first run with only a few images.
What’s Next?
- Label more images and retrain. Accuracy improves significantly with 10-20+ labeled images. Focus on images where the model got it wrong.
- Try different tools for faster labeling:
- SAM click (press S) — AI-assisted selection with just a click
- Count objects, not just find them. If you need to know how many parts are in each image, pick the Count inspection training mode. It reuses the masks you just drew (your painted labels) — no new labelling — and separates objects that touch each other. You need 4 or more images containing the class.
- Export your model — open the run’s Result tab and click Export Model to save it as ONNX or CoreML (standard model file formats) for deployment on inspection devices.
Quick Troubleshooting
| Problem | What to check |
|---|---|
| Page won’t load | Is the server running? Try http://localhost:8002/ui/ again. More in Troubleshooting. |
| Training won’t start | Select a training mode first (e.g. Defect detection); then check you have labeled images. |
| Results look bad | Label more images and retrain. 10-20 or more labeled images recommended. |
| Everything feels slow | Check if another training run or heavy process is using the GPU. |
| Image upload fails | Make sure files are in a supported format (JPEG, PNG, BMP, TIFF, WebP) and not corrupted. |
Keyboard Shortcuts Reference
| Key | Action |
|---|---|
| B | Brush tool |
| E | Eraser tool |
| S | SAM click tool |
| D | Spot detect tool |
| [ / ] | Decrease / increase brush size |
| Enter | Confirm (SAM / Spot detect) |
| Esc | Cancel current operation |
| Ctrl+Z | Undo |
That’s the complete workflow: upload, label, train, check. Each cycle gets you a better model. Start simple, iterate, and let the results guide where to label next.