- Visitor gate: https://studio.edgeimpulse.com/public/1153004/live
- Riddle keywords: https://studio.edgeimpulse.com/public/1172323/live
- Costume: https://studio.edgeimpulse.com/public/1172324/live
- Props: https://studio.edgeimpulse.com/public/1160020/live

The Story

“I follow you everywhere, copy every move, and never once say thank you.” “I have eight legs, I knit my own house, and flies are my dinner guests.”(Answers at the end.)
Answer the riddle for sweets: a visitor answers out loud and a sweet comes down the tongue.
Why I built it
I wanted to make trick-or-treat at our door a little more fun and interactive: something that makes people stop, think, laugh and earn their sweet, with no phone in sight. Riddling gatekeepers go back to the Sphinx, and long before trick-or-treat, people went guising: perform at the door, get fed. The gargoyle is that old deal with a new brain. In one line: a cursed stone gargoyle for the front door that asks trick-or-treaters a riddle out loud, listens to their answer, and pays a right answer (or a loud enough scream) with one wrapped sweet down its tongue. Everything runs offline on one Arduino UNO Q: four Edge Impulse models, a voice rendered on the board, and a microcontroller that drives the lights, the candy servo and the mist with a watchdog that fails safe. Code, CAD and schematic (MIT): https://github.com/Abhinavkrishna3211/Feed-the-GargoyleWhat It Does
Feed the Gargoyle: the idea, explained as a stick figure animation.
- You walk up. After about a second it notices you, and its eyes open.
- It greets you. If it is sure about your costume, it teases the costume (never the person in it).
- It picks its toll at random: a riddle to answer out loud, or a scream loud enough to light every plate on its spine.
- The eight glowing plates on its spine count down while it waits, or fill up as you scream.
- Right answer or big enough scream: green eyes, a puff of mist and one wrapped sweet down the tongue. Wrong answer: a cackle, a hint and one more go.
- It says goodbye and goes back to sleep.

A wrong answer to the riddle gets a cackle and a hint.
The riddle timer runs out before anyone answers.
Scream for candy: a scream loud enough to fill the spine wins a sweet.
Failing the scream task: the scream is too quiet to fill the spine, so no sweet.
Gargoyle demo: the cardboard prototype on the same UNO Q, before the stone body existed.
In its own words
Every line is written ahead of time and rendered on the board in the gargoyle’s own voice. A few favourites, straight from the voice bank:
It only names a costume when the costume model is sure. Otherwise you get a general greeting. It teases the costume, never the person in it: the line filter throws out anything about face, body, age or size.
What is new here
- A four-model cascade on one board, fully offline. A small visitor gate runs all the time. The costume, props and keyword models only wake when there is someone to look at or listen to. Only one heavy model runs at a time.
- An LLM where it actually fits. Gemma 3 1B runs on the UNO Q, but with camera and audio bricks busy it writes about 2.2 to 2.6 tokens per second (4 GB UNO Q, 3 threads, a 12 minute and a 30 minute run). A child will not wait 20 seconds for a reply. So the language model drafted lines while the board was idle, and Piper turned the checked lines into speech on the board ahead of time. During play it only picks a line.
- A scream judged by loudness. A calibrated loudness meter on the spine was fairer and easier to understand for a seven-year-old: fill the spine, win the sweet.
- Two brains with a safety net. The Linux side sends a heartbeat on every pass of its game loop, about ten times a second. If the microcontroller hears nothing for one second, it parks the servo, stops the mist, darkens the spine and holds the eyes at a still, dim glow by itself.
- Every number measured on the board. Every figure says which board, which settings and how it was measured. The raw logs are in the repo.
Results at a glance
How It Works

- Linux side: camera, microphones, the four models, the game and the voice.
- Microcontroller: the eye rings, the 24 spine LEDs, the candy servo, the IR drop sensor and the mist maker.

Bill of Materials

Hardware
Software and services
Tools
3D printer with a 256 x 256 mm bed, soldering iron with an insert tip, multimeter, calipers, wire strippers, flush cutters, a long 2.5 mm ball-end hex key, hot glue gun, gloves, dust mask and safety glasses.Step 1: Set Up the UNO Q
Make sure the board works before any wiring. It is much easier to fix things now than inside a statue.
- Download Arduino App Lab (Arduino’s program for writing and running apps on the UNO Q) from the Arduino software page and install it. On Windows, pick Windows (10/11), NSIS installer (or Windows 11 (ARM) on an ARM laptop) and run the
.exe.

- Open App Lab. If Windows asks about
mdns-discovery.exe, select Allow. App Lab needs it to find the board over Wi-Fi later. - Connect the UNO Q to your laptop with a USB-C data cable. Wait for the board to boot (up to 60 seconds), then select it in App Lab.
- You should see: your UNO Q listed with a USB icon.

- Follow the setup wizard that opens for a new board:
- Board configuration: pick your keyboard layout and give the board a name, for example
gargoyle. On your network it becomesgargoyle.local. - Network setup: pick your Wi-Fi and enter its password. The board needs the internet for updates and Bricks.
- Linux password: set a password for the
arduinouser. Write it down: SSH and file copies ask for it. - Arduino account: sign in, or skip and do it later from Account.
- Board configuration: pick your keyboard layout and give the board a name, for example
- If App Lab shows Updates available, select Install updates. Keep the board plugged in until it finishes, then select Restart App Lab if asked.
- Select Inspirations in the left sidebar, open Blink LED from Python and select Run (the play icon, top right).
- You should see: the Run button turns into Stop and an LED on the board blinks.

- Open Settings. Under System info, check that Remote access (SSH) is on (the wizard turns it on with Wi-Fi). Under Network connections, note the board’s IP. Every command below uses it as
<board-ip>;<board-name>.localworks too. - On your computer, get the project files:
- Copy the app to the board. It asks for the Linux password from item 4. App Lab keeps its apps in
/home/arduino/ArduinoApps/, so it shows up under Apps as Feed the Gargoyle.
Step 2: Find the Language Model’s Limit (Optional)
The gargoyle does not need this at the door. Do it to see what a language model can and cannot do on a board this size, and why the voice is pre-rendered.- Open a terminal on the board:
ssh arduino@<board-ip> - Install Gemma 3 1B with App Lab’s own tool. It took about 2 minutes on my board and used about 690 MB of disk.
- On your computer, copy the test scripts to the board:
- On the board, run the speed test at 3 threads. It starts llama.cpp with
-t 3 -c 2048 --cache-reuse 256and asks for a short gargoyle line five times.
- You should see: about 4.3 tokens per second. Mine gave 4.32 (median of 4 runs, 4 GB UNO Q, nothing else running).
- Try prompt caching. This puts a fixed 168-token block of rules in front of the prompt and lets the server keep it.
- You should see: the first request is slow, then every later one reads the prompt in under a second.

- Let it draft lines. The script checks each one: 14 words or fewer, ends with
.,!or?, nothing about face, body, age or size, no riddle answers.
- You should see: roughly one draft in three or four passes. Read the passing ones too: some are good, many only look right.

Aside: my favourite rejected line was “Stuck! Wait, a chilling request.” I still do not know what it means, and neither does the gargoyle.
Step 3: Give It a Voice
The gargoyle speaks from a bank of short lines, one list per situation: greetings, costume teases, riddles, hints, wins, too quiet, wrong answer, goodbye and a polite apology if the dispenser jams. A few of mine:- “Who comes knocking at a hungry stone’s door? Speak, sweet seeker.”
- “Louder! A mouse sat in your voice and kept it tiny.”
- Install Piper on the board and download the en_GB-alan-medium voice, following the Piper README (link in References).
- Write your lines as a JSON file: each key is a situation, each value a list of lines. Keep every line to 14 words or fewer and never mention a face, body, age or size.
- On your computer, set
GARGOYLE_SSHto the helper that reaches your board (see the top ofscripts/gargoyle_speak.py), then render:
--length_scale 1.1), then adds the stone effect from scripts/gargoyle_fx.py: pitch down and a touch of echo. If it stops, run it again; it skips files it already made.
- You should see: a list of file names scroll past, about 8 seconds per line on my board.

- Copy the rendered lines into the app on the board:
- You should see: files named like
greet_0.wavandwin_3.wavin the bank folder.

Step 4: The Four Models at a Glance, and the Quick Route
Four small models do the seeing and hearing, and each one has its own beginner section after this step (Steps 5 to 8), all done in Edge Impulse Studio. If you just want the gargoyle working tonight, use the quick route below and come back to the training steps later.
Accuracy numbers are float32 in Studio on each project’s fixed test set, top answer. Board timings are in each step.
Edge Impulse Studio is an online tool where you upload examples, train a model and download it for your board. My four projects there are public. Cloning copies the data, the settings and the trained model into your own account.
For each project:
- Open the link and click Clone this project at the top right. Give it a name and wait a few minutes.
- In your copy, open Deployment in the left menu.
- Click the Deployment target box (it says C++ library at first), search for Linux (AARCH64) and select it.
- Under Model optimizations, select Unoptimized (float32). The page picks int8 by default.
- Click Build. A
.eimfile downloads: the trained model packed as one file the UNO Q can run. Rename it to the name in the table.

.eim file. It loads the bare model file with LiteRT (Google’s small TensorFlow Lite runtime, which requirements.txt installs). So for the costume project, do item 1 (clone it), skip items 2 to 5, and do this instead:
- In your copy of the costume project, click Dashboard, the first item in the left menu.
- Scroll down the Dashboard page to the table called Download block output.
- Find the row for the transfer learning block and click TensorFlow Lite (float32). A file of about 31 MB downloads.
- Rename it to
costume.tflite.
- Copy the visitor and keyword models to the folder the App Lab bricks read from (bricks are App Lab’s ready-made blocks, here the camera and microphone classifiers):
- Copy the costume and props models next to the app:
- Make them runnable:
- You should see: three
.eimfiles, withcostume.tfliteandyunet.onnxnext toprops.eim. The props model uses YuNet to find the face it crops around.

Step 5: Train the Visitor Gate in Edge Impulse Studio
This model answers one question all night: is someone standing in front of me? Everything else waits for it. Shortcut: my finished project is public at https://studio.edgeimpulse.com/public/1153004/live. Open it and click Clone this project to get my data and settings in your own account, then jump to item 14. Get the images ready- Make two folders,
visitorandempty.- visitor: an adult whose body fills at least 40 percent of the picture’s height.
- empty: everything else. Rooms, doors, pets, people far away, hands or feet at the edge, and the tricky ones: statues, posters, mirrors and TVs with people on them.
- Keep a separate test set in its own two folders, taken from a different part of the dataset. I used the COCO public photo dataset: training from its train set, testing from its val set.
- In Edge Impulse Studio, click Create new project.
- Type
gargoyle-visitor, choose Personal and Public, and click Create new project.

- Open Data acquisition and click the upload icon.
- Upload the training
visitorfolder with Enter label set tovisitorand Training selected. Do the same forempty. - Upload the two test folders the same way with Testing selected. Do not use the automatic split, or your separate test set is lost.
- You should see: both labels in the list. Mine has 6,988 images: 6,500 training and 488 testing. 13 of the test images are disabled after I checked their labels, so 475 get scored.

- Open Create impulse. Set Image width and Image height to
160and Resize mode toSquash. - Click Add a processing block and choose Image.
- Click Add a learning block and choose Transfer Learning (Images). Name it
Visitor presence. - Click Save Impulse.
- You should see: Output features
2 (empty, visitor).
- You should see: Output features

- Open Image. Set Color depth to
RGBand click Save parameters.

- Open the Generate features tab and click Generate features. Wait for it to finish.
- You should see: a cloud of blue and orange dots in the Feature explorer. They overlap a lot. That is normal here; the network sorts them out.

- Open Visitor presence.
- Set Number of training cycles to
12, Learning rate to0.0005, Training processor toCPU. Tick Data augmentation and leave Use learned optimizer unticked. - Click Choose a different model and pick MobileNetV2 160x160 0.5. Set the final layer to
16neurons and dropout to0.1.

- Click Save & train. You can close the tab and come back.
- You should see: about 90 percent on the validation set, with most of the confusion matrix on the diagonal. Mine showed 89.5 percent in the int8 view.

- Open Model testing, set Model version to Unoptimized (float32) and click Classify all.
- You should see: about 90 percent. Mine scored 91.79 percent on the 475 test images, float32, in Studio: 93.9 percent of visitors caught, and 11.2 percent of empty scenes wrongly called visitor. The one-second rule below calms those false alarms down.

- Open Deployment and pick Linux (AARCH64).
- Under Model optimizations, select Unoptimized (float32) and click Build.
- You should see: Studio’s estimate for the UNO Q: 17 ms, 1.6M RAM, 91.79 percent for float32. The int8 build is smaller but slower here (41 ms) and less accurate (88.63 percent), so float32 it is.

- Rename it
visitor.eimand install it as in Step 4, items 6 to 8.
app/python/sensors.py. (A replay of recorded video, not a measurement on the board.)
What I tried first
- FOMO object detection (boxes around people) underfit on my data. The game only needs a yes or a no, so a plain classifier won.
- Cleaning the labels mattered more than any setting. My audit found 15 percent of the test visitor labels wrong. Adding the pictures the model got wrong, checked by eye, took it from 90.3 to 91.8 percent.
- Bigger was not better. 25 cycles gave no gain, and the full-width MobileNetV2 scored lower (88.6 percent).
- Score stuck around 70 to 80 percent: Look at the wrong ones in Model testing. Usually they are mislabelled. Fix the label, do not delete the hard ones.
- Wakes up for posters or TVs: Add more posters, screens and statues to
empty, then retrain. - Training job is refused as too long: Lower the training cycles. Personal projects have a 60 minute job limit.
- Model will not load or is slow: Check you built Unoptimized (float32) for Linux (AARCH64).
Step 6: Train the Riddle Keyword Spotter in Edge Impulse Studio
The gargoyle listens for six riddle answers: shadow, pumpkin, mirror, candle, spider, scarecrow. This step teaches a small model to hear them, all done in Edge Impulse Studio. Shortcut: my public project https://studio.edgeimpulse.com/public/1172323/live holds the trained model the gargoyle runs. Clone it and deploy it as in Step 4 if you only want it working. Get the clips ready- Make one folder per label:
shadow,pumpkin,mirror,candle,spider,scarecrow, plusunknown(other words, especially close ones like “handle” or “narrow”) andnoise(room sounds, music, crowds, no speech). - Each clip is one second long, 16 kHz, with the word somewhere in the middle. I cut mine from public speech datasets (Multilingual Spoken Words, Speech Commands, LibriSpeech) and added Piper synthetic voices for the rare words.
- Keep a separate set of test clips from different speakers than the training clips. If one voice is in both, the test score is too kind.
- In Edge Impulse Studio, click Create new project.
- Type the name
gargoyle-keywords, choose Personal, and click Create new project.

- Open Data acquisition and click the upload icon.
- Upload each training folder with Enter label set to the folder name and Training selected.
- Upload your test clips with Testing selected. Do not use the automatic split, or your speaker split is lost.
- You should see: your clips listed with their labels. Mine had 16,522 training and 776 test clips. Studio shows a red warning for a 96 / 4 split. That is fine here: the test set is kept small and fixed on purpose.
- On Data acquisition, click Connect a device and choose your computer. When the browser asks for the microphone, allow it and pick the Boya.
- In Collect data, set Label to the word you will say, Sample length to
1000ms and the frequency to16000Hz. - Click Start sampling and say the word once, clearly, in the middle of the second. Do 20 to 30 per word, at different distances and loudness.
- Record some clips of just your room with the label
noise. - Keep these clips in Training. The test set stays the clips from other speakers, so the score still tells you how well it hears strangers.

- Open Create impulse. Set Window size to
1000 ms, Window increase to500 ms, Frequency to16000and tick Zero-pad data. - Click Add a processing block and choose Audio (MFE).
- Click Add a learning block and choose Transfer Learning (Keyword Spotting).
- Click Save Impulse.
- You should see: 8 output features: candle, mirror, noise, pumpkin, scarecrow, shadow, spider, unknown.

- Open MFE and leave every setting at its default: Frame length
0.02, Frame stride0.01, Filter number40, FFT length256. Click Save parameters. The keyword transfer block only accepts these defaults; when I tried longer frames or 32 filters, training was refused.

- Open the Generate features tab and click Generate features. Wait for it to finish.
- You should see: a cloud of coloured dots in the Feature explorer. The words overlap a lot. That is normal for speech; the network sorts them out.

- Open Transfer learning. Click Choose a different model and pick MobileNetV2 0.35.
- Fill in the settings:
- Number of training cycles:
90 - Learning rate:
0.001 - Training processor:
GPU - Final layer:
128neurons, dropout0.1 - Data augmentation: off. With the keyword transfer block, Studio’s audio augmentation stopped my job with a Python error, so leave it off.
- Number of training cycles:
- Open Advanced training settings: Batch size
64, and tick Auto-weight classes so the bigunknowngroup does not drown out the rare words. - Click Save & train. You can close the tab and come back.
- You should see: about 95 percent on the validation set. Mine showed 94.8 percent. Retraining gave the identical score, so Studio’s training is repeatable.

- Open Model testing, set Model version to Unoptimized (float32) and click Classify all.
- You should see: a confusion matrix with an extra Uncertain column. Studio files any clip whose top score is below its threshold there and counts it as wrong, so the percentage on screen is lower than the real one.
- The fair number: counting only the 569 clips from new speakers and taking the top score, this Studio-only model got 530 of 569 (93.15 percent), and the float32 .eim on the UNO Q gave the same 530, at 34.5 ms per window (median, no app running). The main error is
candleheard asunknown(12 clips).

- Open Deployment. Click the Deployment target box (it says C++ library at first), search for Linux (AARCH64) and select it.
- Under Model optimizations, click Select next to Unoptimized (float32), then click Build. Rename the file
keywords.eimand install it as in Step 4, items 6 to 8.

keywords.eim on the UNO Q with a 1 s window every 100 ms (4 GB board, app running). Single windows caught 299 of 306 answers (97.7 percent) with 96 false alarms in those 569 s of nonstop speech. Asking for 3 of 4 windows in a row caught 292 (95.4 percent) with 13 false alarms. The app uses single windows, since the gargoyle only listens while a riddle is open and a missed answer hurts more than a rare stray one.
What I tried
- Clean test data first. My October dataset had the same speakers in training and testing and scored 80.2 percent. With a proper speaker split the same kind of model scored 74.2 percent (422 of 569 new test clips), the honest number.
- Longer training is not better. The plain Studio classifier block at 200 cycles stayed at 85.8 percent (488 of 569). The keyword transfer block was the jump.
- Other transfer models. MobileNetV1 reached 82.8 percent on validation and Tiny Conv2D 84.4 percent on the test clips. MobileNetV2 0.35 won.
- The EON Tuner (Studio’s automatic search) scored 65 to 76 percent on its first five trials.
- More voices fixed “candle”, the hardest word in every run.
- Good in Studio, poor in the room: Your clips are too loud or too clean. Match the levels to your board’s microphone and mix in real room noise.
- One word keeps winning: It has far more clips than the rest. Balance the folders, or tick Auto-weight classes.
- Training refused with a frame or filter error: Put the MFE block back to its defaults (item 13).
- Training stops with a Python error: Turn data augmentation off (item 16).
- Training job refused as too long: Lower the training cycles. Free projects have a time limit per job.
- Model will not load: You built the int8 version. Rebuild with Unoptimized (float32).
Step 7: Train the Costume Model in Edge Impulse Studio
This is the bit that makes people laugh: the gargoyle noticing you came as a pirate. It is also the easiest one to get wrong, so there is one firm rule: it only comments when it is confident. Otherwise it says something playful that claims nothing. And it only ever talks about the costume, never about anyone’s face or body. Shortcut: my project is public at https://studio.edgeimpulse.com/public/1172324/live. Click Clone this project to get my photos, impulse and trained model, then jump to item 22. Get the images ready- Make one folder per class. Mine are
batman,captain_america,iron_man,spiderman,superman,wonder_woman,pirate,princess,skeleton,witch,zombieandempty(ordinary clothes or nobody). Each label is also the name of its line group in the voice bank, so if you add or rename a class, add lines with the same name. - Use photos of people in costume. I used public web photos (Wikimedia Commons, Flickr, Openverse) and cropped each person out.
- Look at every photo yourself. Remove statues, figurines, shop mannequins, drawings, headless shop dresses and repeats.
- Split off a test set and keep it fixed. Photos from the same photographer or party go all in training or all in testing. I split by a hash of the source, so the split never changes between runs.
- In Edge Impulse Studio, click Create new project.
- Type
gargoyle-costume, choose the project type and Public, and click Create new project.

- Open Data acquisition and click the upload icon.
- Upload each training folder with Enter label set to the folder name and Training selected.
- Upload the test folders the same way with Testing selected. Do not use the automatic split, or your fixed test set is lost.
- You should see: 970 items, split 81 % / 19 %: 784 training and 186 testing, in 12 labels.

- Open Create impulse. Set Image width and Image height to
224and Resize mode toSquash. - Click Add a processing block and choose Image.
- Click Add a learning block and choose Transfer Learning (Images). Name it
costume. - Click Save Impulse.
- You should see: 12 output features, one per class.

- Open Image, set Color depth to
RGBand click Save parameters. Then open the Generate features tab and click Generate features. Wait for it to finish.- You should see: the Feature explorer with 12 coloured groups that overlap a lot. That is normal; the network sorts them out.


- Open costume. Under Neural network architecture, click Choose a different model and pick EfficientNet.
- Fill in the training settings exactly like this:
- Training processor:
GPU. On a free personal project, jobs run on CPU with a 60 minute limit, and this recipe does not fit in it. Clone my project instead, or see “What I tried” for a smaller setting that does fit. - Number of training cycles:
40 - Learning rate:
0.0005 - Model size:
B2 - 7.7M params, 30.8 MB - Use pretrained weights: ticked
- Freeze % of layers:
70 - Last layers:
dropout: 0.3 - Data augmentation:
flip, crop, brightness
- Training processor:

- Open Advanced training settings and set Validation set size to
15percent, Batch size to16, and turn on early stopping with patience6and minimum change0.001. - Click Save & train. You can close the tab and come back.
- You should see: Accuracy 90.7 % and loss 0.28 on the validation set, float32. The validation set is only 15 percent of the training photos, so do not trust this number on its own; the test set in the next item is the real check.

- Open Model testing, set Model version to Unoptimized (float32) and click Classify all.
- You should see: 88.17 % with an UNCERTAIN column. Studio counts any answer under its confidence threshold as uncertain, not as right. Counting the top answer instead, my final model gets 92.5 percent (172 of 186 test photos), float32, in Studio.

- Look at the weakest classes in the confusion matrix. On mine: skeleton 7 of 10 (two called pirate), witch 12 of 15, zombie 4 of 5. The rest miss one photo or none.
- Check the int8 version too, if you are curious. On the validation set it scored the same as float32 here, but on this board float32 is faster (next item), so there is no reason to use int8.
- Open Deployment and pick Linux (AARCH64).
- Under Model optimizations, look at Studio’s estimate for the UNO Q.
- You should see: float32 337 ms per picture, int8 537 ms and 86.02 percent. Faster and more accurate, so float32 it is.

- In the left menu of this Edge Impulse Studio project, click Dashboard (the first item) and scroll down to the Download block output table. There, download the TensorFlow Lite (float32) file of the transfer learning block (about 31 MB). Rename it
costume.tfliteand copy it as in Step 4, item 7. The app runs it with LiteRT, whichrequirements.txtinstalls.- On the board: 172 of 186 test photos, the same as Studio, and a median 362 ms per picture with the whole app running (2 threads, 4 GB UNO Q). The costume check runs once a second, so that fits.
- Standard MobileNetV2 160x160 1.0: about 76 percent
- EfficientNetV2B0 in expert mode (my own training script), 224 px: about 167 of 186
- Studio EfficientNet block B0, 90 percent frozen, 15 cycles, CPU (fits a free project): 163 of 186 (87.6 percent)
- EfficientNet B0, 70 percent frozen, 40 cycles, GPU: 169 of 186
- Same with B1: 172 of 186
- Same with B2: 174 of 186
- B2 again, same settings, retrained: 172 of 186 (final, the one in the screenshots)
- YOLO-Pro costume detector, four sizes: best 157 of 186
- Score stuck in the 70s: Check the model is EfficientNet, not the default MobileNet, and that pretrained weights are ticked.
- Training job stops at 60 minutes: Your project has the free job limit. Use B0, 90 percent frozen, 15 cycles, or clone my trained project.
- One costume is always wrong: It needs more and more varied photos. Check its wrong ones by eye; they are often mislabelled.
- Model testing looks much lower than validation: Look at the UNCERTAIN column first, then count the top answers (item 19).
- int8 build is slower than float32: That is expected on this board. Use float32.
Aside: Spider-Man was the easiest costume to learn. Nobody half-commits to a Spider-Man costume.So now a Batman walks up. The gargoyle spots the cape and opens with “Batman spotted! Gotham’s riddles are easy, try mine.” He shouts the wrong answer, and a lump of painted plastic cackles at the World’s Greatest Detective and keeps the sweet.
Step 8: Train the Props Model in Edge Impulse Studio
Lots of people come in half a costume: a hat, a crown, a pair of silly glasses. When the costume model is not sure, this second model looks for something worn, so the gargoyle still has something to say. It is an object detector, so it draws a box around each prop it finds. Five classes:crown, eye_mask, glasses, hat and scarf. There is no none class: no box means no prop.
Shortcut: my project is public at https://studio.edgeimpulse.com/public/1160020/live. Click Clone this project to get my crops, boxes, impulse and trained model, then jump to item 23.
Get the images ready
- Collect photos of people wearing each prop. I used Open Images, Fashionpedia and Openverse (the last one for more crowns and eye masks).
- Find the largest face in each photo with YuNet, the face finder from Step 4, and cut a square around it: 3.2 face heights wide, face centre 42 percent of the way down. The app cuts exactly the same crop on the board, so keep these numbers.
- Draw a box around every prop in every crop. I started from the dataset boxes and from boxes suggested by an open-vocabulary detector (OWLv2), then checked every crop by eye and fixed or removed boxes.
- Look at every crop. Remove dolls, statues, cartoons, props held in a hand or on a stand, and crops too small or dark to judge.
- Split by photographer, so nobody’s photos land in both training and test. Otherwise the test score flatters the model. Put the training crops in one folder and the test crops in another, each with its boxes in a
bounding_boxes.labelsfile (Edge Impulse’s box format) next to the images.
- In Edge Impulse Studio, click Create new project.
- Type
gargoyle-props, choose the project type and Public, and click Create new project.

- Open Data acquisition and click the upload icon.
- Select every file in the training folder, including
bounding_boxes.labels, choose Training and click Upload data. Studio reads the boxes from the labels file. (I sent mine with a small upload script; the Studio uploader takes the same file.) - Upload the test folder the same way with Testing selected. Do not use the automatic split, or your fixed test set is lost.
- You should see: 6,648 items, split 82 % / 18 %: 5,495 training and 1,153 test. Click any crop and its box shows on the right.

- Open Create impulse. Set Image width and Image height to
224and Resize mode toSquash. - Click Add a processing block and choose Image.
- Click Add a learning block and choose Object Detection (Images).
- Click Save Impulse.
- You should see: 5 output features: crown, eye_mask, glasses, hat, scarf.

- Open Image, set Color depth to
RGBand click Save parameters.

- Open the Generate features tab and click Generate features. Wait for it to finish.
- You should see: the Feature explorer with five colours mixed together. That is normal for raw pixels; the detector sorts them out.

- Open Object detection. Under Neural network architecture, click Choose a different model and pick YOLO-Pro.
- Fill in the training settings exactly like this:
- Training processor:
GPU. YOLO-Pro only trains on a GPU. - Number of training cycles:
100 - Learning rate:
0.001 - Model size:
small (6.9M) - Use pretrained weights: ticked
- Training processor:
- Open Advanced training settings and set Batch size to
32, spatial and colour augmentation tomedium, and early stopping from epoch50. - Click Save & train. You can close the tab and come back.
- You should see: the result card opens on Quantized (int8) and shows 0.00. That is not a failed run: this model does not survive int8 (more below). Set Model version to Unoptimized (float32) to see the real score.

- Open Model testing, set Model version to Unoptimized (float32) and click Classify all.
- You should see: mAP@50 around 0.8. Mine scored 0.82 on the 1,153 held-out crops. Red rows are crops where a box was missed or landed on the wrong prop.

- Scroll down to the metrics. mAP@50 is the one to watch: it counts a box as found when it overlaps the real prop by at least half.

- Open Deployment and pick Linux (AARCH64).
- Under Model optimizations, click Select under Unoptimized (float32), then click Build. The page selects int8 by default, so check this every time.
- You should see: Studio’s estimate for the UNO Q: float32 508 ms per frame, int8 917 ms.

- Rename it
props.eimand install it as in Step 4, items 6 to 8.
- A classifier first. Five classes with
none, MobileNetV2 at 160 x 160: 69.0 percent on 287 test images. Scarf andnonewere mostly guesses, so I switched to boxes. - FOMO. Edge Impulse’s tiny detector. The best reached a mean F1 of 0.70 on my test set.
- Bigger input. At 320 x 320 the same YOLO-Pro scored 0.864, a tie with 224 x 224, at twice the time: Studio estimated 1056 ms against 508 ms per frame. Every run from here on landed between 0.840 and 0.864, so more data, not a bigger model, is the next step.
- Smoothing. A prop stays on for 5 checks (about 4 s) after it was last seen. On my test sequences this cut false alarms in half (3.14 to 1.57 a minute) and stopped the label flickering, with no added delay.
- Every score is 0.00: Model version is set to Quantized (int8). Switch to Unoptimized (float32).
- Training will not start: Training processor must be GPU for YOLO-Pro.
- Props are found in Studio but not at the door: The crop on the board must match the training crop. Check that
yunet.onnxsits next toprops.eiminapp/python/models/. - Crowns are missed: Add more crowns, worn on the head, in many styles. It needs more examples than hats.
Step 9: Look Inside the 3D Model
Every part is in the repo underhardware/print/, ready to print, with PRINT_PLAN.md and ASSEMBLY.md next to them. This step shows what is inside, so the next steps make sense.

- Size. The finished statue, plinth included, is about 650 mm tall, 590 mm long (front to back) and 560 mm wide (wing tip to wing tip), measured on the final 3D model. That is the smallest size that fits the dispenser under the spine.
- Eyes. Only the visible front of each eye is clear: a thin dome with a dark slit printed through it. The lids around it are thick grey, so only the iris glows.
- Third eye. The camera hides in the middle of the forehead spiral. Its 13.9 mm lens slides into a 14.2 mm hole and holds the camera by itself.

- Spine. Each plate is a thin clear shell with a peg underneath that presses into a socket in the back, with a hole through for the LEDs.
- Candy path. The dispenser sits in the head under the spine, so no plate is covered. The chute runs down the throat and out over the tongue. The mouth is fixed open: no moving jaw near small hands.
- Refill lid. A lid in the top of the head lifts off. Its edge follows a carved crack, and magnets hold it shut.
- Plinth. Holds the electronics, two speakers behind small worn-looking holes, a service door and a cable hole for the charger.


Step 10: Test Print the Eye and a Spine Plate
The eyes print into the head, one of the longest prints in this build. If an eye glows wrong, you lose the whole print. So test the risky parts small first.- Print one eye test piece with exactly the settings you will use for the head: 0.2 mm layers, the same grey and clear spools, clear only on the visible front of the eye. Clear filaments glow very differently, so test the spool you will really use.
- You should see: a smooth clear dome, a crisp dark slit, and no grey streaks in the clear part.

- Print one spine plate in clear and its patch of back in any spare colour.
- Press the plate into the socket.
- You should see: the plate sits down on its ledge all the way round, no gap and no rocking. It needs a firm push, not a hammer.


- Wire D5 on the UNO Q through the 330 to 470 ohm resistor to the eye board’s DIN. Put the resistor at the eye board end and keep the data wire short, about 10 cm.
- Wire the eye board’s 5V and GND. Put the 1000 uF capacitor across 5V and GND next to it, striped leg to GND.
- Wire the 3 strip pixels after the eye: eye DOUT to the first pixel’s DIN, then DOUT to DIN along the three. Thread them up through the socket hole so they sit under the plate.
- In App Lab, make a new app, paste this into its sketch and press Run:
- You should see: amber, mint, green, then red in the eye, each getting brighter in six steps. The plate glows purple, orange, green, then red.
Safety: this test runs from the UNO Q’s own 5V pin, which is fine for one eye and one plate at these levels. Never run the full chain, the servo or the mist from it.
- Push the eye board into the pocket behind the eye. Switch off the room lights and look from 1 m away, straight on, from the side and from a child’s height.
- You should see: only the iris glows, the slit stays dark, and you cannot count the seven LED dots. At the second step (20 percent, the cap in the game) it glows clearly in a dim doorway without glaring.
Eye light test: the eye test piece lit.
Spine light test: one spine plate lit in its socket.
- Leave both on the brightest step for 10 minutes, then touch them.
- You should see: barely warm.
Step 11: Build and Test the Candy Dispenser
One servo turns a one-pocket rotor under a tube of sweets. Each turn lets exactly one sweet fall down the chute, past an IR sensor that confirms the drop.- Measure one sweet with calipers. Mine (a wrapped eclair toffee) is 31 mm long, 13.2 mm thick and 53 mm long over the wrapper twists.
- The print files are sized for this sweet. Pick wrapped sweets of about the same size: a much shorter sweet can drop two at a time, and a longer or thicker one will not fit the pocket.
-
Print the fit coupons in
hardware/cad/dispenser/stl/test/fit/first. Each prints in minutes and tests one fit:fit_tubeintofit_socket: slides in with a light push, no wobble (0.2 mm per side);fit_collarontofit_boss: pushes on and stays on (0.1 mm per side);fit_servo: the SG90 drops in gear end first;fit_rotoronto the servo horn: presses on with no play.
- If a coupon is too tight or too loose, change X-Y hole compensation (for sockets) or X-Y contour compensation (for pegs) in your slicer’s quality settings by 0.05 mm, and print that coupon again.
-
Print the test rig from
hardware/cad/dispenser/stl/test/: housing, rotor, servo plate, shelf, tube and long chute. The shelf tilts it 20 degrees, as in the statue.

- Push the servo into the servo plate and fix it with the screws that came with it. Push the rotor onto the horn, but do not fit the horn screw yet (Step 15 sets the angle).
- Drop one sweet into the tube and turn the rotor slowly by hand, from the load side, over the top, to the chute side and back. Repeat with 10 sweets, then with a full tube.
- You should see: exactly one sweet per turn, sliding out of the chute by itself.
- Print the statue dispenser from plate
04_plate_13_dispenser_grey.3mfinhardware/print/. It is the same mechanism with a short chute; the throat and tongue carry the sweet the rest of the way. - Paint the inside wall of the chute opposite the side window matte black, so the IR sensor sees only the sweet. Fit the IR module at the window.


Candy dispenser final test: sweets dropping on command from the UNO Q.
What the first rig taught me. The sweet hung in the pocket and the outlet. Every part on the sweet path got 3 mm more room, and the chute went from 35 to 45 degrees: at 35 the sweet rolled slowly, at 45 it slides. My first design used a stepper and a pocket wheel; one servo does the same job with fewer parts.
Safety: once the servo is powered, keep fingers out of the rotor. It is small, but it pinches.Not working?
Step 12: Print and Assemble the Statue

- Open the plates in
hardware/print/in your slicer in the order ofPRINT_PLAN.md: head, face, dispenser and spine first, then body, wings and plinth. - Print plate 01, the head, as one two-colour print: grey for the head, clear only for the eye fronts, exactly as in your eye test.

- Print plate 05, the eight spine plates, in clear.

- Print the remaining plates in grey. Any colour works for body and plinth parts because the primer and cement cover it, but keep everything around the eyes and LED pockets opaque.
- Cut 1.75 mm filament into 12 mm pins. Push one into each hole on one side of every cut face.
- Dry fit the whole statue with no glue, following
hardware/print/ASSEMBLY.md.- You should see: every joint sits flat, no rocking, no gap. If a pin is tight, twist a 2 mm drill bit in the hole by hand.
- Glue the joints in the same order: CA glue for short joints, epoxy for long ones. Mix epoxy for one joint at a time, tape each joint closed and let it cure.

- Do not glue the refill lid, the spine plates or the statue to the plinth. They come apart for service.
- Turn the statue over and press the four heat-set inserts into the base with the iron at about 220 C, straight down, until flush.
Safety: the iron and insert are hot enough to burn badly. Work on a heat-proof mat.Not working?
Step 13: Turn Plastic into Stone
Paint alone always looks like plastic. A thin coat of real cement gives the grain, weight and cold feel of stone.- Fill every seam with putty, let it dry, and sand with 120 then 240 grit.
- Take the lid off. Mask the clear eye fronts, every spine socket and ledge, the mouth, throat and tongue, and plug the camera, ear and speaker holes and the insert holes.
- Brush on a thin coat of grey epoxy primer. Let it dry, then add a second coat.
- You should see: one even grey, no filament colour showing.

Safety: primer fumes are strong. Work outdoors or with good airflow, and wear a mask. Wet cement is caustic and the dry powder is harmful to breathe: wear gloves, glasses and a dust mask, and wash any splash off with plenty of water.
- Mix fine cement with waterproof PVA and a little water to thick-paint consistency, about 2 parts cement to 1 part PVA. Mix only what you can use in 20 minutes.
- Brush on a thin coat, about 1 mm, one section at a time, and dab it with the brush or sponge for a rough grain. Keep it extra thin in carved details.
- Let it cure for 24 hours out of direct sun. Lightly sand the sharpest high points so nothing snags a hand.
- Peel the tape and pull the plugs.
- You should see: a spine plate still seats, the lid still drops in, and the camera and ear holes are clear.
- Spray two light coats of matte clear sealer.
- Weather it: a runny black wash wiped off the high points, a dry-brushed light grey on raised details, green and brown dabbed into the low spots. Keep every mark uneven, never the same on both sides. Seal again.
- You should see: from 1 m away, no seams and no plastic shine.
Aside: the first time I touched the cured statue in the dark, I took my hand away rather quickly.
Step 14: Wire Power, Servo, Sensor, Lights and Mist
Keep the schematic and pin map open while you wire. The full KiCad schematic is inhardware/kicad/ in the repo.


Safety: keep both supplies unplugged while you wire. Plug in only when a step says so.
- Wire the kill switch into the 5 V supply’s positive lead, then the fuse holder after it. Fit the 2.5 A fuse.
- On perfboard, make two bus strips, +5 V and GND. Solder the fused positive to +5 V and the supply’s negative to GND.
- Add one black wire from the GND bus to a GND pin on the UNO Q. Without the shared ground, the signals will not work.
- Set the multimeter to continuity and touch +5 V and GND.
- You should see: no beep.
- Plug in the supply, switch on, and measure +5 V to GND.
- You should see: 4.9 to 5.1 V. Switch off and unplug.

- Servo: brown to GND bus, red to +5 V bus, orange to D9.
- IR module: VCC to the UNO Q 3.3 V pin (not the 5 V bus, so OUT never lifts D2 above 3.3 V), GND to GND bus, OUT to D2.
- Power the rail and the UNO Q, then hold a sweet in front of the IR module.
- You should see: the module’s small LED on with the sweet there, off when it is gone. If not, turn its trimmer screw slowly until it reacts only to the sweet.

- Cut the strip across the copper pads into 24 single pixels, then sort them into eight groups of three, one per plate.
- Within each group, solder short loops: 5 V to 5 V, GND to GND, DOUT to the next DIN. Use red for 5 V, black for GND and blue for data so you can check it at a glance.
- Join the groups with longer wires, last DOUT of one group to first DIN of the next, with enough slack to reach the next plate opening.

- Lay the chain inside the back shell with group 1 at the tail and group 8 at the head. Cover each group with a small paper square and fix it with hot glue, so it can come out again.


- Seat each eye board in its pocket behind the eye with a dab of hot glue. Chain them: left eye DOUT to right eye DIN.

- Wire D5 through a 330 to 470 ohm resistor to the left eye’s DIN, and D6 through the second resistor to the tail group’s first DIN. Put each resistor at the LED end and keep both data wires as short as the body allows. Leave the right eye’s DOUT and the head group’s last DOUT unconnected.
- Solder the 1000 uF capacitor across +5 V and GND where power enters the chains, striped leg to GND. Feed 5 V and GND from the bus (not the UNO Q’s 5V pin) to the start of each chain.
- Open
app/sketch/sketch.inoand checkPLATE_PX = 3, for three LEDs under each plate.
- Hold the IRLZ44N with the writing facing you. The legs, left to right, are Gate, Drain, Source.
- Solder the 100 ohm resistor from D4 to the Gate, and the 10 k from the Gate to GND. The 10 k keeps the mist off while the board starts.
- Connect Source to GND. Connect the mist board’s + to the +5 V bus and its - to the Drain.
- Put the disc on a wet wick in the water cup (damp, not under water), and the cup in the drip tray under the mouth, away from the boards, the mic and the sweets.
Safety: never let the disc run dry and never let water reach the electronics. Empty the cup after every night.The sketch protects the mist: one puff lasts 3 s at most, then it rests 6 s, it never runs while the gargoyle is listening, and the safety net turns it off. On the bench (4 GB UNO Q, real sketch) a second request 3 s after a puff was refused and a 3.5 s request was cut to 3 s. Not working?
Step 15: Load the Sketch, Set the Rotor, Test the Safety Net
The sketch is the Arduino program that runs on the microcontroller. Every value markedCAL at the top of app/sketch/sketch.ino is one you may tune for your build.
- Copy the edited sketch to the board:
- Start the app. In App Lab, open it and press Run, or from the board:
- The first start compiles the sketch and loads it onto the microcontroller. It takes a few minutes.
- You should see: slowly breathing amber eyes and a soft glow on the spine. With no models found, the app runs a practice mode with a pretend visitor, so you can check lights and voice first.
Eyes of the gargoyle: both eyes in the head, breathing slowly through ember, amber, gold and red.
The spine as a scream meter: the plates light up as the scream gets louder.
The spine as the riddle timer, when the answer is right and in time.
The spine as the riddle timer, when time runs out or the answer is wrong.
- Set the rotor. With the app running, the servo holds the load angle (170 degrees). Pull the rotor off the horn, push it back on with the pocket facing straight up the tube, and now fit the horn screw.
- Run the drop test. Stop the app and create the test switch:
- Load 10 toffees and start the app again. It drops one sweet every 4 seconds, up to 50, and stops if it jams.
- You should see: each sweet out of the chute and
drop_confirmedcounting in the log. On my bench the drop was confirmed 1.2 to 1.5 s after each command.
- You should see: each sweet out of the chute and
- Delete the switch when you are done:
rm /home/arduino/ArduinoApps/gargoyle/python/dispense.on - Test the safety net. With the app running, pull out the board’s USB-C.
- You should see: within about a second, the rotor returns to load, the mist stays off and the lights go to idle.
Step 16: Fit the Dispenser, Camera, Mic and Speakers
Dispenser and lid- Route the servo and IR cables down through the neck first.
- Lower the dispenser onto the locating pin and three posts inside the head, and screw it down with the three M3 screws.
- You should see: it sits level with the chute lined up with the throat.
- Stack all eight magnets and mark the top face of the stack. Glue four into the lid with the marked face up and four into the head tabs with the marked face down.
- You should see: the lid snaps into place and lifts off with a fingertip. The head holds 5 sweets: one in the pocket, four in the tube.
- From inside the head, push the lens into the forehead hole until the case rests on the ledge.
- You should see: from the front, only a dark dot in the middle of the spiral.

- Fit the lavalier mic in the ear cavity with its foam windscreen, held by a rubber grommet, not glue, so servo buzz does not travel into it. Plug it into the USB sound card, and the sound card into the hub.
- Glue each speaker on its tray in the plinth, facing the small worn holes. Connect them to the sound card output, left channel on the visitor’s left.
- On the board, run
alsamixer. Press F6, pick the USB sound card and set its mic capture to the maximum (28 on mine). - Press Esc and save the level so it survives a reboot:
sudo alsactl store - Stop the app while you calibrate, so the mic is free:
arduino-app-cli app stop /home/arduino/ArduinoApps/gargoyle
FLOOR_DB (empty spine) and TOP_DB (full spine) in app/python/sensors.py. A scream wins when it reaches the top plate on 3 readings in a row, so one bang or clap cannot win.

- On the board, make a tiny level script:
- With the gargoyle where it will stand and nobody talking, record 5 s of the room:
- Stand 1 m in front and scream as loud as you comfortably can for the whole 5 s:
- You should see: the scream’s loudest reading well above the room’s median.
- In
app/python/sensors.py, setFLOOR_DBabout 4 dB above the room’s median, andTOP_DBa little below the scream’s median, so a good honest scream fills the spine. Mine, in a full run on the 4 GB UNO Q: room -39 dBFS, screams -18 to -2, soFLOOR_DB = -35andTOP_DB = -12. - Delete the recordings:
rm quiet.wav scream.wav
Step 17: Bring It to Life
- Switch the app from practice mode to the real models:
- Start the app:
- You should see: in the log, the camera starting, the keyword runner found, the visitor model loaded, then the game going idle.

- Stand in front of the camera, one to two metres away.
- You should see: after a little over a second, mint eyes, a greeting and a challenge.
- Do what it asks: answer the riddle clearly, or scream.
- You should see: on a win, green eyes, a puff of mist and a sweet down the tongue.
- Walk away.
- You should see: a goodbye, a 10 second rest, then sleepy amber eyes.
app/python/game.py with no hardware calls. Run python app/python/game.py on your computer and its self-checks run.
Not working?
Step 18: Close It Up and Test Before the Night
- Pass the charger cable through the hole in the back of the plinth and plug it into the hub.
- Tie every cable away from the servo and the mist cup.
- Lift the statue onto the plinth, line up its four inserts with the holes, and drive the M3 x 16 screws up from inside with the long hex key. One speaker covers a screw path: lift it out first.
- You should see: the statue does not move when you push the top of its head gently.
- Run this checklist before the big night:
- a couple of visits in a row with no restart, counting wins, losses, wrong costume lines and missed visitors;
- an empty doorway for an hour, counting false wake-ups;
- music and chatter nearby, counting false riddle answers;
- pull the plug in the middle of a drop: the rotor must park;
- play with an empty tube: it must apologise for a jam, not grind away;
- two hours non-stop: the board must not be too hot to touch.
Safety: wrapped sweets only. Keep the back door and cables out of reach of small children. Keep it out of direct sun: PLA+ softens at around 55 to 60 C. Empty the mist cup at the end of the night.
Results
The table near the top has the headline numbers. A few more, all measured on the finished build:- Every outcome plays on the stone body: right answer, wrong answer with hint, timer out, winning scream and a scream too quiet (videos at the top).
- Board under full load: with the camera, sound and keyword bricks running, the board stayed up at 3 and at 4 llama.cpp threads, and 4 threads gave no speed gain, so play uses 3.
- Drop confirmation: the IR sensor sees the sweet 1.2 to 1.5 s after the command (bench rig, real sketch).
- Mist limits: a second puff 3 s after the first was refused and a 3.5 s request was cut to 3 s (bench, real sketch).
- Voice: the 179 bank lines on the board with known text, transcribed with Whisper base.en on my PC: 18.7 percent average word error, median 12.5 percent, 58 lines word for word.
Privacy and Safety
- Camera frames and sound stay in memory only long enough to be checked. Nothing is stored or sent anywhere, and it needs no network at the door.
- It never comments on a face or body. Costume lines play only when the model is confident.
- No moving jaw near small hands: the mouth is fixed open and the tongue is the slide.
- Wrapped sweets only.
- If Linux stops sending heartbeats for one second, the microcontroller parks the servo, stops the mist, darkens the spine and holds a dim glow in the eyes.
- No flashing lights: every LED change is slew-limited.
What Went Wrong (War Stories)
- A moving jaw: a pinch point near a child’s hand. Removed.
- A weak charger: boot loops once the camera was plugged in. Fixed with a PD supply and a separate 5 V rail.
- LEDs redrawn every loop: jammed the Bridge. Redraw on change only.
- Mic at full gain on the wrong mic: clipped screams. Fix the gain first, then collect data.
- int8 models: use the float32 builds. Every result here was measured with them.
- The language model could not hold the character. So it drafts, rules filter, and the board speaks only checked lines.
Troubleshooting, the Short List
Conclusion
The gargoyle started as a way to make trick-or-treat at our door a little more fun and interactive. It turned into a small lesson in fitting real AI on one cheap board: a tiny model that is always awake, bigger ones that only wake when they are needed, and a language model used where it fits, before the night instead of during it. The same pattern works for anything that greets people: a library mascot that asks a quiz question, a museum exhibit that hears a password, a shop window that reacts to a costume. All of it offline, nothing recorded, and a microcontroller that keeps it safe when the clever half falls over. If you build one, tell me about it on the Edge Impulse forum. I want to hear what yours says to people.Files and Credits
- Code, CAD, print plates, schematic and every measurement: https://github.com/Abhinavkrishna3211/Feed-the-Gargoyle
- Public Edge Impulse projects: visitor gate https://studio.edgeimpulse.com/public/1153004/live, keywords https://studio.edgeimpulse.com/public/1172323/live, costume https://studio.edgeimpulse.com/public/1172324/live, props https://studio.edgeimpulse.com/public/1160020/live
- Edge Impulse Studio, Arduino App Lab and the UNO Q bricks. Gemma 3 1B by Google with llama.cpp. Piper TTS with the en_GB-alan-medium voice. YuNet from OpenCV Zoo. Public datasets listed in the repo.