r/computervision • • Aug 21 '26

Help: Theory I trained YOLO on 2,400 Unreal Engine frames. Synthetic validation reached 0.888 mAP50, but real-world recall was 0.350. Here’s what failed.

Thumbnail
gallery
65 Upvotes

I trained a single-class YOLOv5n person detector using no real images:

  • 2,400 synthetic frames from eight Unreal Engine 5.8 maps
  • 9,007 native-scale 640 px tiles
  • 63,742 person boxes
  • 100 epochs, approximately 30 minutes on one RTX 4090
  • int8 deployment on a Coral USB Accelerator

On the float model's synthetic validation split at epoch 65, we measured precision 0.944, recall 0.790, and mAP50 0.888.

Then we evaluated the Edge TPU model on 120 real VisDrone frames. At a 0.15 confidence threshold, recall dropped to 0.350, with precision 0.582. Lowering the threshold to 0.10 only raised recall to 0.374, so this was not just a confidence-calibration problem.

Green = found, orange = missed, red = false positive. On the synthetic scenes, the model was generally reliable when people were isolated, well separated, and standing on open ground.

The eight source captures and dataset downloads: https://huggingface.co/NameFrame

Has anyone here measured a similar contextual domain gap when moving from synthetic scenes to real footage?

r/computervision • • 4d ago

Help: Theory Do computer-vision practitioners regularly switch between trained image classifiers for batch inference?

2 Upvotes

Hello. I am working on a batch image-classification app and need help in understanding how CV practitioners work on a daily basis. I am interested in the running of existing models, not training or fine-tuning them. Specifically, if I may ask?:

  • Do you work with multiple, existing image-classification models, or mainly develop and deploy one model per task?
  • Do you regularly switch between different classifiers, for model evaluation, comparison, historical reanalysis, or other batch-processing tasks, or does each classifier typically remain in a dedicated inference pipeline?
  • Once your classifiers are trained, what tools do you use for repeated batch inference?
  • How do you process folders containing hundreds, thousands, or millions of images? Python scripts, notebooks, CLI tools, desktop applications, or other systems?

Thank you for your consideration.

r/computervision • • Sep 07 '26

Help: Theory Bounding Boxes of student's answers

0 Upvotes

Hi Team, right now my project involves a black box wherein I input a PDF that contains students' handwritten answer sheets.
output is structured JSON that also contains bounding boxes of the students' answers (Coarse answer boxes roughly covering the student's answer)

Right now, the LLM is doing this and doing pretty well -- are there any cheaper alternatives?

r/computervision • • Feb 24 '26

Help: Theory Claude Code/Codex in Computer Vision

55 Upvotes

I’ve been trying to understand the hype around Claude Code / Codex / OpenClaw for computer vision / perception engineering work, and I wanted to sanity-check my thinking.

Like here is my current workflow:

  • I use VS Code + Copilot(which has Opus 4.6 via student access)
  • I use ChatGPT for planning (breaking projects into phases/tasks)
  • Then I implement phase-by-phase in VS Code where Opus starts cooking
  • I test and review each phase and keep moving

This already feels pretty strong for me. But I feel like maybe im missing out? I watched a lot of videos on Claude Code and Openclaw, and I just don't see how I can optimize my system. I'm not really a classical SWE, so its more like:

  • research notebooks / experiments
  • dataset parsing / preprocessing
  • model training
  • evaluation + visualization
  • iterating on results

I’m usually not building a huge full-stack app with frontend/backend/tests/CI/deployments.

So I wanted to hear what you guys actually use Claude Code/Codex for? Like is there a way for me to optimize this system more? I dont want to start paying for a subscription I'll never truly use.

r/computervision • • Aug 03 '26

Help: Theory Auto-labelling datasets with SAM 3: the prep work matters more than the model

Post image
118 Upvotes

My hope with this post is that I will save at least one person some time - and that will be enough for me. I spent the last couple of weeks building an auto-labelling pipeline on SAM 3 and figured the gotchas were worth writing down, because most of what I got wrong had nothing to do with the model.

Quick context if you haven't used it: SAM 3 does what Meta calls Promptable Concept Segmentation. You give it a short noun phrase - forklift, person in hi-vis vest - and it segments every instance of that concept. No seed clicks, no fixed class list, no fine-tuning. That's the bit that makes unattended labelling possible; with SAM 2 you still needed something to tell it where to look.

The minimal version is genuinely this short:

from transformers import Sam3Model, Sam3Processor

model = Sam3Model.from_pretrained("facebook/sam3").to("cuda").eval()

processor = Sam3Processor.from_pretrained("facebook/sam3")

inputs = processor(images=image, text="forklift", return_tensors="pt").to(model.device)

with torch.inference_mode():

outputs = model(**inputs)

results = processor.post_process_instance_segmentation(

outputs, threshold=0.5, mask_threshold=0.5,

target_sizes=inputs["original_sizes"].tolist(),

)[0]

# results["masks"] / ["boxes"] / ["scores"]

That works. Everything below is what I learned scaling it past one image.

1. Reuse the vision embedding across prompts

Naive multi-class loop encodes the image once per class. 3 classes × 40k images = 120k passes through an 848M-param backbone, 80k of which recompute something you already had. SAM 3 lets you split it:

vision_embeds = model.get_vision_features(pixel_values=inputs.pixel_values)

for prompt in prompts:

text_inputs = processor(text=prompt, return_tensors="pt").to(model.device)

outputs = model(vision_embeds=vision_embeds, **text_inputs)

Backbone runs once, only the text conditioning and mask decode repeat. Close to an N-fold speedup on multi-class jobs. There's a mirror version (get_text_features) for one prompt across many images.

2. Resolution is tricky

SAM 3 runs at 1008px native. Two failure modes:

  • Upscaling small images to 1008 gives you confidently mushy boundaries. It adds no information.
  • Downscaling big images destroys small objects. A 40px defect in a 4000px frame becomes a 10px smudge at 1008. If your targets are tiny, tile into overlapping 1008px crops and merge masks back with the offset. Don't resize.

Also: run ImageOps.exif_transpose() before anything else, or phone photos come back with masks correct for the stored orientation and wrong for the one you see.

3. Prompt phrasing does more than threshold tuning

Short concrete noun phrases. Singular. One concept per prompt.

  • forklift ✅ / find all the forklifts ❌
  • person in hi-vis vest ✅ / PPE compliant worker ❌ (trained on how things look, not your industry's vocabulary)
  • car or truck ❌ - that's two prompts

Biggest thing: test each prompt against images you know contain none of that class. A prompt that quietly fires on empty frames poisons the whole dataset. And if a prompt over-fires, add an adjective before you touch the threshold - white bicycle vs bicycle returns genuinely different sets.

4. You can sweep thresholds without re-running inference

The detection threshold is just a filter over stored confidence scores. So label a 50-image dev slice once at threshold=0.15, keep every score, and sweep offline.

Look for the false-positive cliff and stop just above it. If med area% collapses as you lower the threshold, the extra detections are specks - raise a minimum-area filter instead. If empty stays high at every threshold, your prompt is wrong and no threshold will save it. (The mask threshold can't be swept this way - it changes pixels, not scores.)

5. Small export things that cost me an hour each

  • pycocotools.mask.encode() needs np.asfortranarray(). Pass a C-ordered array and you get a silently transposed mask. No error.
  • The RLE counts field is bytes; json.dumps refuses it. Decode to ASCII.
  • For YOLO, write an empty .txt for images with no detections. Missing file = missing data; empty file = confirmed negative, which is how the model learns not to hallucinate.

6. Look at the labels

Auto-labelling fails quietly - no exceptions, no bad metrics, just a pallet prompt that's been segmenting the wooden floor for 12,000 images. Render a contact sheet of overlays sorted lowest confidence first and actually look at it. Ten seconds catches what an aggregate metric won't.

That's it. Hopefully I saved you guys some time and feel free to ask questions!

UPDATE: since I got a couple of similar questions about the auto-labelling pipeline in my DMs, I posted a full write up of it here . If you are curious about how to get the best results when auto-labelling - feel free to check it out.

r/computervision • • Jun 22 '26

Help: Theory Am I missing something or depth anything v2 better than v3?

Thumbnail
gallery
106 Upvotes

Depth map v3 was created using Comfyui, and v2 was created using the custom addon for Blender.

v2-large
v3-giant

upd: v3-mono_large https://imgur.com/a/PobuMM5

r/computervision • • Aug 28 '26

Help: Theory Detecting small objects

8 Upvotes

Hello!

Would like some input on what kind of model to use for detecting small objects in a rather static environment.

e.g flowers in a field of grass/ distant boats or swimmers in the water

The model should still be able to be able the objects when they get closer/bigger.

I experimented with training YOLO and RT-DETR models with datasets ranging from 4k-20k images

It seems like the RT-DETR models struggle very hard with detecting such small objects, after training the performance actually drops to detect basically nothing, whereas the base model worked pretty well. Although I can't tell whether it's an error on my side (e.g wrong hyperparameters) or that this should be expected.

From my tests, the YOLO models actually had a positive reaction to training instead.

Are there any tips on how to get RT-DETR models to work better on detecting such tiny objects? Do I just have to find a way to increase the size of my dataset? I also heard briefly about RF-DETR models but I am not sure if that would solve my problem.

Any insights would greatly be appreciated!

r/computervision • • 23d ago

Help: Theory CVAT vs Roboflow for YOLO annotation

6 Upvotes

Helloo
I’m working on an object detection project using YOLO to identify pavement distresses and infrastructure damage (e.g., cracks, potholes, etc.).

I’m currently deciding which tool to use for annotating my dataset: CVAT or Roboflow.

For those who have worked with YOLO/object detection, which would you recommend for this type of project? I’m particularly interested in:

  • Annotation accuracy and ease of use
  • Handling a large number of images
  • Exporting annotations in YOLO format
  • Managing/maintaining the dataset as it grows
  • Any differences that matter specifically for pavement distress detection

I’d appreciate hearing about your experience with either tool and any advantages/disadvantages I should consider.
Cheers!

r/computervision • • May 21 '26

Help: Theory Did SAM3 changed the Image Annotation game completely?

41 Upvotes

Recently auto-annotation has been commoditised, which means, due to the advancements in Foundation models like SAM3, Dino family and also VLMs like Gemini 3.0 Flash, T Rex + Models from IDEA Research ; it has become much easier to generate bounding boxes and use them to train domain specific models. Review and QA of AI generated annotation surely becomes a bottleneck as no model is 100% accurate in whatever it sees.

I have annotated hundreds of images manually a couple of years ago and it feels much easier than before to use AI to annotate, but the ChatGPT moment still seems really far.

The importance of the following question will be felt by everyone in this sub and everyone who trains specialised models professionally or for hobby.

Like LLMs have a huge scope of fine tuning and pre training specialised models for specific use cases, do vision models still have similar scope where people will keep training Object Detection models for their use cases? Or there will be a time where some AI lab will launch an efficient enough model which will detect anything without any pretraining or finetuning.?

Consider this an open discussions, suggest techniques or simply act on your insecurities of gradually becoming obsolete( hehe)

r/computervision • • 11d ago

Help: Theory I need help! (Dataset Quality)

2 Upvotes

Hi there!

Need help from some Computer Vision expert, with knowledge on dataset quality.

My company works on computer vision applied to digital pathology. In this case, we are developing an object detection model to detect tumour cells in HER2-stained breast tissue and classify them into four classes: 0, 1+, 2+, and 3+. Our dataset grows as we incorporate cases from new hospitals or scanners, and we call each new batch a “wave”.

Example annotations

Our latest model achieves around 0.73 macro F1 on the combined test set, only slightly above our internal acceptance threshold of 0.7. Performance also varies substantially across waves and classes. We already have approximately 4,500 image patches with almost one million cell annotations. The overall class distribution is approximately 28.5% class 0, 48.3% class 1+, 12.3% class 2+, and 10.9% class 3+.

We suspect that inconsistent annotation criteria may be contributing to this. Our current annotation guidelines are very brief—around 200 words—and provide neither image examples nor detailed guidance on uncertain cases. The boundary between 1+ and 2+ is particularly difficult, and we are concerned that different pathologists may interpret it differently. In our latest confusion-matrix analysis, 21.9% of cells annotated as 2+ are predicted as 1+. Different pathologists have contributed over time, but changes in annotators are mixed with changes in hospitals, staining and scanners, making the causes difficult to distinguish.

I would really appreciate advice on two questions:

1. What minimum experiment would you recommend to investigate inconsistent annotation criteria versus domain shift or model errors, before involving the pathologists in a new review? We have images, original annotations and predictions from two models evaluated on the same cohort.

2. What would you consider essential in an annotation guideline and a quality check for each new wave? In particular, we would like to establish agreed examples of class boundaries, clear rules for uncertain or unannotated cells, and a small inter-annotator agreement assessment before adding new data to training.

Any references, suggestions or critical feedback would be greatly appreciated.

Thanks in advance!

r/computervision • • 22d ago

Help: Theory Human Pose detection for heel & toe or grounding?

1 Upvotes

Does anyone use a pose model (or even just point estimation) that detects heels & toes of people? (ankles just aren't useful :)

Or, I feel like I recently saw something that highlighted where a foot touched the ground (an edge)

I'm trying to get my 3D poses to keep contact with the ground better (though I only need good 2D information)

Ultimately I think this is more likely to be solved with some specific coding instead, but curious to see if there's something out there already.

Or, I just start trying to extract masked pixels for feet and given we can assume you never see the bottom of the foot, infer a capsule and use that to intersect with the floor :)

r/computervision • • 24d ago

Help: Theory I find CS231n assignments pretty difficult

10 Upvotes

I am at the beginning of the course CS231n (Deep Learning for Computer Vision) by Stanford. I understand the lectures and the course notes pretty well, but I deeply struggle with the assignments where we manually build neural nets using Numpy. I know a lot of Numpy, linear algebra, vectorization, broadcasting, etc., yet I'm stuck.

If you've taken the course, could you tell me what I should do to get unstuck?

r/computervision • • Aug 31 '26

Help: Theory I want to understand Homography

6 Upvotes

camera's floor mapping (homography) to figure out where each detection actually stands on the floor

Can anyone explain, or any blog or video which helped you to understand it

r/computervision • • Aug 30 '26

Help: Theory Computer Vision for Robotics

22 Upvotes

I’m a Software Engineering student who has just completed my first year, and I’m interested in specializing in Computer Vision for Robotics.

I’d like to know which areas of mathematics I need to learn for this field, and which topics I should prioritize.

I’m also planning to study Stanford’s CS231N How much mathematics do I need to know before starting the course, and which specific mathematical topics should I be comfortable with beforehand?

r/computervision • • 4d ago

Help: Theory Any quantitative method to determine if an image is noisy?

1 Upvotes

Hello all

As you can see in the image above, there are noises in the middle image. However, this is a qualitative observation. I have not found any solution to reliably determine if an image is noisy.

The reason I need this is that I am dealing with a segmentation problem, and the model is from a different domain, and there is a lot of variation in the lighting, angles, and video decompression quality. Therefore, there is no reference image, and for a specific part of the pipe, I need to check whether the image is noisy so I can adjust the threshold or apply a smoothing filter to better filter out regions with irrelevant pixel values.

I hope it was clear. I know it is very complicated. Thank you all in advance.

r/computervision • • 27d ago

Help: Theory Can someone give me a good computer vision playlist from YT? Which covers everything from beginning to job ready? Can't find one... Would be a great help :)

0 Upvotes

W..

r/computervision • • Aug 18 '26

Help: Theory Need your thoughts to save my thesis !

3 Upvotes

I'm an undergraduate student.In next 2 semesters( which is probably the duration of 1 year) I need to do a thesis. I choose to do my thesis in the field of 'depth estimation' .

I read a lot of research papers(Monocular, stereo, Diffusion based). But I found most of the things got State of the art !! I'm reading and reading,not finding a single problem to solve or research!! I should also mention that i didn't understand all the topics 100%, but tried to get the concepts.

I'm trying but not even finding a single idea/problem/flaws !! What should I do? What am I missing? How to find a decent topic ? Please help me.

r/computervision • • 6d ago

Help: Theory What's the most reliable approach for getting a person's orientation given their bbox, 3d skeleton, 2d skeleton and homography projection plane of the floor?

2 Upvotes

As per the title, I've trying to find a way of calculating orientation of a person. I assumed it would be fairly straight forward of doing a cross product of the shoulder to shoulder vector and the spine vectors but it seems to be unreliable. I cant use motion vectors for this use case either as it needs to support people walking backwards or sideways. Any ideas?

I'm only focused on their yaw value rather than full 3d orientation

r/computervision • • Jul 24 '26

Help: Theory How to get better at classical computer vision

14 Upvotes

Hi. how do i even start getting better? for example i never really understood how to use edge detection for anyhting meaning full. so i looked online and the stuff i found was just how to get edges from an image. but never what to do with it afterwards.

how do i start getting better. also i feel like my math is lacking. do i start there?

r/computervision • • Aug 22 '26

Help: Theory Learning OpenCV 👀

2 Upvotes

I’m currently diving into OpenCV while being at an intermediate level in Python. 🐍

Exploring image processing, computer vision, edge detection, and how Python can interact with the real world through a camera.

Still learning, still experimenting, and definitely breaking things along the way 😂

Any OpenCV project ideas for an intermediate Python developer?

r/computervision • • Sep 09 '26

Help: Theory Suggest architecture/pipeline for general object detection + VLM call afterwards

5 Upvotes

Hi,

I am looking for the following model selection/inference pipeline. Goal is something like this:

1) detect human -> describe human

2) detect human -> detect objects in human hand -> describe objects

3) detect animal -> get specific animal type

4) detect general object (i.e package)

---

What are the suggested architecture/pipelines for this?

So obviously I can use yolov26 or another baseline yolo model, but I am trying to avoid having to annotate everything from the ground up. I do not mind fine-tuning, I just want to move past coco classes into something a little more broad.

My current idea is use YoloE/YoloWorld for general detections and then do a VLM call after on a separate thread (so base CV model can still run).

I am also playing around with stripping the earlier yolo model heads and maybe using NMS for arbitrary box removal. So the earlier heads determine the general objects, and then I make a VLM call to describe the objects in more detail.

I would like <3s inference if possible.

:)

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 • • Aug 21 '26

Help: Theory From SWE/MLE to CVE – but the field is massive and I need a realistic roadmap for 2026. Space/nuclear/robotics fan. No math degree. Help?

5 Upvotes

Hi everyone,

I have a small background in classical ML, engineering (FastAPI, Docker, SQL, Redis, etc.) and software development.

I want to pivot into CV, but I can't put together a good roadmap because of how broad the field is. I also can't decide on sources of information (books/courses/etc.) that will actually be relevant for studying in 2026.

My goal is to become a strong engineer. I'd be interested in applying my skills in space, mining, uranium energy, and robotics. I absolutely do not like medicine or the defense industry – because of the vibe and the kind of tasks.

Also, I don't have a formal math background. I'm moving into my second year of college as a software developer.

So I need a realistic plan on which subfield to choose, how to grow in it, and how hard it would be to get a job in it. I understand that I won't be allowed to train Moon rovers that will be launched to the Moon in the first 5 years of my commercial career, especially without a math or engineering degree.

I'm not afraid of hard work and I'm ready to study intensively.

My goal is to get a job in CV, save up for university and get work experience, and then with that background, move into the fields I actually like.

Anyway, I'll be happy with any help, mentoring, or learning together if you're a beginner too.

Also, I'd really appreciate any advice, criticism, or opinions.

r/computervision • • 8d ago

Help: Theory Could a physical adversarial pattern prevent AI from replicating real people in videos?

2 Upvotes

With tools like Kling Motion Control, it's becoming increasingly easy to take a video of a real person and transfer their movements to an entirely AI-generated character (e.g. Jean Philanthrope, etc.), I've been thinking about whether it's possible to protect people from having their appearance, movements, or actions replicated by AI. And I'm wondering if there's a way to disrupt this process using physical adversarial patterns.

I have seen research on adversarial clothing and patterns that can confuse computer vision systems or interfere with person detection. For example: https://adversarialapparel.com/

But could a similar approach work against AI video replication? For example, imagine a smartphone case with a specially designed pattern that appears in videos and interferes with an AI's ability to accurately analyze or replicate the person.

A few questions:

  • Could a physical adversarial pattern interfere with pose estimation or motion extraction?
  • Could a relatively small object, like a smartphone case, have any meaningful effect?
  • Would something like this work across different AI video models?
  • Is there any existing research exploring ways to protect real people from AI video replication?

I understand that disrupting traditional computer vision doesn't necessarily mean disrupting generative video models. I'm curious whether this is technically plausible or fundamentally unrealistic.

Would love to hear your thoughts! Thanks!

r/computervision • • 7d ago

Help: Theory Python Computer Vision

Thumbnail
0 Upvotes

Hello everyone, I’m Mahmoud from Iraq, and I am studying Artificial Intelligence Engineering. I wanted to share my goal of specializing in Computer Vision; I hope you can support me and offer any advice you deem appropriate. Also, if possible, please share study methods or global resources that I could benefit from. Thank you.