SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Zhang_MRFS_Mutually_Reinforcing_Image_Fusion_and_Segmentation_CVPR_2024_paper · CVPR · 2024

MRFS: Mutually Reinforcing Image Fusion and Segmentation

Hao Zhang, Jie Jiang, Jiayi Ma, Chunchao Guo, Xuhui Zuo

Code that ran

5 of 6 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; 0 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/Zhang_MRFS_Mutually_Reinforcing_Image_Fusion_and_Segmentation_CVPR_2024_paper.json · badge: /api/ran/Zhang_MRFS_Mutually_Reinforcing_Image_Fusion_and_Segmentation_CVPR_2024_paper.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
HaoZhang1018/MRFS canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
Sobelxy Ran
ran on a synthesized input
HaoZhang1018/MRFS/FMB/utils/loss_utils.py
code served (permissive licence) · get_code("8e6d808435f9047f")
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 5, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function Sobelxy takes a tensor x as input
# It performs 2D convolution operations on x
# x should be a 4D tensor (batch, channels, height, width)

# Create a small input tensor: batch=2, channels=1, height=4, width=3
x = torch.randn(2, 1, 4, 3)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 5, 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
YCrCb2RGB Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HaoZhang1018/MRFS/FMB/utils/loss_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from jinyuanliu-cv/segmif, is pointer only (licence: NONE) · get_code("145edd13c3925a58")
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 jinyuanliu-cv/segmif, 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.

group_weight Ran
ran on a synthesized input
HaoZhang1018/MRFS/FMB/models/model.py
code served (permissive licence) · get_code("d987d9310d8b8b24")
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 list, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple module with Linear, Conv2d, and BatchNorm layers
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
        self.conv = nn.Conv2d(3, 2, kernel_size=3)
        self.bn = nn.BatchNorm2d(2)
        self.gn = nn.GroupNorm(2, 2)
        self.ln = nn.LayerNorm(4)
    
    def forward(self, x):
        return x

module = SimpleModel()

# Create weight_group list
weight_group = []

# Define norm_layer - using LayerNorm as the custom norm_layer
norm_layer = nn.LayerNorm

# Define learning rate
lr = 0.001

ARGS = {
    "weight_group": weight_group,
    "module": module,
    "norm_layer": norm_layer,
    "lr": lr
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
random_mirror Ran
ran, violated the contract we drafted
HaoZhang1018/MRFS/MFNet/dataloader/dataloader.py
code served (permissive licence) · get_code("83ca13ec3eefbcd1")
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 4, dtype family int; 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 cv2
import random
import numpy as np

# Set random seed for reproducibility
random.seed(0)

# Create small test images as numpy arrays
# Using distinct dimensions to make shapes unambiguous: (height=4, width=3, channels=3)
rgb = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
gt = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
modal_x = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)

ARGS = {
    'rgb': rgb,
    'gt': gt,
    'modal_x': modal_x,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family int — 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
random_scale Ran
ran; our contract draft was wrong, not the code
HaoZhang1018/MRFS/MFNet/dataloader/dataloader.py
code served (permissive licence) · get_code("3e2c98e28bc11bd4")
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. 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 cv2
import random
import numpy as np

random.seed(0)

# Create sample image arrays with distinct dimensions
# rgb: 3-channel image (height=100, width=80)
rgb = np.random.randint(0, 256, (100, 80, 3), dtype=np.uint8)

# gt: 1-channel ground truth (height=100, width=80)
gt = np.random.randint(0, 10, (100, 80), dtype=np.uint8)

# modal_x: 3-channel modal image (height=100, width=80)
modal_x = np.random.randint(0, 256, (100, 80, 3), dtype=np.uint8)

# scales: list of scale factors to randomly choose from
scales = [0.5, 0.75, 1.0, 1.25]

ARGS = {
    "rgb": rgb,
    "gt": gt,
    "modal_x": modal_x,
    "scales": scales
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
RGB2YCrCb Not yet run
unverified (harvested, no recorded run)
HaoZhang1018/MRFS/FMB/utils/loss_utils.py
code served (permissive licence) · get_code("6f115be280a9af67")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 3 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
YCrCb2RGB 2 other papers
2 dated earlier
2308.02097 (2023-08)
Multi-interactive Feature Learning and a Full-time Multi-modality Benchmark for Image Fusion and Segmentation
2308.03979 (2023-08)
PAIF: Perception-Aware Infrared-Visible Image Fusion for Attack-Tolerant Semantic Segmentation
random_mirror 2 other papers
1 dated earlier, 1 same year, order not determinable
2203.04838 (2022-03)
CMX: Cross-Modal Fusion for RGB-X Semantic Segmentation with Transformers
2404.04256 (2024-04)
Sigma: Siamese Mamba Network for Multi-Modal Semantic Segmentation
random_scale 2 other papers
1 dated earlier, 1 same year, order not determinable
2203.04838 (2022-03)
CMX: Cross-Modal Fusion for RGB-X Semantic Segmentation with Transformers
2404.04256 (2024-04)
Sigma: Siamese Mamba Network for Multi-Modal Semantic Segmentation

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-24.

Repositories linked to this paper

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

Abstract

This paper proposes a coupled learning framework to break the performance bottleneck of infrared-visible image fusion and segmentation, called MRFS. By leveraging the intrinsic consistency between vision and semantics, it emphasizes mutual reinforcement rather than treating these tasks as separate issues. First, we embed weakened information recovery and salient information integration into the image fusion task, employing the CNN-based interactive gated mixed attention (IGM-Att) module to extract highquality visual features. This aims to satisfy human visual perception, producing fused images with rich textures, high contrast, and vivid colors. Second, a transformer-based progressive cycle attention (PC-Att) module is developed to enhance semantic segmentation. It establishes single-modal self-reinforcement and cross-modal mutual complementarity, enabling more accurate decisions in machine semantic perception. Then, the cascade of IGM-Att and PC-Att couples image fusion and semantic segmentation tasks, implicitly bringing vision-related and semantics-related features into closer alignment. Therefore, they mutually provide learning priors to each other, resulting in visually satisfying fused images and more accurate segmentation decisions. Extensive experiments on public datasets showcase the advantages of our method in terms of visual satisfaction and decision accuracy. The code is publicly available at https://github.com/HaoZhang1018/MRFS.

For agents

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

get_harvested_code_for_paper("Zhang_MRFS_Mutually_Reinforcing_Image_Fusion_and_Segmentation_CVPR_2024_paper")
get_code_for_paper("Zhang_MRFS_Mutually_Reinforcing_Image_Fusion_and_Segmentation_CVPR_2024_paper")
have("Zhang_MRFS_Mutually_Reinforcing_Image_Fusion_and_Segmentation_CVPR_2024_paper")

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

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

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

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

Connect an agent — have() is free.