Better HN
topnewbestaskshowjobs
Log inSign up

Two_hands

159 karma · joined Aug 31, 2021 (5y ago) · 63 submissions

https://ym2132.github.io
Submissions

1.

EyesOff Spots Shoulder Surfers Using a Privacy-First Approach(eyesoff.app ↗)

2 points · by Two_hands · 4mo ago · discuss

2.

Overcoming OSS Contribution Anxiety(ym2132.github.io ↗)

1 points · by Two_hands · 7mo ago · discuss

3.

Show HN: EyesOff – On-device AI that catches shoulder surfers(eyesoff.app ↗)

1 points · by Two_hands · 8mo ago · discuss

comment 8mo ago · link · parent

I tried to build something: https://github.com/YM2132/PR_guard which aims to help in these cases. It's not perfect but with stronger AI detection tools (Pangram) it could be improved although the issue of cost then arises and who pays for it.

5.

Why Some Models Quantize Better Than Others(ym2132.github.io ↗)

2 points · by Two_hands · 9mo ago · discuss

comment 11mo ago · link · parent

Agreed, I have seen some speedups with ONNX if I'm being honest but the process especially on MacOS is a bit messy. I'll try out Executorch and see how it compares, cheers for the recommendation

comment 11mo ago · link · parent

To be honest it's a shame the whole thing is closed up, I guess it's to be expected from Apple, but I reckon CoreML would be benefit a lot from at least exposing the internals/allowing users to define new ops.

Also, the ANE only allows some operators to be ran on it right? There's very little transparency/control on what can be offloaded to it and cannot which makes using it difficult.

comment 11mo ago · link · parent

Wow I didn't know that.

The worst part of it is as you say we all accept it and no one talks about it.

Is there any recommended reading you'd suggest to look into this more and the impacts of it?

comment 11mo ago · link · parent

Yeah I can see why they let it be that way, but the fact it is pretty undefined is what bugged me. I suppose it depends on what your goals are - efficiency vs reproducibility.

Also I did run a test of FP16 vs FP32 for a large matmul on the Apple GPU and the FP16 calculation was 1.28x faster so it makes sense that they'd go for FP16 as a default.

comment 11mo ago · link · parent

cheers for the tip, I'll give it a go

comment 11mo ago · link · parent

Thank you for reading.

Also generally I think CoreML isn't the best. The best solution for ORT would probably be to introduce a pure MPS provider (https://github.com/microsoft/onnxruntime/issues/21271), but given they've already bought into CoreML the effort may not be worth the reward for the core team. Which fair enough as it's a pretty mammoth task

12.

ONNX Runtime and CoreML May Silently Convert Your Model to FP16(ym2132.github.io ↗)

98 points · by Two_hands · 11mo ago · 17 comments

comment 11mo ago · link · parent

Working on a blog post about default behaviour in ONNX Runtime when using the CoreML execution provider. Basically the default args lead to your model being ran in FP16 not FP32.

You can find more details at my site soon: https://ym2132.github.io

14.

Show HN: PR Guard – A GitHub Action to ensure authors understand their PRs(github.com ↗)

2 points · by Two_hands · 1y ago · 1 comment

comment 1y ago · link · parent

interesting, $10 per hour is pretty reasonable.

ha, thats probably why I noticed the EyesOff accuracy drops so much at longer ranges, I suppose two models would do better but atm battery drain is a big issue.

I'm not sure if it's important or not, but the app comes from my own problems working in public so I'm happy to continue working on it. I do want to train and deploy an optimised model, something much smaller.

Sounds great, once a POC get's built I'll let you know and can see about the clinical side.

Thanks for the tips! I'll be sure to post something and reach out if I get round to implementing such a model.

comment 1y ago · link · parent

wow, this is great! You can't DM but my email is in my blog post, in the footnotes.

Do you remember the cost of Mech Turk? It was something I wanted to use for EyesOff but never could get around the cost aspect.

I need some time to process everything you said, but the EyesOff model has pretty low accuracy at the moment. I'm sure some of these tidbits of info could help to improve the model, although my data is pretty messy in comparison. I had thought of doing more gaze tracking work for my model, but at long ranges it just breaks down completely (in my experience, happy to stand corrected if you're worked on that too).

Regarding the baby screener, I see how this approach could be very useful. If I get the time, I'll look into it a bit more and see what I can come up with. I'll let you know once I get round to it.

comment 1y ago · link · parent

Thats a cool idea, thanks for sharing! It's cool to see other uses for a model I built for a completely different task.

Is there any research/papers on this type of autism diagnosis tools for babies?

To your last point, yes I agree. Even the task I setup the model for is relatively easy compared to proper gaze tracking, I just rely on large datasets.

I suppose you could do it in the way you say and then from that gather data to eventually build out another model.

I'll for sure look into this, appreciate the idea sharing!

comment 1y ago · link · parent

Yeah I did see something like this, may have been huawei. Not sure if they use a model or sensor based approaches though

comment 1y ago · link · parent

This has been done! It’s the paper I first looked at for this task: https://github.com/rehg-lab/eye-contact-cnn

They create this CNN for exactly this task, autism diagnosis in children. I suppose this model would work for babies too.

Edit: ah I see your point, in the paper they diagnose autism with eye contact, but your point is a task closer to what my model does. It could definelty be augmented for such a task, we’d just need to improve the accuracy. The only issue I see is sourcing training data might be tricky, unless I partner with some institution researching this. If you know of anyone in this field I’d be happy to speak with them.

comment 1y ago · link · parent

Right now that's pretty much what I do. I use YuNet to get faces, crop them out and run detection. It's probably a factor of a not enough data/poor model choice.

comment 1y ago · link · parent

Thanks glad you enjoyed it.

comment 1y ago · link · parent

Yeah tbh I do recommend using this alongside a privacy screen for best protection. Privacy screens also suffer from the fact that they won’t block someone directly behind you from seeing the screen, so both methods have issues.

Any tips on improving accuracy? A lot of it might be due to lack of diverse images + labelling errors as I did it all manually.

comment 1y ago · link · parent

Sorry, I haven't gotten around to gathering examples yet. I ran the models on some example videos which is where the accuracy stats come.

Perhaps I have been jaded by the Mac webcam, I agree on most old webcams it wont be great but on newer webcams I have had success.

I did try a calibration approach but it's simply too fragile for in the wild deployment, calibration works great if you only care about one user but when you start looking at other people it doesn't work so well.

Good idea, it may be more fruitful to do that. At least then for the primary user we can be much more certain.

comment 1y ago · link · parent

This models supports the EyesOff application which will prevent information extraction by either having a popup, switching to another app, or a notification(you can define the behaviour in a few different ways).

Privacy screens are still useful and I recommend people to use EyesOff and the screen protector. A privacy screen won't stop someone shoulder surfing from directly behind you etc.

There is also better ways to do this sort of task when all you care about is tracking the main user: https://arxiv.org/abs/2504.06237, https://pmc.ncbi.nlm.nih.gov/articles/PMC11019238/

comment 1y ago · link · parent

Others are already trying to do this https://arxiv.org/abs/2504.06237. I haven't seen anyone take the approach I tried though, as most uses cases focus on tracking the main user rather than others around.

26.

EyesOff: How I built a screen contact detection model(ym2132.github.io ↗)

35 points · by Two_hands · 1y ago · 25 comments

27.

The Beauty of Building(ym2132.github.io ↗)

2 points · by Two_hands · 1y ago · discuss

comment 1y ago · link · parent

I'm working on EyesOff[1] - v2.0.0 should be out soon.

It's a simple (currently macOS) application which aims to target shoulder surfing by using a locally running neural network to detect those looking at your screen.

[1] https://www.eyesoff.app

comment 1y ago · link · parent

I think the best thing I realised was to post what and when I want, with little expectations regarding the number of readers. This way I produce the best content and any reader who does stumble across the posts will get the best read. I suppose my content is sort of nice too, so if I focused on readers my content would inevitably stray from what it is at the moment (sucking the joy out of it for me along the way)

comment 1y ago · link · parent

EyesOff a privacy focused macOS app (other platform support coming soon) - https://www.eyesoff.app

Built using python the app alerts you to when someone is looking at your screen, using locally running deep learning models + your webcam.

I developed the app when I felt uncomfortable with working in public spaces, I wanted EyesOff to give an extra barrier of security to shoulder surfing scenarios

123