frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

FeatLens – One API to visualize features from any vision backbone

https://github.com/turhancan97/FeatLens
2•tkargin•1h ago

Comments

tkargin•1h ago
I’m a computer-vision researcher who frequently examines feature maps (such as PCA-to-RGB and cosine similarity) to validate the learning of a model. However, the challenge was that each backbone model resided in different locations, such as torch.hub, timm, HuggingFace, or some paper’s repository. Consequently, I had to rewrite the same glue code repeatedly to extract dense features from each model.

FeatLens addresses this issue by separating the “load the model” step from the “visualize it” step. An adapter layer normalizes any of these sources (including your own nn.Module and CNNs) into a single [B, L, D, h, w] tensor. The visualization side then arranges a model x layer grid. Coloring methods available include PCA, cosine similarity to a seed patch, k-means, foreground, saliency, and attention-rollout. Additionally, it supports cross-image patch correspondence, batch/folder mode, and video, including V-JEPA, where the entire clip is fed once and split into per-timestep maps.

To install FeatLens, simply run the following command in your terminal: pip install featlens.

For a live demo, visit the following link: https://huggingface.co/spaces/turhancan97/FeatLens-demo

For detailed documentation, refer to the following link: https://turhancan97.github.io/FeatLens/

To be transparent about prior art, PCA-on-DINO is a well-known technique. There are also related tools like dinotool (PCA extraction, primarily for one model at a time), FeatUp (feature upsampling), and grad-cam/Captum/to a different category. However, what I sought and couldn’t find in a single place was the combination of multiple providers behind a single API, various coloring methods, and side-by-side model x layer comparison.

This project began as a weekend endeavor, with significant contributions from Claude. It is licensed under MIT. I welcome feedback and PRs, particularly regarding model coverage and any feature-coloring methods you would like to see implemented.

Fable via API and Me

1•lygten•1m ago•0 comments

Localize your App Store IAP and subscriptions in 175 countries with one clic

https://medium.com/apparence/localize-your-app-store-prices-automatically-with-parityappkit-ae3d4...
1•macfleid•3m ago•0 comments

OpenAI Proposes Giving US Govt. 5% Stake

https://www.bloomberg.com/news/articles/2026-07-02/openai-proposes-giving-the-us-government-a-5-s...
1•karma_daemon•3m ago•1 comments

Show HN: LoopFlow – plain-English loops that run coding agents until tests pass

https://loopflow.live
1•forgeapp•4m ago•0 comments

3D Printing a Brain (2021)

https://jonathanraines.github.io/projects/3d-printing-a-brain/
1•JonathanRaines•5m ago•1 comments

Show HN: Newsprint – A native RSS reader for macOS with Hacker News support

https://github.com/ata-sesli/newsprint
1•ata-sesli•5m ago•0 comments

Low-level Haskell: The cursed way to emulate inline assembly in Haskell/GHC, or

https://minoki.github.io/posts/2026-06-30-haskell-inline-asm.html
1•fanf2•5m ago•0 comments

FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

https://apple.github.io/foundationdb/flow.html
1•sourdecor•5m ago•0 comments

Ask HN: Who here has gotten a job offer from 'Ask HN: Who wants to be hired?'

2•fur-tea-laser•6m ago•1 comments

Qdf – a Go serializer you query the raw bytes of, smaller than protobuf

https://github.com/alex60217101990/qdf
1•alex602•7m ago•0 comments

The System as a Program: fusing the database and the programming language

https://www.cambra.dev/blog/the-system-as-a-program/
2•sortalongo•10m ago•1 comments

Tarski's influence on computer science [pdf]

https://math.stanford.edu/~feferman/papers/tarskiandcs.pdf
1•remywang•10m ago•0 comments

Optimizing an Algorithm That's Quadratic by Design

https://whatchord.earthmanmuons.com/articles/chord-ranking-performance.html
1•elasticdog•11m ago•0 comments

Anthropic is removing its covert code for catching Chinese competitors

https://www.theregister.com/ai-and-ml/2026/07/01/anthropic-is-removing-its-covert-code-for-catchi...
3•johnbarron•12m ago•0 comments

Understanding List Virtualization

https://jlopes.eu/blog/understanding-virtualization/
2•offeringofpie•12m ago•0 comments

The Mythos report for curl 2026-05-06 made public

https://gist.github.com/bagder/c9b83a19f30e82e41b11f6315465b17a
1•_____k•12m ago•0 comments

Good APIs Age Slowly

https://yusufaytas.com/good-apis-age-slowly
2•birdculture•13m ago•0 comments

What Is CSS Containment and How Can I Use It?

https://csswizardry.com/2026/04/what-is-css-containment-and-how-can-i-use-it/
1•eustoria•13m ago•0 comments

PCs Explorer – Know your worth

https://strivetobeearthsbestemployer.com
1•johnbarron•13m ago•0 comments

Every New JavaScript Feature Worth Knowing

https://blog.webdevsimplified.com/2026-06/new-javascript-features-es2026/
1•eustoria•14m ago•0 comments

How to Switch LLM Providers Without Downtime

https://konghq.com/blog/enterprise/how-to-switch-llm-providers-without-downtime
1•axandriamier•15m ago•0 comments

A Judicial Wake-Up Call on Government by AI

https://www.techpolicy.press/a-judicial-wakeup-call-on-government-by-ai/
2•cdrnsf•15m ago•0 comments

Can You Embrace A.I. Without Layoffs? This Company Says It's Trying

https://www.nytimes.com/2026/07/02/world/europe/germany-sap-ai-jobs-skilled-workers.html
2•xbryanx•16m ago•0 comments

AppControl – Advanced Task Manager with History

https://www.appcontrol.com/
1•eustoria•17m ago•0 comments

Show HN: Point0 – a fullstack TypeScript framework on Bun and React

https://github.com/1gr14/point0
1•1gr14•18m ago•0 comments

TallyHouse – Local-first net worth tracker, no cloud or bank linking

https://tallyhouseapp.com/
1•dcohanoff•19m ago•0 comments

H.R.7757 – KIDS Act

https://www.congress.gov/bill/119th-congress/house-bill/7757
4•undersuit•19m ago•1 comments

Modern JavaScript: Everything you missed over the last 10 years (2020)

https://turriate.com/articles/modern-javascript-everything-you-missed-over-10-years
2•downbad_•19m ago•0 comments

Crypto Brought Trump a Windfall, Even as Many Investors Lost Big

https://www.nytimes.com/2026/07/01/us/politics/trump-crypto-memecoin-world-liberty.html
3•NordStreamYacht•20m ago•0 comments

Alex Karp: Frontier Models Are Not Delivering Outcomes [video]

https://www.youtube.com/watch?v=0A3sGymV6kY
6•dzonga•20m ago•2 comments