aicenter
A python based Soft IOC Server for Sample Alignment using a YOLO model.
Installation
python -m venv my-venv
source my-venv/bin/activate
pip install ai-center
To enabled downloading of the latest model file from HuggingFace, install with the [model] extra as follows:
pip install ai-center[model]
Running
To run the EPICS IOC directly, use the following command:
app.epics --device "AIC001" --model "/path/to/model.pt" --video "video_uri"
Command-line Arguments
--device: The EPICS root name of the device (e.g.,AIC001orAIC002). (Required)--model: Path to the YOLO model file. If omitted, the latest model will be downloaded from HuggingFace. The model is about 50 MB in size.--video: The URI for the video stream. (e.g.,redis://hostname/0030180F06E5:JPG) (Required)--confidence: Object detection confidence threshold. (Optional, default: 0.1)-v: Enable verbose logging. (Optional)
Currently, only file://, redis:// and http[s]:// video schemes are supported
EPICS Process Variables
AIC001:enable: Set to 1/0 to Enable/Disable InferenceAIC001:loop:score: Score of best loopAIC001:loop:box: Bounding Box of best loopAIC001:loop:valid: 1 if best loop is still validAIC001:loop:id: id of best loop, not used at the momentAIC001:crystal:score: Score of best crystalAIC001:crystal:box: Bounding Box of best crystalAIC001:crystal:valid: 1 if best crystal is still validAIC001:crystal:id: id of best crystal, not used at the momentAIC001:pin:score: Score of best pinAIC001:pin:box: Bounding Box of best pinAIC001:pin:valid: 1 if best pin is still validAIC001:pin:id: ID of best pin, not used at the momentAIC001:extra:box: Bounding Box array of extra Crystals (x1, y1, x2, y2) in sequence, length is 4 x number of extra crystalsAIC001:extra:score: Array of scores of extra crystalsAIC001:extra:valid: Array of validity of extra crystals, 1 if valid 0 if invalidAIC001:extra:id: Corresponding IDs, of extra crystals (not used at the moment)
If you installed the [view] extra, you can also run the stand-alone inference viewer which displays the inference in a
window as follows:
app.view --model "/path/to/model.pt" --video "video_uri"
Command-line Arguments
--model: Path to the YOLO model file. If omitted, the latest model will be downloaded from HuggingFace. The model is about 50 MB in size.--video: The URI for the video stream. (e.g.,redis://hostname/0030180F06E5:JPG) (Required)--confidence: Object detection confidence threshold. (Optional, default: 0.1)-v: Enable verbose logging. (Optional)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_center-2026.8.2.tar.gz.
File metadata
- Download URL: ai_center-2026.8.2.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.3.1 CPython/3.14.7 Linux/7.1.6-201.fc44.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7b223366061590e0cbee16aa2f5e9fa09e2bf83833a35764c051b053ae25845
|
|
| MD5 |
4fb451ea2efe2f13dd48d75a1aa17c37
|
|
| BLAKE2b-256 |
8e2657ca76aa4b66253619b8559a1756f956f0d5517e47ae119f4559929c9767
|
File details
Details for the file ai_center-2026.8.2-py3-none-any.whl.
File metadata
- Download URL: ai_center-2026.8.2-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.3.1 CPython/3.14.7 Linux/7.1.6-201.fc44.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
615c27f3a238c54a2af26069a0fd173886f52a87e67c64e2abaf136f5d59317e
|
|
| MD5 |
0a5dee98f3e3d25ec72a795cc93fadea
|
|
| BLAKE2b-256 |
feb44a4bc284afc80256df61bba9cc6c9d82687c46d845d55be5fa0a3e01515a
|