Ross ROSS = Recommend OSS · open-source software intelligence for agents

AlexHex7/Non-local_pytorch

Implementation of Non-local Block. observed · 2026-08-28

github.com/AlexHex7/Non-local_pytorch · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

32/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3192
  • days_rel: n/a
  • days_push: 1239
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1564 stars · 269 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A PyTorch implementation of the Non-local Neural Block from the paper 'Non-local Neural Networks', providing multiple variants (concatenation, gaussian, embedded gaussian, dot product). It includes demo training on MNIST and tools for visualizing non-local attention maps.

Use cases

  • add non-local attention blocks to my pytorch model
  • implement non-local neural networks in pytorch
  • visualize non-local attention maps
  • compare different non-local block variants
  • train a network with non-local blocks on MNIST
  • use mixed precision training with non-local blocks

When to choose

  • you need a ready-made, well-starred PyTorch implementation of the Non-local Block
  • you want to experiment with all four non-local block variants
  • you want to visualize non-local attention maps for interpretability

When to avoid

  • you need a maintained library with recent updates and broad model integrations
  • you want attention modules beyond the non-local family (e.g., transformers, SE blocks)
  • you need production training pipelines rather than demo code

Facets

library · maturity maintenance

machine-learning deep-learning image-processing computer-vision deep-learning computer-vision machine-learning python non-local-block pytorch attention neural-networks mnist mixed-precision visualization gpu

1 source

Member repositories

RepositoryRoleHealth v2
AlexHex7/Non-local_pytorchmain32

For agents

markdown · JSON · MCP: product_card(name="AlexHex7/Non-local_pytorch")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem