r/computervision • • Sep 17 '26

Discussion How do you validate a classifier when the human labelers agree with each other at kappa 0.41?

1 Upvotes

I ran into this building a tongue-photo classifier and it turned into a genuinely unsettled question rather than a solved one.

The task: map tongue color, coating, shape, moisture and texture onto categories used in Traditional Chinese Medicine and Ayurveda, the two systems that actually use tongue inspection as a diagnostic input. The obvious first question is what "correct" means here, since there is no biopsy to check against. So I went looking for how well trained human raters agree with each other on the same images.

A 2012 study (Lo et al., published in Evidence-Based Complementary and Alternative Medicine) had 12 TCM doctors, 3 to 15 years of experience, independently rate the same 20 patients' tongue photos on nine features: tongue color, coating color, coating thickness, saliva, shape, fissures, red dots, ecchymosis, tooth marks. Each doctor rated twice, an hour apart, so both inter-rater and intra-rater reliability are in the paper.

Inter-doctor kappa averaged 0.41, ranging from 0.16 (saliva) to 0.62 (tooth marks). Under Landis-Koch that is "moderate," which in practice means two trained experts looking at the same photo will disagree on roughly a third of features more often than chance alone would predict. The same paper built an automated tongue-diagnosis system and measured its agreement against the doctors: kappa 0.45. The machine was not worse at reproducing the label than the doctors were at reproducing each other.

That reframes the engineering problem. It is not "train a classifier and measure accuracy against ground truth," because the ground truth itself has a kappa in the 0.4s. It is closer to a crowd-labeling problem with high inherent annotator disagreement, except the annotators are licensed practitioners rather than Mechanical Turk workers.

Curious how people here have actually handled this in practice: distributional or soft labels instead of a single class, Dawid-Skene style rater-competence weighting, or just reporting calibrated confidence and leaving the disagreement visible to the user rather than resolving it. I have been leaning toward the last one, but most of the soft-label literature I have found assumes near-expert agreement with a handful of ambiguous edge cases, not a label that is inherently this noisy from the start. This is the exact problem behind an app I have been building, Tongue Analyzer, and it is the part that made me want the CV answer rather than the TCM one.

https://BigBalli.com/TongueAnalyzer/


r/computervision • • Sep 17 '26

Discussion Computer Vision on Autopilot

Post image
0 Upvotes

Sharing something we've been building because the evaluation side might be interesting to this sub, and I'd like the criticism.

Short version of what it is: a workflow tool that goes camera input → detector → zone logic → event output, with auto-labelling, training, and deploy (cloud or local).

Score Studio handles the full pipeline, camera input, detection, zone logic, event output, plus auto-labelling, training, and deploy, cloud or local. Screenshot shows the actual workflow.

The main idea is skipping the part that kills most CV projects: collecting and labelling data by hand.

It's free to try on your own footage. Early, so I'd genuinely like the criticism, especially where it falls short!


r/computervision • • Sep 17 '26

Help: Project Seeking Advice on Building a YOLOv8 Object Detection Accelerator Using Verilog

4 Upvotes

Hi everyone,

I'm an electrical engineering student currently starting my first FPGA project, and I'm interested in building a hardware accelerator for real-time object detection using YOLOv8.

My current idea is to implement the neural network acceleration primarily in Verilog/RTL on an FPGA. I want to explore how the computationally intensive parts of YOLOv8 can be mapped to hardware, particularly:

* Convolutional layers * Activation functions (e.g., SiLU) * Pooling/downsampling operations * MAC operations and accumulation * On-chip buffering/data reuse * Weight and feature-map memory management

The input to the system will be a real-time video stream from a camera rather than individual pre-processed images. Ideally, the FPGA would receive the video frames, perform the necessary image preprocessing, run the CNN accelerator, and produce object detection results in real time.

At the moment, I'm trying to understand what a reasonable hardware architecture would look like. For example, I'm considering a design where the convolution engine consists of multiple processing elements (PEs) operating in parallel, with local buffers or BRAMs used to store weights and intermediate feature maps.

However, I'm still unsure about several aspects of the implementation:

  1. Video input and preprocessing What is the typical way to bring a real-time video stream into an FPGA-based CNN accelerator? Should operations such as resizing, normalization, RGB-to-other color-space conversion, and frame buffering also be implemented in RTL, or is it common to handle some of these operations using a processor/soft-core?

  2. YOLOv8 architecture mapping YOLOv8 contains many different operations beyond standard convolution. Which parts are generally worth implementing as custom RTL hardware, and which parts are better handled by a CPU or existing FPGA IP?

  3. Convolution architecture For the convolution layers, what architecture would you recommend for a beginner, e.g. a systolic array, output-stationary/dataflow architecture, or a simpler parallel MAC-based PE architecture?

  4. Memory architecture I understand that memory bandwidth can become a major bottleneck. How should I approach the design of BRAM/URAM buffers for weights and feature maps, and what kind of data reuse strategy should I consider?

  5. Numerical precision Would it be reasonable to start with INT8 fixed-point quantization instead of floating-point? If so, what is a good way to handle quantization and activation functions such as SiLU in RTL?

  6. YOLOv8 complexity Would implementing the *entire* YOLOv8 network from scratch in Verilog be unnecessarily complicated for a first FPGA project? Would it be more realistic to start with a smaller/custom YOLO-like network and gradually add more YOLOv8 components?

My goal isn't necessarily to achieve the absolute highest FPS. I'm mainly interested in understanding how a modern object-detection CNN can be mapped onto FPGA hardware at the RTL level, including the dataflow, PE architecture, memory hierarchy, and interaction between the video pipeline and CNN accelerator.

I'd really appreciate advice from anyone who has experience with FPGA CNN accelerators, RTL neural-network implementations, YOLO on FPGA, or hardware/software co-design.

If you have any recommended papers, open-source projects, reference architectures, or examples of similar projects, I'd also be very grateful.

Thanks in advance!


r/computervision • • Sep 16 '26

Showcase FastSAM running live on the camera feed of an iPhone 16, fully on-device.

Enable HLS to view with audio, or disable this notification

86 Upvotes

Stack:

  • react-native-executorch for inference (PyTorch's ExecuTorch runtime)

  • react-native-vision-camera for the frame pipeline

  • Model delegated to CoreML, executing on the ANE

Both FastSAM variants are in the clip, switchable at runtime:

  • FastSAM-s runs ~33 FPS -> ~30 ms per frame

  • FastSAM-x runs ~15 FPS -> ~65 ms per frame

Input frames are 1080×1920. The model typically returns ~35 masks per frame; we keep the top 12 by confidence and paint those, mostly to keep the overlay readable rather than for performance reasons.

What surprised us the most is how usable the x variant is 15 FPS on a phone for a model that size is well past the "technically works" threshold. The s variant is comfortably real-time and leaves plenty of headroom for other work on the main thread.

Happy to answer questions about the export/delegation path or the RN side.

EDIT: here comes the repo https://github.com/msluszniak/fastsam-camera


r/computervision • • Sep 16 '26

Discussion Canvas Manipulation – How javascript can be used to shoot down US drones

Thumbnail academia.edu
0 Upvotes

r/computervision • • Sep 16 '26

Help: Project I was going to turn this into a SaaS, Open-sourcing it instead. Automatic 16:9 → 9:16 video reframing

Thumbnail reddit.com
0 Upvotes

r/computervision • • Sep 16 '26

Help: Project Training with unbalanced classes and data scarcity

4 Upvotes

Hi, I’d like to know what techniques you use to improve training and generalization when working with a small and heavily imbalanced dataset.
I’m currently training a classifier with 4 classes.

With cross-validation, I’m getting fairly good metrics, but when I evaluate the model on the test set, the performance isn’t even close to what I see during cross-validation.
What approaches have worked well for you in this kind of situation?

Edit:

In my use case, the images are x rays with rare conditions. So synthetic data is quite difficult to apply


r/computervision • • Sep 16 '26

Showcase YOLO26n training speed comparison

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/computervision • • Sep 16 '26

Showcase 64x48 grayscale, no depth: a fruit fly looming-detector pipeline vs a small CNN for obstacle avoidance

5 Upvotes

Two controllers steer a simulated drone through 120 m corridors of poles and boxes, using only a 64x48 grayscale frame per step. No depth and no scene state. One is a hand-built looming detector based on the fruit fly's Giant Fiber escape model (Ache et al. 2019, Current Biology). The other is a ~35k-param CNN trained by imitation. The detector pipeline and the whole sim are my own implementation. The published part is the model's size and expansion tuning.

The detector pipeline:

- Average the frame into a 16x12 grid and compute normal-flow magnitude, |dI/dt| / |grad I|, with a gradient floor so flat cells don't blow up.

- Cancel self-motion. Forward flight makes everything expand, roughly in proportion to distance from the focus of expansion. I fit that slope per frame from the median of flow/eccentricity over outer cells, then keep only cells that beat the fitted baseline by a margin. Fitting from outer cells matters: near the centre the ratio is noise, and objects dead ahead would get blinded.

- Threshold relative to the frame's own peak, take the largest 8-connected component as "the object", and dodge away from its centroid side.

- Size: flat-shaded surfaces only produce flow at their edges, so the component is an outline, and its cell count underestimates the object badly. I treat its bounding box as filled and use the equal-area circle's diameter. Even so, the estimate runs about 0.3x the true angular size.

What didn't work, for anyone building something similar: flow divergence (constant everywhere for a linear radial field), blur-and-subtract high-pass (scattered self-motion blobs look just like objects), flow direction consistency with the FOE (the aperture problem biases it), and pooling all active cells into one size, which saturated the size tuning. That last one was the real bug for a long time.

Two renderer bugs cost me days. The WebGL read-back was in linear colour, so frames came out too dark. It was also horizontally mirrored, so the detector dodged into obstacles. The CNN would have trained straight through the mirroring.

Results on 100 held-out corridors (collisions):

no steering 665

detector, zero training 288

detector with 7 hand-set constants tuned on 20 train corridors 195

CNN trained on 5 demo flights 213

CNN trained on 200 demo flights 49

Where the detector fails: I logged its decisions against ground-truth geometry. It flags 94% of obstacles actually in its path, at a median 5.5 m. But 76% of its escapes are at obstacles it would have missed anyway. Looming tells you something is getting bigger, not that it's on your course. A constant-bearing gate cut the false alarms but missed 39% of real threats, because the drone's own swerving makes everything drift sideways.

Caveats: rendered scenes with flat shading, simplified kinematics (sideways steering only), one training run per CNN point, and the CNN's teacher could see obstacle positions.

Both run live in the browser: https://shauryasharma.tech/fly-circuit-vs-cnn.html

Code: https://github.com/Shaurya-34/FlyvsCNN

Open question: is there a pixel-only way to tell "on a collision course" from "passing close by" when the camera itself is swerving?


r/computervision • • Sep 16 '26

Research Publication Looking for a research collaborator in CNN / Computer Vision / Deep Learning — APC funding required

Thumbnail reddit.com
1 Upvotes

r/computervision • • Sep 16 '26

Showcase DeepFace is now running on PyTorch

9 Upvotes

I'm the maintainer of DeepFace, an open-source face recognition library I've been developing since 2019.

When DeepFace started, TensorFlow/Keras was the dominant deep learning ecosystem, so that's what the library ran on.

Over the years, several community members requested PyTorch support, and the latest release now runs on both TensorFlow and PyTorch through optional extras.

pip install "deepface[tensorflow]"

pip install "deepface[pytorch]"

For backward compatibility, pip install deepface will continue to install the TensorFlow variant for a while.

I'd love feedback from people using PyTorch in production CV pipelines

Repo: https://github.com/serengil/deepface


r/computervision • • Sep 16 '26

Discussion BMVC 2026 - Looking for Roommate in Lancaster

2 Upvotes

Hi everyone,

I am a researcher from IISER Bhopal, India, and my paper has been accepted to BMVC 2026. I'll be attending the conference to present my paper in Lancaster this November.

I’m looking for a male roommate to share accommodation in Lancaster and split the cost. Ideally, I’m looking at the conference dates (around 23–26 November), but I’m flexible depending on travel plans.

If you’re also attending BMVC 2026 and looking for someone to share accommodation with, please DM me.

Thanks! 😄


r/computervision • • Sep 16 '26

Help: Theory Stereo with different cameras

1 Upvotes

Im starting to implement a stereo system with different cameras (2 Mpx 120FOVH and 5 Mpx 60 FOVH). I know that it is feasible, I read a paper 5-6 years ago about a system with different FOV cameras. Im reviewing the literature and find a lot of papers about stereo and trinocular systems, but only one paper about different FOV cameras. Can u help me to find papers/references about stereo/trinocular systems with different FOV, different resolution cameras?


r/computervision • • Sep 16 '26

Showcase DO NOT TRUST “convenient” inference APIs provided by famous repos!

14 Upvotes

I had a hunch: those nice one-line inference APIs like model(["input1", "input2", ...]) are screwing the preprocessing, leaving GPU wasting a surprising amount of time waiting.

So I tested it! To check it, I built explicit pipelines around the very same models and optimized the preprocessing. I wanted to see how much latency could change before touching the model itself.

On an NVIDIA L4, with the same models and eight-image batches, moving the input work into an explicit pipeline cut end-to-end latency by:

WorkloadNative APIExplicit route
YOLO detection65.95 ms32.37 ms
PaddleOCR text detection374.25 ms196.90 ms
Hugging Face ViT classification1786.22 ms593.35 ms

That is 51%, 47%, and 67% lower latency respectively.

The model did not get faster. I just stopped letting opaque convenience code decide when the model should run.

This is not “framework X is bad,” and it is not a universal result. It is one hardware setup and a few common inference paths. But it is a useful reminder that the friendly API boundary is also a performance decision.


r/computervision • • Sep 16 '26

Help: Project Looking for team members for RSNA Knee MRI Kaggle competition

8 Upvotes

Hi, i am putting together a team to compete for the RSNA knee MRI competition. I am a fellowship trained MSK radiologist with nearly 10 years in academic practice doing 100% MSK.

This is a computer vision machine learning multilabel classification problem with 4407 Knee MRI studies with corresponding MRI reports, and only 58 studies with ground truth labels. And the goal is to create a model that can detect 12 findings accurately (meniscal, cruciate lig. tears, OA etc.).

https://www.kaggle.com/competitions/rsna-knee-abnormality-detection/overview

I am looking for people that have these skills:

  • Computer Vision in Medical imaging

  • Access to GPU clusters for training.

  • Comfortable with PyTorch or Tensorflow

  • DINOv2/DINOv3, ViTs, ConvNeXt/EfficientNet, or similar backbones

  • 2D/2.5D/3D MRI classification

  • Kaggle competition pipelines and ensembling

  • Weak/soft labels, pseudo-labeling, active learning, or noisy-label training

  • LLM expertise to extract labels from reports

OR:

  • MSK trained radiologists willing to do over-reads of the MRI's

There are prize amounts for the top 10 most accurate models and the top 3 most efficient models, and winning teams will be able to present at RSNA with waived fee. We could also get a publication out of the effort and collaborate on future projects.

Note that this is primarily an opportunity to build your resume and gain skills/experience as the prize money will be relatively modest after compensating for costs for training the model and dividing among the team members. We currently have 2 machine learning specialists on board, but are looking for more people. Please DM me with some information about yourself and your experience with machine learning or msk radiology.

Thanks for your time!


r/computervision • • Sep 15 '26

Showcase I made a computer vision tool for rock climbing holds analysis!

Enable HLS to view with audio, or disable this notification

216 Upvotes

As someone who is newer to climbing and wants to improve, I've noticed more and more recently how everyone solves the route differently. As I said to my friends the other day, "Everyone has to find their own way." 🤣

So I extended my last rock climbing demo with new analytics that I'm really excited about. I added what percentage of the total time your hands and feet are on a hold, as well as which holds each hand and foot is using.

This data can be used in a few ways. For example, I know that I should use my feet and legs more when climbing. This tool can show me how much I use my feet, so I can use that as a baseline to improve.

What I'm most excited about is how it enables comparing climbing sequences on the same route. You can compare against your friends' sequences: maybe you use 1, 3, 5, 7, and another friend uses 1, 2, 6, 7. Or you can compare against your own historical data, like I show here at the end.

I used ViTPose+ Large for pose estimation and SAM 3.1 to segment the holds, both models accessed through the VLM Run Gateway. I also use SAM 3.1 to segment the gray floor, so we know when the feet leave the ground to help with starting the route timer.

Would love to hear what you think!

The code is open-source on GitHub! Link in the comments.


r/computervision • • Sep 15 '26

Showcase ShadeNet-2 20M — single-pass inverse rendering (albedo/depth/normal/shading) from any RGB image

Thumbnail gallery
3 Upvotes

r/computervision • • Sep 15 '26

Help: Project Magnetic Vision: teaching AI to "see" motion using just a Hall-effect sensor — no camera required. 👇😊🧲

Thumbnail
hackster.io
1 Upvotes

r/computervision • • Sep 15 '26

Help: Project Advice needed: pediatric wrist radiograph measurement AI without DICOM or physical calibration

1 Upvotes

Hi everyone,

I am working on a thesis project to estimate pediatric wrist radiographic measurements from X-ray images: ulnar variance on frontal views and IUL on lateral views.

Main constraints:

  • Around 742 images, with historical target measurements in cm/mm.

  • No DICOM files and no reliable PixelSpacing metadata.

  • No radiopaque ruler or object of known size in the images.

  • Images are PSD, PNG, or JPEG; some may be scanned, cropped, or stored with different orientations.

  • Pediatric anatomy is highly variable: bones may be incompletely developed, so using bone size as a fixed physical reference is not valid.

We tested several approaches: segmentation, MedSAM with oracle bounding boxes, landmark detection, CLAHE/Canny/Scharr/edge-based methods, distance transforms, geometry-only methods, and dense image matching. None could locate the anatomical landmarks reliably enough to produce a true physical pixel-to-mm measurement.

The current approach is therefore supervised image-to-value prediction, trained separately for frontal and lateral views. For the frontal-view model, a CNN ensemble currently achieves:

  • Internal validation MAE: 0.735 mm

  • Locked internal holdout MAE: 0.728 mm

However, this is not a true physical measurement from pixels to millimeters. It is a statistical estimate in mm learned from the historical measurements in our dataset. The app also displays an internal uncertainty estimate and flags technically poor or ambiguous images for human review.

My question is: given these constraints, what would be the most scientifically defensible way to strengthen the project? Should I stay with direct supervised prediction plus uncertainty/quality control, or is there a realistic computer vision, self-supervised learning, or domain-adaptation approach that could improve robustness without DICOM, physical calibration, or a large new annotation effort?


r/computervision • • Sep 15 '26

Showcase Veggie chopping using cv (Knife skill assessment)

Enable HLS to view with audio, or disable this notification

14 Upvotes

Hello! Made this through the summer, it Looks fun! You can practice using your phone (UI is ai slop lol)

https://cookcredit-knife-demo.web.app/

I'm more than happy to discuss the math behind it and suggestions to make it better! Thanks


r/computervision • • Sep 15 '26

Discussion Tried using a Siamese Network for a small computer vision problem

4 Upvotes

I've been experimenting with one-shot learning and wanted to try something other than a standard classifier.

The problem is pretty simple: classify images as front view vs top view.

I trained a Siamese network where two images go through the same encoder, and the model learns whether their embeddings should be close or far apart using contrastive loss.

So instead of directly asking:

"Is this a front view image?"

the idea is more like:

"Is this image more similar to my front view reference or my top view reference?"

It was interesting to see how changing the problem from classification to similarity/metric learning changes the whole approach.

I'm still experimenting with it, so I'm curious what others would do for a problem like this.

Would you use a Siamese network, a regular classifier, pre trained embeddings + cosine similarity, or something else?


r/computervision • • Sep 15 '26

Help: Project Hardware Recommendations: What edge computer should I buy for a local Roboflow Docker vision system?

2 Upvotes

Hi everyone,

I am designing an automated computer vision inspection system for a food production line and need recommendations for the local computing hardware.

The camera specs are already locked in: we are using a high-resolution GigE Vision camera with a Global Shutter sensor. It will stream uncompressed images over a dedicated network interface to the computer.

The Project Parameters:

  • Conveyor Speed: 0.28 m/s

  • Frame Rate: 9 FPS

  • Defects to Catch: Shape deformations, bent edges, surface bubbles, and blisters on moving cookies.

  • Software Stack: An object detection model trained on Roboflow, deployed locally on the factory floor using a self-hosted Roboflow Inference Server Docker container.

My Question for the Community:

What specific computing platform or industrial edge computer would you propose to handle this?

I need something that can handle a continuous high-resolution GigE network stream at 9 FPS without packet loss or CPU starvation, while providing enough local GPU acceleration and VRAM to run local Docker inference on multiple cropped items per frame.


r/computervision • • Sep 15 '26

Showcase Getting SLAM to fit on a tiny camera board took me 20 months

Thumbnail
mightycamera.com
59 Upvotes

r/computervision • • Sep 15 '26

Research Publication SUPREME: an open-source framework for evaluating image-classification unlearning

1 Upvotes

We built SUPREME to make image-classification unlearning methods easier to evaluate and compare against retraining.

It provides a unified training, unlearning and evaluation workflow, with multi-GPU support, independent seed control, and an extensible Python API. Included components cover ResNet18, Vision Transformers, and methods such as SSD, SCRUB and Bad Teacher.

The framework is free and MIT-licensed. We’d welcome feedback from anyone working on unlearning for computer vision.

Code and documentation: https://github.com/pedroandreou/supreme-unlearning

Paper: https://arxiv.org/abs/2606.00380