News for hackers. Stuff that matters.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by omeze on Monday January 22, 2024 @06:16PM (#39096938)
This is really cool - based on the project page it uses off the shelf models like Yolo and Tesseract plus a ton of synthetic data (which is also freely available). Also solves a real industrial use case!
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by icecoffee on Monday January 22, 2024 @08:03PM (#39097974)
Yup, the components can be replaced to your liking and expand the data to your match your environment better. I found it really interesting how, no matter how I prompted foundational models they couldn't read gauges.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by bsenftner on Tuesday January 23, 2024 @06:14AM (#39101920)
I'm surprised something like reading gauges is not one of the entry level computer vision problem data sets. It seems to obviously useful.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by rob74 on Tuesday January 23, 2024 @06:22AM (#39101980)
Well, I hope that for any serious application they would replace the analog gauges with sensors that produce values that can be directly read by a computer system, rather than teaching it to read the analog gauges. So I think the actual real-world usefulness of this is rather limited...
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by icecoffee on Tuesday January 23, 2024 @06:54AM (#39102221)
Exactly, I use to think the same thing! Many legacy system, the industrial machines that run factories, infrastructure, etc. all have hundreds of gauges and some of them do get "watched". Cost of digitization via smart gauges just cost too much and planning that goes into replacing them often isn't tenable. So many instrument readings don't get logged - until some machine fails. There are systems out there, but they aren't affordable to make a broad impact - I hope we can progress to change that.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by bsenftner on Tuesday January 23, 2024 @06:38AM (#39102103)
I guess you're unaware of the gargantuan number of legacy manufacturing plants littered all over the globe that are trying to retrofit current tech over 40+ year old tech while it is still operating. Think 2nd and 3rd world manufacturing; far larger than you probably imagine.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by _fizz_buzz_ on Tuesday January 23, 2024 @06:57AM (#39102245)
Also 1st world manufacturing.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by Workaccount2 on Tuesday January 23, 2024 @10:07AM (#39104274)
My company has a huge legacy business where we are still manufacturing brand new PC boards with intel 8086's on them. We have a huge inventory of 40 year old chips for it, lol.

Nobody wants to upgrade when the current system still works and can be supported (however painfully).

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by idiotsecant on Tuesday January 23, 2024 @08:56AM (#39103299)
Its very common for plant operators to do 'rounds' and inspect gauges that are not digital because they are not usually terribly important, because the gauge provides a backup to the electronic reading, etc.

Put this on a 'spot' robot from Boston dynamics and you have an operator that won't be hurt when there is a steam leak, or whatever.

There are definitely use cases.

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by Workaccount2 on Tuesday January 23, 2024 @10:04AM (#39104217)
It would be even more trivial to just have cameras and a human who can quickly scroll through the different cams to check the gauges.

The question is how much you trust this vision system, not whether or not you still need a guy to do rounds.

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by idiotsecant on Tuesday January 23, 2024 @05:06PM (#39110627)
No, fixed cameras have a linear maintenance cost and are subject to all the regular problems fixed infrastructure has. A robot has the same cost whether it spends all day walking in circles or doing rounds.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by Workaccount2 on Wednesday January 24, 2024 @09:37AM (#39117795)
You would probably have to pay for 80 years of "camera maintenance" before you met the cost of 1 robot.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by icecoffee on Thursday January 25, 2024 @05:02AM (#39127922)
The cv reading here is really a POC base on off-the-self and will require some work. Fix-camera vs Spot, I can definitely see the pros and cons. So at what price point do you think industry will adopt Spot for doing rounds?
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by pona-a on Thursday January 25, 2024 @02:07AM (#39127011)
I recall there was a project integrating utility meters into Home Assistant, where a tiny ESP board with on-device ML used a camera to read the analog gauge, basically the most practical solution given you can't replace or modify your utility meter and only a handful offer a serial port.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by mkl on Tuesday January 23, 2024 @04:14AM (#39101174)
Doesn't seem to work me for uploaded images on mobile. Firefox Android tries to take a photo instead of uploading one, and Chrome Android consistently stops and says "Error" 6 seconds after pressing "Submit".
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by icecoffee on Tuesday January 23, 2024 @06:37AM (#39102094)
The error messaging was non-existent. Add some and redeployed, hopefully its a bit helpful.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by mkl on Tuesday January 23, 2024 @04:19PM (#39110001)
It still just says "Error" as far as I can see, but it sometimes gets a bit further than 6 seconds now.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by eurekin on Tuesday January 23, 2024 @04:19AM (#39101216)
I was just about to whip up a openCV version for sth very similar! If this works, I might be able to diagnose the eCVT issue I have with my car.

EDIT: ah, it's for the other types of gauges. Errors out on mine :)

https://imgur.com/a/J4IHP0r

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by icecoffee on Tuesday January 23, 2024 @06:42AM (#39102129)
Yea... the model wasn't trained on speedometers. I curious how this might help with your "eCVT issue", can you elaborate?
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by eurekin on Tuesday January 23, 2024 @07:25AM (#39102444)
It manifests only on a certain speed range (40 to 55 kmph): acceleration pedal press isn't translated into car acceleration instantly, but with up to 3 second pause, during which the ICE is revving up almost to the max.

I wanted to record speed, rpm and acceleration to graph that and show at the repair station.

At one visit in a authorised repair station the mechanic couldn't diagnose it (unrelated heavy snowing conditions).

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by cibyr on Tuesday January 23, 2024 @08:12AM (#39102874)
Sounds like a job for a cheap Bluetooth OBDII dongle.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by eurekin on Tuesday January 23, 2024 @09:15AM (#39103522)
Yes, and that's what I'll probably end up doing. It surprised me that there is no off the shelf solution using computer vision and that piqued my interest to refresh the SOTA
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by bondarchuk on Tuesday January 23, 2024 @10:12AM (#39104362)
Just film the dials and show the video to the repairman, should be clear enough (/clearer). Computer vision not necessary.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by eurekin on Friday January 26, 2024 @07:10AM (#39141772)
If anyone's interested: it works as designed. I just bumped into a inherent flaw of a eCVT, which was exaggarated by bad weather.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by godelski on Tuesday January 23, 2024 @02:54PM (#39108820)
> the model wasn't trained on speedometers.

This sounds problematic and like it explains why the first example image is improperly labeled. There is a general form to dial gauges and the results make me suspect of overfitting. Data diversity is essential. Quality of data matters more than quantity (though you still need quantity).

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by mitjam on Tuesday January 23, 2024 @04:39AM (#39101362)
There is also the "AI on the Edge Device" project [1] which can read both analog gauges and digital displays and runs on an ESP32. One read-out takes more than a minute but inference runs on the ESP32 with TensorFlow Lite.

[1]: https://github.com/jomjol/AI-on-the-edge-device

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by amelius on Tuesday January 23, 2024 @06:38AM (#39102101)
"The model was built only with synthetic data (e.g. examples). Hence, it probably will not work on significantly different images - give it a try. Let us know, so we can keep improving."
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by dotancohen on Tuesday January 23, 2024 @06:49AM (#39102192)
There are even lots of errors on the four example images' readings. I'm on mobile so I won't file the bugs, but this project has a lot of work to do.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by RecycledEle on Tuesday January 23, 2024 @08:18AM (#39102933)
This is not surprising.

LLMs trained in Internet data are Internet simulators.

How often have you asked the Internet to read an analog gauge for you? Probably never.

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by RecycledEle on Tuesday January 23, 2024 @08:19AM (#39102944)
Maybe we need an LLM to follow grandpa around his auto shop and learn a few things. Glasses with cameras and mics might help record the data.

This could also be a way to train a bot to do grandpa's job.

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by devmandan on Tuesday January 23, 2024 @09:09AM (#39103450)
I take issues with the approach. Anyone know anyone who wants dial gauges retrofitted? I got a way to do it that seems good enough.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by bearjaws on Tuesday January 23, 2024 @10:13AM (#39104383)
Would fine tuning be able to fix this kind of problem in a model like LLaVA?

I am not sure if it even has the right foundation data set to even understand the myriad of gauges that exist in the world, so I doubt fine tuning will fix anything.

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by icecoffee on Tuesday January 23, 2024 @08:32PM (#39112508)
I suspect models probably need "reasoning" ability - very lacking in current models. Perhaps, AlphaGeometry can do better.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by observationist on Tuesday January 23, 2024 @10:36AM (#39104772)
All watches and clocks generated by dall-e (and almost all other generative models) show 10:10, because this is the standard display "pose" in watch ads, so most of the training data shows things in a particular configuration.

Synthetic data showing relative gauge positions and a wide variety of contexts anchored to a particular category, like "dial gauge showing 31%" is the solution, just like watch images showing a full range of perspectives and times is the solution to the 10:10 problem.

I think the trickiest problem in transformer models is identifying situations like this where there's a mode collapse, but it's one or more degrees of separation from being apparent. This can lead to generation being technically and structurally correct (like a beautifully rendered wristwatch,) but the range of available answers will be limited to whatever the model has collapsed on (i.e. all watches and clocks only show one time, even if you ask it to display 4:59 PM and construct a perfect prompt about something right before work is done for the day.)

These are subtle distortions in the world model, but things like the 10:10 problem likely also affect other concepts that overlap with clocks and watches, like analog gauges. Maybe there are patterns in the model that can be associated with these types of issues, and using noise and synthetic data can target and unstick a model?

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by icecoffee on Tuesday January 23, 2024 @08:08PM (#39112339)
Yes, I encountered a similar issues with the first iteration of dataset. The prediction location of the needle tip would be wildly off when the view angle was high. The fix was easy, just generated high viewing angle images for the 2nd dataset.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by pona-a on Thursday January 25, 2024 @02:01AM (#39126984)
Can it be remedied at inference time by decaying the collapsed tokens' probability or is the world model itself defective?
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by hncomb on Tuesday January 23, 2024 @11:23AM (#39105451)
Is this commercially usable? Great work!
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by coder543 on Tuesday January 23, 2024 @03:07PM (#39109004)
I don’t see clear licensing on any of this, including the synthetic dataset.
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by godelski on Tuesday January 23, 2024 @02:51PM (#39108772)
I tried this, with an example image they give[0] and it failed. It shows a value of 1.9, which is where the shadow is pointing but not the actual needle.

I am suspect that the training data is good. Many tasks highly depend on labeled datasets and unfortunately these need to be very large (given current ML methods). The major problem is that these labels are generated from cheap or free labor where labelers are also expected to know the nuance and label appropriately. Nearly (if not every) dataset you've seen has major errors in them that matter. Honestly, one of the only ways to combat this is be insistent on viewing benchmarks as guides. There's been countless times I've demonstrated to others how I can perform worse the training dataset but absolutely demolish results when using customer datasets or real world data (i.e. generalization). Remember, it is absolutely possible to overfit your model even if your validation accuracy does not decrease. There are many ways to overfit and evaluation is unfortunately substantially harder than looking at results on a test set. There's a lot of complexity to this and if you want an effective product you should probably have at least one person on your team that cares about statistics and will nitpick stuff (though you can also over-saturate your team with these people too. I say that as one of these people).

Edit: Actually I believe every example shows an incorrect reading.

[0] https://synanthropic-reading-analog-gauge.hf.space/--replica...

Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by icecoffee on Tuesday January 23, 2024 @08:26PM (#39112462)
Though I haven't effort into analyzing or tweaking the training, some of the perditions does look like it points at the shadow instead of the tip. This synthetic dataset is tiny (not even 100k) - but still larger than what I could find. I think there's a lot of room for improvement. What do you think is the most important requirement?
Re:Show HN: Simply Reading Analog Gauges – GPT4, CogVLM Can't by godelski on Wednesday January 24, 2024 @12:52AM (#39114098)
That's all fair, and I'm a big believer in context for proper evaluation. My issue is really about the presentation. There's a pervasive issue in research that exaggeration compounds as if one work exaggerates its effectiveness that subsequent works have a higher bar to meet to show improvements and the frequent result is additional exaggeration (even in just small amounts).

> What do you think is the most important requirement?

Data quality and augmentation. I looked at the dataset[0] and the quality is very poor. There is very low diversity and it appears that it is composed of a few images and increased through augmentation. Augmentation should not be handled through dataset generation but dataset processing. Torch will even move bounding box keypoints when cropping or resizing images.

Data quality is one of the most important factors and I know it is common to just get labels to Turk or cheap services but you absolutely get what you pay for.

[0] Please don't harvest emails and usernames to require downloading. I created a dummy account for this because that's absolutely not acceptable. DO NOT SEND PEOPLE SPAM. DO NOT HARVEST EMAILS AND SELL THOSE EMAILS. I happily flag emails that come to my account through means like this until Google identifies all emails from that sender as spam. DO NOT DO THIS. It will just make people hate you and build a devoted base against you. There is no justification for this. You should absolutely rescind the gate and delete all emails you harvested. Your licensing is already an agreement. Don't be shady.