SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1807.06521 · ECCV · 2018

CBAM: Convolutional Block Attention Module

arXiv · PDF · Open in the Atlas

Code that ran

13 of 22 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 6 failures of our instrument; 9 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1807.06521.json · badge: /api/ran/1807.06521.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Jongchan/attention-module canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
kobiso/CBAM-keras community (classifier label)
classifier basis not recorded on the link
6 ran · 5 no recorded run
LKLQQ/CBAM community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
laugh12321/3D-Attention-Keras community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
kobiso/CBAM-tensorflow-slim community (classifier label)
classifier basis not recorded on the link
0 ran · 4 no recorded run
FunctionStatusWhere it lives
cbam_block Ran
ran on a synthesized input
laugh12321/3D-Attention-Keras/model/CBAM_attention3D.py
code served (permissive licence) · get_code("a743d47f31b227e8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned SymbolicTensor. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf

# Create a sample 3D feature tensor
# Shape: (batch_size, depth, height, width, channels)
# Using small dimensions: batch=2, depth=4, height=3, width=5, channels=8
feature = tf.random.normal((2, 4, 3, 5, 8))

ARGS = {
    'feature': feature,
    'ratio': 8,
    'kernel_size': 7
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv2d_bn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kobiso/CBAM-keras/models/inception_resnet_v2.py
code served (permissive licence) · get_code("83d32f91c543bc87")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned KerasTensor. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import keras
from keras.layers import Input
import numpy as np

# Create a small input tensor
input_shape = (2, 4, 4, 3)  # batch=2, height=4, width=4, channels=3
input_tensor = Input(shape=(4, 4, 3))

ARGS = {
    'x': input_tensor,
    'filters': 32,
    'kernel_size': (3, 3),
    'strides': 1,
    'padding': 'same',
    'activation': 'relu',
    'use_bias': False,
    'name': 'conv2d_bn_layer'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_lr Ran
ran on a synthesized input
LKLQQ/CBAM/src/get_lr.py
code served (permissive licence) · get_code("88b73ea143b80bda")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (500,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "init_lr": 0.001,
    "total_epoch": 5,
    "step_per_epoch": 100,
    "anneal_step": 250
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (500,) — shape (500,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
logsumexp_2d Ran
ran; our contract draft was wrong, not the code
Jongchan/attention-module/MODELS/cbam.py
code served (permissive licence) · get_code("7abfa32a2f1d7424")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects a 3D or higher dimensional tensor
# It accesses tensor.size(0), tensor.size(1), and flattens the rest
# Let's create a 3D tensor with shape (batch=2, dim1=3, dim2=4)
tensor = torch.randn(2, 3, 4)

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 1) — shape (2, 3, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lr_schedule Ran
ran, honoured the contract we drafted
kobiso/CBAM-keras/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from Jeongyun-Lee-0423/Classification, is pointer only (licence: NONE) · get_code("67e18e3fdd805d03")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Jeongyun-Lee-0423/Classification, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

merge Ran
ran; our contract draft was wrong, not the code
LKLQQ/CBAM/src/model_utils/config.py
code served (permissive licence) · get_code("b9e24c3e3e0e88a7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import argparse

torch.manual_seed(0)

# Create a mock args object with some attributes
args = argparse.Namespace(
    learning_rate=0.001,
    batch_size=32,
    epochs=10,
    model_name="test_model",
    debug=True,
    seed=42
)

# Create a base configuration dictionary
cfg = {
    "default_lr": 0.0001,
    "default_batch": 16,
    "dataset": "cifar10"
}

ARGS = {
    "args": args,
    "cfg": cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_arguments Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from kobiso/CBAM-tensorflow
pointer only · get_code("f891cdc1c30186df")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_cli_to_yaml Ran
ran; our contract draft was wrong, not the code
LKLQQ/CBAM/src/model_utils/config.py
code served (permissive licence) · get_code("738456e1b7388e7e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Namespace. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import ast

# Create minimal parent parser
parent_parser = argparse.ArgumentParser(add_help=False)

# Create base configuration dict with various types
cfg = {
    'learning_rate': 0.001,
    'batch_size': 32,
    'epochs': 10,
    'use_cuda': False,
    'model_name': 'resnet50',
    'dropout': 0.5,
    'debug': True,
    'nested_list': [1, 2, 3],  # This will be skipped since it's a list
    'nested_dict': {'a': 1},   # This will be skipped since it's a dict
}

# Create helper descriptions
helper = {
    'learning_rate': 'Learning rate for optimizer',
    'batch_size': 'Batch size for training',
    'epochs': 'Number of training epochs',
    'use_cuda': 'Whether to use CUDA',
    'model_name': 'Name of the model architecture',
    'dropout': 'Dropout rate',
    'debug': 'Enable debug mode',
}

# Create choices for specific parameters
choices = {
    'model_name': ['resnet50', 'vgg16', 'mobilenet'],
}

# Set config path
cfg_path = 'default_config.yaml'

ARGS = {
    'parser': parent_parser,
    'cfg': cfg,
    'helper': helper,
    'choices': choices,
    'cfg_path': cfg_path,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_yaml Ran
ran on a synthesized input
LKLQQ/CBAM/src/model_utils/config.py
code served (permissive licence) · get_code("96a9939953d5992d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os
import yaml

# Create a temporary YAML file with valid config structure
temp_dir = tempfile.mkdtemp()
yaml_path = os.path.join(temp_dir, "config.yaml")

# Write a valid YAML file with 3 documents: config, helper, and choices
yaml_content = """
model: resnet50
learning_rate: 0.001
batch_size: 32
---
model: "Model architecture to use"
learning_rate: "Learning rate for optimization"
batch_size: "Batch size for training"
---
model: [resnet50, resnet101, vgg16]
learning_rate: [0.0001, 0.001, 0.01]
batch_size: [16, 32, 64]
"""

with open(yaml_path, 'w') as f:
    f.write(yaml_content)

ARGS = {
    "yaml_path": yaml_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
preprocess_input Ran
ran on a synthesized input
kobiso/CBAM-keras/models/inception_resnet_v2.py
code served (permissive licence) · get_code("de695392eae44227")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 4, dtype family float, shape (2, 4, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small batch of dummy images
# Shape: (batch_size, height, width, channels)
# Images should have RGB values within [0, 255]
batch_size = 2
height = 4
width = 4
channels = 3

x = np.random.randint(0, 256, size=(batch_size, height, width, channels), dtype=np.uint8).astype(np.float32)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (2, 4, 4, 3) — shape (2, 4, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
preprocess_input Ran
ran on a synthesized input
kobiso/CBAM-keras/models/inception_v3.py
code served (permissive licence) · get_code("bee766c6e15044c2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function preprocess_input takes a single parameter x
# and performs in-place operations: division, subtraction, multiplication
# x should be a tensor or array that supports these operations

x = torch.randn(2, 4, dtype=torch.float32) * 255.0

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
preprocess_input Ran
ran on a synthesized input
kobiso/CBAM-keras/models/densenet.py
code served (permissive licence) · get_code("2b2390bcd64e4f4f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 4, dtype family float, shape (2, 4, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import keras.backend as K

# Set up a small batch of image data
# The function expects a 4D tensor for batch processing or 3D for single image
# Using channels_last format (height, width, channels) or channels_first (channels, height, width)
# Create a small batch: 2 images, 4x3 spatial dims, 3 channels (RGB)

# Using channels_last format (default in TensorFlow backend)
x_channels_last = np.random.rand(2, 4, 3, 3).astype(np.float32) * 255

ARGS = {
    'x': x_channels_last,
    'data_format': 'channels_last'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resnet_layer Ran
ran; our contract draft was wrong, not the code
kobiso/CBAM-keras/models/resnet_v1.py
code served (permissive licence) · get_code("7c10248ed4cd4926")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned KerasTensor. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from tensorflow import keras
from keras.layers import Input

# Create a small input tensor
# Using Keras functional API to create the input
input_tensor = Input(shape=(4, 4, 3))

ARGS = {
    'inputs': input_tensor,
    'num_filters': 16,
    'kernel_size': 3,
    'strides': 1,
    'activation': 'relu',
    'batch_normalization': True,
    'conv_first': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
attach_attention_module Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-keras/models/attention_module.py
code served (permissive licence) · get_code("99ef7bfe54c20e2c")
How it ran

no invocation recorded.

attach_attention_module Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-tensorflow-slim/nets/attention_module.py
code served (permissive licence) · get_code("7751ab2f8cae06ed")
How it ran

no invocation recorded.

cbam_block Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-keras/models/attention_module.py
code served (permissive licence) · get_code("4b28bc67bccc6824")
How it ran

no invocation recorded.

cbam_block Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-tensorflow-slim/nets/attention_module.py
code served (permissive licence) · get_code("4a744bbc28fbf323")
How it ran

no invocation recorded.

channel_attention Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-keras/models/.ipynb_checkpoints/attention_module-checkpoint.py
code served (permissive licence) · get_code("64f4bec6efc96976")
How it ran

no invocation recorded.

optimize_clones Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-tensorflow-slim/deployment/model_deploy.py
code served (permissive licence) · get_code("3fe5f08cb1872f05")
How it ran

no invocation recorded.

relu6 Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-keras/models/mobilenets.py
pointer only (licence: MIT); the stored copy get_code serves, from saghiralfasly/VFL-Vehicle-Re-Id, is pointer only (licence: NONE) · get_code("f124399d87a3224b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from saghiralfasly/VFL-Vehicle-Re-Id, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

se_block Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-keras/models/attention_module.py
code served (permissive licence) · get_code("9ae7eb77f5b70d3f")
How it ran

no invocation recorded.

se_block Not yet run
unverified (harvested, no recorded run)
kobiso/CBAM-tensorflow-slim/nets/attention_module.py
code served (permissive licence) · get_code("0a52a7e8f9cf524b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 15 are also present in other papers whose code we hold (15 with at least one paper dated earlier, 0 the same month, 10 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
merge 28 other papers
10 dated earlier, 18 later
1406.1078 (2014-06)
Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
1409.3215 (2014-09)
Sequence to Sequence Learning with Neural Networks
1512.00567 (2015-12)
Rethinking the Inception Architecture for Computer Vision
and 25 more not named here
parse_cli_to_yaml 20 other papers
8 dated earlier, 12 later
1406.1078 (2014-06)
Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
1409.3215 (2014-09)
Sequence to Sequence Learning with Neural Networks
1512.00567 (2015-12)
Rethinking the Inception Architecture for Computer Vision
and 17 more not named here
parse_yaml 15 other papers
7 dated earlier, 8 later
1406.1078 (2014-06)
Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
1409.3215 (2014-09)
Sequence to Sequence Learning with Neural Networks
1512.00567 (2015-12)
Rethinking the Inception Architecture for Computer Vision
and 12 more not named here
logsumexp_2d 13 other papers
1 dated earlier, 12 later
1806.07366 (2018-06)
Neural Ordinary Differential Equations
1810.12348 (2018-10)
Gather-Excite: Exploiting Feature Context in Convolutional Neural Networks
and 10 more not named here
lr_schedule 7 other papers
2 dated earlier, 5 later
1511.06807 (2015-11)
Adding Gradient Noise Improves Learning for Very Deep Networks
1603.05027 (2016-03)
Identity Mappings in Deep Residual Networks
1905.05040 (2019-05)
Understanding and Utilizing Deep Neural Networks Trained with Noisy Labels
and 4 more not named here
relu6 6 other papers
4 dated earlier, 2 later
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1612.03716 (2016-12)
COCO-Stuff: Thing and Stuff Classes in Context
1704.04861 (2017-04)
MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
and 3 more not named here
resnet_layer 5 other papers
1 dated earlier, 4 later
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1905.10626 (2019-05)
Rethinking Softmax Cross-Entropy Loss for Adversarial Robustness
1912.12171 (2019-12)
So2Sat LCZ42: A Benchmark Dataset for Global Local Climate Zones Classification
and 2 more not named here
optimize_clones 4 other papers
3 dated earlier, 1 later
1608.06993 (2016-08)
Densely Connected Convolutional Networks
1701.06487 (2017-01)
Dirty Pixels: Towards End-to-End Image Processing and Perception
1804.10745 (2018-04)
Generalizing Across Domains via Cross-Gradient Training
and 1 more not named here
preprocess_input 3 other papers
2 dated earlier, 1 later
1503.02531 (2015-03)
Distilling the Knowledge in a Neural Network
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1912.07160 (2019-12)
DAmageNet: A Universal Adversarial Dataset
conv2d_bn 2 other papers
1 dated earlier, 1 later
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1912.07160 (2019-12)
DAmageNet: A Universal Adversarial Dataset
parse_arguments 2 other papers
2 dated earlier
1602.07261 (2016-02)
Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning
1709.01507 (2017-09)
Squeeze-and-Excitation Networks
attach_attention_module 1 other paper
1 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
cbam_block 1 other paper
1 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
preprocess_input 1 other paper
1 dated earlier
1806.03287 (2018-06)
Slalom: Fast, Verifiable and Private Execution of Neural Networks in Trusted Hardware
preprocess_input 1 other paper
1 dated earlier
1608.06993 (2016-08)
Densely Connected Convolutional Networks

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

More are linked than shown here.

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We propose Convolutional Block Attention Module (CBAM), a simple yet effective attention module for feed-forward convolutional neural networks. Given an intermediate feature map, our module sequentially infers attention maps along two separate dimensions, channel and spatial, then the attention maps are multiplied to the input feature map for adaptive feature refinement. Because CBAM is a lightweight and general module, it can be integrated into any CNN architectures seamlessly with negligible overheads and is end-to-end trainable along with base CNNs. We validate our CBAM through extensive experiments on ImageNet-1K, MS~COCO detection, and VOC~2007 detection datasets. Our experiments show consistent improvements in classification and detection performances with various models, demonstrating the wide applicability of CBAM. The code and models will be publicly available.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1807.06521")
get_code_for_paper("1807.06521")
have("1807.06521")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1807.06521.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1807.06521.svg)](https://syntology.ai/paper/1807.06521)

Connect an agent — have() is free.