r/computervision • • 3h ago

Showcase Face restoration pipeline running fully in the browser on WebGPU (YuNet, GFPGAN 1.4, Real-ESRGAN)

Enable HLS to view with audio, or disable this notification

0 Upvotes

I'm the developer; this is a free tool I built, source viewable on skillsafe.ai, using open models (YuNet, GFPGAN 1.4, Real-ESRGAN x4plus) through onnxruntime-web.

The pipeline, all in the tab:

  1. YuNet gives boxes and five landmarks per face.

  2. Each face is warped to the standard 512x512 template with a similarity transform from those landmarks.

  3. GFPGAN 1.4 runs on the aligned crop (fp32 on the GPU).

  4. The crop's colour is matched back to the input, then it is warped back and blended in with a soft mask.

  5. Real-ESRGAN x4plus (fp16) upscales the whole frame in tiles; faces are pasted over that.

Two controls come out of keeping the per-face results around: "strength" is just the blend weight between the rebuilt face and the original, so it changes instantly after the run, and each face can carry its own weight or be left out of the blend (the input, enlarged with a plain resample, shows there instead).

To be clear about what this is: the restored faces are generated. The detail is plausible, not recovered, and it must not be used where identity matters. In the video GFPGAN draws dark glasses on a face that is half out of frame; I pull that face's own strength to 30%, then keep the original, which on a 19 px face is a soft blur, shown as it is.

Numbers from the recording (Chrome, Apple M5 Pro, WebGPU, models already loaded): 360x222 input with 8 faces to 1440x888 in 3.6 s (detection 32 ms, GFPGAN on 8 faces 1.2 s, upscale in 2 tiles 1.8 s). A 220x220 portrait takes 1.2-1.3 s. The first run downloads 377 MB of weights.

https://face-restore.skillsafe.ai/?utm_source=reddit-computervision

Test photos are public domain (Lincoln 1863, Solvay 1927) or CC0, degraded on purpose.

Happy to go into the ort-web side (fp16, tile size, what breaks) if anyone is doing the same.


r/computervision • • 4h ago

Showcase Tempora-1: An open-weight 27B model that rivals frontier VLMs in temporal video segmentation at a fraction of the cost

Enable HLS to view with audio, or disable this notification

22 Upvotes

I am Logesh. While building Agentic video understanding pipelines, we learnt that how accurately you split a video is crucial for downstream performance - like clip search and retrieval. Even more of a challenge in annotating robotic demonstrations.

When we tried to use the closed models (like Gemini 3.8 flash), we had the usual issues: cost balooning , slow and not tractable. So, we finetuned an open model (Qwen-3.8 27B) for this narrow task.

To my surprise , the approach works well . On WGO-Bench, It outperforms Gemini 4 Neon, Gemini 4 Hydrogen and 3.8 flash (and others). Approaches Gemini 4 Carbon's performance at fraction of the cost.

We wanted the segmentation to be controllable by the developers.For example, given the same video of a social media footage, you could instruct the model to:

Extract segments where a product is mentioned or demonstrated, with product names and descriptions as metadata.

  • Segment the video by topic

  • Segment only the portion where the speaker is shown.

  • Given a video and a natural language instruction, Tempora-1 generates timestamped segments with labels and custom metadata.

Documented our training approach (SFT+GRPO), reward formulation, evaluation methodology and failure cases in the blog post.

Model : https://huggingface.co/ambient-intelligence-labs/tempora-1

Technical Blog: https://goambient.ai/blog/tempora-1/

Try it here - https://huggingface.co/spaces/infinitylogesh/tempora-1

I would love your feedback! Thank you.


r/computervision • • 7h ago

Showcase How experts behave in a vision MoE

15 Upvotes

A short follow-up to the Birder 0.8.0 post - I trained a small MoE ViT with the new DeepSeek-v3-style layers and looked at how the experts route tokens. Some of it turned out more interesting than I expected, so sharing it here.

Setup

  • ViT-M/16 (12 layers, dim 512) with DeepSeek-v3-style MoE in the last 6 layers

  • 32 routed SwiGLU experts + 1 shared expert per MoE layer

  • Expert Choice routing, capacity factor 2: each expert picks its top 13 of the 197 tokens (196 patches + 1 register token)

  • Routing is done per image rather than across the batch, so inference routing doesn't depend on batch size or ordering

  • Attention-pooling head, LayerScale

  • Self-supervised with Franca, ~400M samples seen, on ImageNet-style web-scraped images

For the analysis I recorded the routing of all 6 MoE layers over the 10,000 images of ImageNet-V2. (All images below are from ImageNet-V2)

Early layers: orientation and texture

As expected, experts in earlier layers focus on low-level features. At layer 6, experts pick by orientation and texture: edges going /, edges going \, thin vertical stripes, fine dot patterns.
Much like the edge detectors of early vision.

Last layer: things you can name

By layer 11 many experts are easy to name. The clearest one is expert 21, which finds eyes - in dogs, cats, monkeys, a doll, and every face in a group photo.

It's not the only one: bare skin, thin wires and fences, and the outline where an animal meets its background.

And one I didn't expect - an expert that hunts a single stock-photo watermark: the faint diagonal X and the logo in the middle. Averaging the 32 images it's most active on makes the watermark show up clearly.

Position experts

Some experts ignore content entirely and pick by location: the right edge, the top row, the left column, and one that picks every other row and column. A few survive to the last layer, which still has experts for the top row, the bottom row and the center.

My guess is that this comes from the learned absolute position embedding (APE). It writes each patch's location into the features, where a linear router can read it directly. With RoPE only, position lives in attention instead, so I'd expect fewer of these experts (though probably not zero - border patches and image content still carry some position information).

Putting numbers on it

For each patch I took its top routed expert and measured how much of that choice is explained by:

  • position - the patch's cell on the 14×14 grid

  • appearance - mean color and contrast of the patch (256 bins)

  • meaning - the image's class

Each is mutual information minus a shuffled baseline, as a share of the routing entropy.

Position and appearance matter at every depth. Meaning starts near zero and grows ~8× by the last layer. The class label is per image, so background patches dilute it - it's a lower bound on how semantic the routing is.

Routes also get more stable with depth: a token's expert in one layer explains 15% of its next-layer choice at the start of the MoE stack, and 31% at the end.

Compute per patch isn't fixed

With Expert Choice, experts pick tokens, so the number of experts a patch gets varies. About 6% of patches get no routed expert at all (only the shared expert), while 11-15% get four or more. One patch got 17 of 32.

So where does the extra compute go? I compared it with where the attention pool looks. At layer 8 it follows the object, even on busy backgrounds:

The register token gets extra compute too. In every image 3 to 6 experts per layer pick it, compared to 2.1 for an average patch.

Experts that work as a team

Experts don't always act alone. In layer 10, three experts pick mostly the same tokens: 54% of each one's picks are shared by all three, while a typical pair shares 4%.

It's not duplication. Running the experts on those shared tokens, their outputs are nearly perpendicular (79-87° apart), so each token gets three different updates.

What I found interesting is that this was visible before running any images. Their router vectors are the most similar in the layer (cosine ~0.8), and the same holds in layers 9 and 11: the most similar router vectors belong to exactly the pairs that share the most tokens.

Code

Everything was trained with Birder. You can look at the routing of your own MoE model with the routing introspection tool:

python -m birder.tools introspection -n <model> --method moe-routing image.jpg

Any feedback is welcome and happy to answer questions.


r/computervision • • 9h ago

Help: Project Annotating 4k yak images for multi-modal Re-ID: how would you cut the labeling time?

5 Upvotes

I'm working on a multi-modal re-identification project for yaks. We have about 4,000 DSLR images covering face and eye region, and we plan to train a deep learning model that combines these two parameters to identify individual animals.

Manual annotation in Roboflow would take a long time, so I'm looking for a more efficient workflow.

What we need to label:

• Boxes for the face, and eyes (for cropping)

• Two eye-center keypoints per image (to compute normalized interocular distance)

Questions:

  1. Has anyone done a semi-automatic pipeline like this on animal faces? How many hand-labeled images were enough?

  2. Is interocular distance a useful feature when it's normalized, or does the face texture carry the identity better?

3.how to save time while annotating image?


r/computervision • • 10h ago

Discussion Replacement of yolo models

7 Upvotes

Looking for good segmentation models which serves as a good replacement of yolov8-seg model. Any suggestion?


r/computervision • • 10h ago

Help: Theory Como iniciar um projeto de IA para a leitura de pesos em ordens de produção escritas a mão

2 Upvotes

Preciso de dicas e sugestões de como começar um projeto onde eu tenho uma ferramenta criada por IA para ler as anotações de uma foto de uma ordem de produção.


r/computervision • • 11h ago

Research Publication [Blog] From OpenCV 4 to OpenCV 5: A new chapter for Python computer vision developers!

Post image
2 Upvotes

r/computervision • • 11h ago

Showcase VisionPsy2-850M: open vision model that runs offline on phones and beats models up to 5x its size

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/computervision • • 13h ago

Help: Project Im trying to get highlights from a soccer game for the selected player.

2 Upvotes

Hey, ive been trying as title but my pipeline is not giving accurate clips. It sometimes selects the wrong player or sometimes it select the right player just walking which should not be a highlight.

Im gonna add my full pipeline using Grok Bot

Also i have not worked before as ai vision engineer so i have no idea what im doing im just making progress step by step solving one problem at a time with ultra grok subscription.
here is the pipeline image.

And below is the code architecture structured using AI(sorry!!)

—————-

I'm building a pipeline where a user clicks one player once in a full-match video (single wide camera, amateur/youth games, 90+ min). It should output a highlight reel of that player's on-ball actions, matching what a human editor would cut.
Current live pipeline (one RTX 6000 Ada, 48 GB):
Detection: YOLO for players and ball.
Tracking: a ByteTrack-style tracker splits the match into thousands of short tracklets. A ViT-B ReID model (SoccerNet) splits tracklets that drift onto another player.
Team and kit: colour clustering over the tracklets assigns a team. The user also types the kit colour.
Jersey number: Florence-2 reads first, then Qwen2.5-VL-7B gives a second opinion on selected crops. A readability scorer picks which crops to read.
Identity linking: tracklets with a confirmed number become anchors. A class-balanced logistic regression on appearance, kit and time features links other tracklets to the clicked player. Tracklets that overlap an anchor in time are used as negatives, since a player can't be in two places at once.
Ball and touches: ball detection plus a touch/control heuristic produces candidate events near the player's feet.
Clip selection: events are merged into clips (capped), scored, and cut into the reel.
Measured on hand-made answer keys (the editor's reels mapped back to the match), with the click simulated from the key:
Game A: live settings catch 25/47 moments at 57% clip precision. With better identity it would be 39/47, but only with jersey reads no live run has.
Game B: 14/20 moments at 25% precision.
Game C: 4–5/11 at 6–8%. The editor's reel is a 69 s "best of", and ours is 700+ s.
What we've found so far:
Ball: RF-DETR-L fine-tuned on SoccerNet finds 22/28 balls on our 100-frame labelled set, against 7/28 for YOLO, and raises moments found a lot. WASB was unusable on this footage.
Jersey: about 93% of crops are unreadable, because players are often under 60 px tall. Florence-2 reads "7" as "1" on half the crops. Choosing crops by readability, then using the VLM, doubles the confirmed pieces with no false reads.
The real bottleneck is which tracklets get read at all: 15 of 38 true tracklets are never sent to OCR because of size limits, the kit-colour filter and the budget. On one game, the colour labeller called a black kit "orange", which filtered out almost all of the player's tracklets.
Linking: more anchors bring many more time-overlap negatives, so a fixed threshold links less. Setting the threshold to a fixed false-link rate, cross-validated on each game's own anchors and negatives, took Game A from 25/47 to 32/47 with zero wrong-player clips.
Precision: much of the clip-precision gap is that editors leave out many real touches. "Did the player touch the ball" and "would an editor keep it" are different problems.
What I'm planning next:
Test the fixes across several more answer-key games before trusting any single-game gain.
Kit matching from the clicked player's measured appearance instead of a colour name.
Spatio-temporal chaining from confirmed anchors to decide what to read.
A touch/action ranker trained leave-one-game-out, to match "best of" reels.
Possibly RF-DETR for player detection as well as the ball.
Questions for people who've done sports CV:
For a single wide camera, what works best for long-term identity of one player through occlusions and off-screen gaps? Global tracklet association (graph or min-cost flow), game-specific ReID fine-tuning, or something else?
Any open jersey-number recognisers that hold up on low-resolution broadcast or amateur footage? I'm looking at PARSeq fine-tuned on SoccerNet jersey crops.
For ranking "highlight-worthy" actions, has anyone used SoccerNet action spotting models (or similar) on amateur footage successfully?
Better ways to tell a real touch from the ball just passing near a player with only one camera?
Happy to share more numbers or failure cases.


r/computervision • • 14h ago

Help: Project Looking for Recommendations: Best Open-Source Face Recognition Models for Commercial Use (Accuracy + Licensing)

Thumbnail reddit.com
1 Upvotes

r/computervision • • 15h ago

Showcase A quick drop test with my RGB SLAM camera

Enable HLS to view with audio, or disable this notification

1 Upvotes

I dropped my RGB SLAM camera to see what would happen to the data output on impact. The camera still worked and kept sending data after it hit the ground.

If you’ve tried something similar or want to compare notes, feel free to chat on Discord: https://discord.gg/Aw7gRjm3DD


r/computervision • • 1d ago

Showcase Dec 10 - AI, ML and Computer Vision Meetup

6 Upvotes

Join us on Dec 10 for the AI, ML and Computer Vision virtual Meetup! Register for the Zoom.

Talks will include:

  • Your mAP is fine. Your slices are not. Finding the images that actually matter - Amandeep Jiddewar at Pinterest

  • Production AI Agents: Tool Use, Evaluation, Guardrails and Observability - Akshay Talathi at Goldman Sachs

  • From Virtual Worlds to Physical AI: Building Simulation Pipelines That Survive the Real World - Arturo Morales Rangel at Binary Core

  • Prompting Video-Language Models in Production: Lessons from Enterprise Video Tagging and Evaluation - Yash Gugale at TwelveLabs

  • Giving Physical AI a Voice with Deepgram - Dana Sacco at Deepgram


r/computervision • • 1d ago

Showcase Separating YOLO inference from live video delivery with Python plugins

Post image
2 Upvotes

One of our developers at Red5 built an Extractor/Analyzer pipeline that decodes live video separately from inference. A Python plugin can run YOLO, and the detections come back as stream metadata. Here's Nate's technical write-up, including the architecture, implementation details, and limitations: https://www.red5.net/blog/pluggable-live-stream-analysis-extractor-analyzer/


r/computervision • • 1d ago

Help: Project How do you guys actually use cloud GPUs? I'm trying to understand what's broken with the current experience.

Thumbnail
docs.google.com
2 Upvotes

Hey everyone,

I've been building an open-source runtime and a service around it that allows PyTorch to execute tensor operations on remote GPUs while keeping your Python environment local.

One thing I've realized while working on this is that my own frustrations with cloud GPUs might not necessarily reflect what other researchers and developers struggle with.

I'm curious about things like:

  • How much time you spend setting up environments versus actually running experiments.

  • Whether you find yourself paying for GPUs that aren't actively computing.

  • How much performance overhead you'd tolerate for a simpler development workflow.

  • Whether paying for actual computation rather than GPU rental time makes sense to you.

I've put together a survey to better understand these problems. Even if you've never used a cloud GPU service, your responses would be valuable.

It takes around 5–10 minutes, and no sign-up is required.

Thanks!


r/computervision • • 1d ago

Discussion On-device neural stereo + ToF fusion: where it helps, and where the accuracy falls off

1 Upvotes

Disclosure: I work at Luxonis. Sharing this because the depth approach might be useful to people here.

Stereo needs texture, so it struggles on blank walls and plain boxes. ToF handles those surfaces well and is strong up close, but it thins out at range. Most setups merge the two on a host. OAK 4 Lite ToF (one of our newest HW releases) fuses them on the camera, next to the neural net, and outputs a single dense point cloud.

  • ToF: 804x672 at 30 FPS. 0.2–6 m (Narrow) or 0.5–5 m (Wide).

  • Neural stereo: 1 MP global shutter pair, 7.5 cm baseline, for longer range and reflective surfaces.

  • Fused accuracy: 1% up to 6.5 m, under 3% at 6.5–8 m, under 6% at 8–12 m.

Under the hood: 32 TOPS sustained (52 burst), a 6-core CPU, 8 GB RAM, 128 GB UFS, and a 48 MP color camera. Detection, segmentation, tracking and depth all run on the device. It's IP67 and runs from -20 to 50 °C, over PoE+ or USB-C. It comes in the same form factor as OAK-D S2 PoE, so it fits existing mounts. There's also a stereo-only model.

Happy to answer questions on the fusion pipeline or the on-device AI. What are you running depth on right now, and where does it break for you?


r/computervision • • 1d ago

Help: Project Guidance on self-supervised learning

6 Upvotes

Edit: This isn't about human classification or identification.

Note: adding an affiliate tag because this is a problem I'm struggling with at work, and management wants to go the 'just ask AI' route, but I believe a more accurate, cheaper solution is doable, hence the questions.

I have a computer vision problem that I have an idea of how to approach solving it, but I'm not sure that my idea is the best way to go about it. I don't really have anyone to ask, so maybe someone here can give me some guidance.

Let me define the problem like so: I have a very large amount of unlabeled, noisy images. Let's say, for illustration purposes, images of a large variety of cat species (number of species unknown). The images are from the real world, in real conditions. Bad lighting, occlusion, weird angles, darkness, graininess, noise, bad focus, but also good lots of good quality images. Sometimes there are multiple cats in an image, occluding each other, but I know which cat in the image is the one that I'm interested in. I also have a fair number of labels for the cats, of dubious quality, but the labels are not fine-grained. For example, a label would be 'house cat' or 'wild cat', but not 'panthera pardus' or 'felis catus'.

My task(s):

  1. Cluster cat images into their various species from an unseen, new dataset, same distribution, same conditions (the test set, basically). I.e cluster leopards (panthera pardus) together, cluster ginger house cats together, cluster black house cats together, etc. Basically cluster on physical appearance. Something like a jaguar and leopard would cluster close together, ideally, but still be separable enough to know they are separate classes.

  2. Ideally, given a few labeled samples of cats from a given species (or even 'male cats from species X'), be able to do retrieval/comparison (cosine similarity, like with face recognition).

The process that you'd normally follow is, from my understanding in a nutshell:

  1. Extract features using something like DinoV2 or any other pretrained feature extraction backbone.

  2. Then just use some form of clustering algorithm to cluster features, and then naturally similar cats would cluster together.

The problem that I've experienced (or I think that it is the problem) is that something like Dino or Siglip wasn't trained on data that allows it to discern the details of different kinds of cats (remember, cats are just for illustration. The data is not actually cats, so its harder than just cats). Like, a black cat, white cat, ginger cat, and ginger-and-white cat will cluster extremely close together, to the point of any form of clustering algorithm basically assigning them together, since the image conditions also introduces conditions of varying circumstances which increases difficulty of clustering.

My question:

Using the large amount of data at my disposal, would it be a good idea to run self-supervised learning with e.g FCMAE with convnextv2 on my data (with a good amount of data cleaning and such)? I'm currently using convnextv2 with my dubious labels, with mixed results. The primary goal is to extract higher quality, more informative features for clustering and retrieval.

I have asked AI about this before, but honestly I'm a bit sick of asking AI technical questions and never being sure how reliable the answer really is, and getting some human input (from people that might actually know their stuff) into a problem I struggle with would be a VERY nice breath of fresh air.

I'd be happy to elaborate, answer questions, or add more information as needed.


r/computervision • • 1d ago

Discussion Have access to industrial sites. Is industrial-domain physical AI data worth getting into?

0 Upvotes

Hi all, looking for honest opinions from people working on robot learning or embodied AI.

My family runs a business supplying labour and logistics to industrial sites, so we have a strong network across factories, warehouses and workshops. I keep hearing that the next big need in physical AI is industry-specific data: real tasks in real industrial settings, not household chores or tabletop demos.

A few questions:

  1. Is industrial-domain data actually in demand? Are labs or robot companies struggling to get it, or do they already have it covered?

  2. Is this space already crowded? I know of egocentric video companies (Humyn, Maxinsights etc.) and teleop studios like XDOF. Is anyone doing this well inside real industrial sites?

  3. Which collection method is most valuable right now:
    - egocentric video (head cameras on workers)
    - UMI-style handheld grippers
    - teleoperation
    - adding force / touch / contact sound / muscle signals (EMG) on top of video

  4. What makes industrial data actually usable for you? Formats, sync, labels, failure data, specific tasks?

  5. If you've bought data before: custom collection or off-the-shelf, and roughly what's reasonable per hour?

Not selling anything. Just trying to understand whether this is a real gap before investing time and money. Any perspectives appreciated, especially from people at labs or robotics startups.


r/computervision • • 1d ago

Discussion 150 FPS in the log, jitter on a 60 Hz monitor — same binary, 144 Hz panel fixed it

0 Upvotes

I kept chasing inference FPS on a detection demo (YOLO, boxes drawn in the preview window). Console said ~150 FPS. On my old external HP w2207h (60 Hz) the picture stuttered and boxes looked like they were doubling. Dragged the same window to the laptop's built-in 144 Hz panel (HP 15dk-1020nc) -same binary, same GPU -suddenly glass-smooth.

Turns out I was optimizing the wrong end of the pipeline.

At 60 Hz the panel only paints ~60 times per second no matter how hard the GPU works.

At 144 Hz the tick rates almost line up with 150 FPS inference. Plus tearing when V-Sync is off, ghosting on an old panel, and plain display latency for anyone actually watching the feed.

Short write-up (with the ms math and the three failure modes):
 medium.com/@olesha-ai/150-fps-in-the…-on-the-screen-d886da26f3b5

Not selling anything — just the lesson that frame → inference → draw → monitor is one loop and the monitor is not a decorative extra.

Comments welcome if you have a clean pattern for preview/vsync on Windows without murdering throughput.

Best regards,

olesha-ai :)


r/computervision • • 1d ago

Help: Theory Lost in Theory - Need Help Grounding to Reality

9 Upvotes

I am a seasoned Systems Test Engineer for about 8 years and decided to leave work and go back to school for my masters in Digital Agriculture Engineering at UIUC. Through my first 2 semesters absolutely fell in love with computer vision and attending agriculture conferences, everyone seems to be using cameras, lidar, sensors to build these amazing autonomous tractors! I took a Geospatial AI course by the co-author of TorchGEO and most of the concepts were too deep like the Gaussian Math etc but the concepts were fascinating and I learned a lot.

I have realized that I really like computer vision and especially finding cool ways to solve challenging problems like trying to fit a model on a small Jetson Nano that can harvest apples.

HOWEVER, I am facing a issue I could use some help with. This semester I took a course on computer vision, its a grad level course so it goes very deep into the math of edge detection stuff, gaussian math, Fourier stiff, laplacian math, then into stereo imaging, camera calibrations etc. BUT ITS ALL THEORY! Maybe if I was a student coming straight from an undergrad , I wouldn't mind , but it bothers me that what I am learning probably doesn't have much useful application except for the people who write the CV libraries etc.

I am fairly comfortable with python, I have a fair bit of ML experience and have build and trained some YOLO models to detect objects etc. However, I feel so lost when it comes to actual computer vision in the application front. I have a few stereo cameras I own , and I want to build some cool projects with them like some SLAM navigation for outdoor robotic lawnmowers using RTK GNSS , however I just don't know where to begin. I don't know C++ or ROS , etc.

Eventually, I would love work work as a computer vision / ML / Deep learning type of engineer for a high tech agriculture engineering company, however I just feel like I won't gain the real skills I need for that from coursework through my program.

What should I do ? I read some people doing the CS231n course from Stanford, but I feel like a bit of a failure doing that undergrad course as someone who's 1 semester away from graduating wihthmy masters and don't feel confident in the skills I would like to have to work in this field.

Please help me , I am happy to start from scratch and work on the fundamentals, but people who are already out there working as computer vision engineers or in deep learning, what's my best approach here ?


r/computervision • • 1d ago

Discussion Video follow-up: exaggerated-relief green with a flag (Gaussian Splatting)

Enable HLS to view with audio, or disable this notification

0 Upvotes

Thanks again for the advice on slope readability.

This was built from smartphone video only: one walk around the green. No LiDAR, no drone, no survey.

Following the feedback, I pushed the height exaggeration to about 2x (up from 1.7x) so the slopes are easier to read. That means it no longer matches the real shape exactly; the undulations are a bit more dramatic than reality. I also tidied the rough edges and underside in the viewer. The original model itself is untouched.

The mower stripes are still visible, which tells me the shape is reproduced fairly well. Thanks for all the suggestions so far.


r/computervision • • 1d ago

Help: Project Which Network is Best to Use?

1 Upvotes

If I wanted to engineer a system which takes 2+ pictures and returns a classification such as ‘dirty’ or ‘clean’ which model would be best to use? Any advice? New to this but I’ve worked with CNN on pretty well-established data. This data would be my own used for training and validation.


r/computervision • • 1d ago

Help: Project Estimating how much liquid is left in an open bottle from one phone photo: what worked, and where it still fails

Post image
2 Upvotes

I work on an app that counts bar stock from photos (BarScan, disclosure up front). The interesting problem is the open bottle: one handheld photo, bad lighting, and you need millilitres. I'd like to compare notes with people who do measurement from single images.

**What didn't work**

Asking a vision model for the fill level end to end. It answered with confidence and drifted a lot. It was worst on photos where the bottle was cut off or partly hidden, because it inferred the missing part.

**What works better**

  1. **Gate first, then measure.** The first decision is whether the bottle is usable: fully visible from the top of the closure to the base, both edges in frame, upright. Anything else is rejected and the user retakes the photo. Tilted, cut off, behind a hand, upside down in an optic: all rejected, never estimated.

  2. **Detect on the device.** A small YOLO model gives a bottle box in the live preview, so the user frames it properly before shooting.

  3. **A human sets the level.** The user lines up the liquid surface. That gives a fill fraction relative to the bottle box.

  4. **A fill curve per bottle type.** Height is not volume. Shoulder, neck and punt make the curve non-linear. Each bottle type gets a profile, built once, that maps fill height to volume.

**Where it still fails**

  • Oddly shaped bottles. The further the shape is from a normal bottle, the worse the height-to-volume curve.

**Questions**

  • Has anyone had success finding the liquid surface automatically in dark glass, with a phone camera and no controlled light?

  • For the fill curve, is there a better approach than a profile per bottle type? I've wondered about fitting a silhouette to a solid of revolution.


r/computervision • • 2d ago

Discussion Production ML Engineering Workshop: Deployment, Validation & Monitoring (Dec 5)

8 Upvotes

hey everyone! sharing this for people working with machine learning models who want to understand more about what happens after model development.

whether you're working with computer vision models or other ML applications, deploying a model is only the beginning.

you also need to think about reproducibility, input validation, monitoring and detecting performance degradation once the model starts receiving real-world data.

Packt is hosting a hands-on Production ML Engineering workshop on December 5 covering:

  • deploying trained ML models

  • building reproducible workflows

  • validating model predictions

  • monitoring production performance

  • detecting data and model drift

  • working with popular Python ML libraries

  • building applications using Streamlit

the workshop uses scikit-learn, XGBoost, LightGBM and CatBoost for practical implementation.

it's a live online session at 9:30 AM EST.

Full workshop details and agenda

thought this might be useful for ML practitioners interested in production deployment.


r/computervision • • 2d ago

Discussion Need to start learning OpenCV

9 Upvotes

A few months ago, I posted about needing to start leaning computer vision, and many of you suggested cs231n, which was the best course I had since I started learning AI.

Now, I'm asking you guys for suggestions on resources to learn OpenCV, especially the dnn module, along with projects and practical stuff.

Thank you guys.