SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.06070 · 2024

ControlNeXt: Powerful and Efficient Control for Image and Video Generation

arXiv · PDF · Open in the Atlas

Code that ran

4 of 9 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, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 5 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/2408.06070.json · badge: /api/ran/2408.06070.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
dvlab-research/controlnext canonical (classifier label)
classifier basis: census
4 ran · 5 no recorded run
FunctionStatusWhere it lives
image_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dvlab-research/controlnext/ControlNeXt-SD1.5-Training/train_controlnext.py
code served (permissive licence) · get_code("bd5a05ce886da4ce")
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 Image. 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.

from PIL import Image

# Create small test images with distinct dimensions
img1 = Image.new('RGB', size=(64, 48), color=(255, 0, 0))
img2 = Image.new('RGB', size=(64, 48), color=(0, 255, 0))
img3 = Image.new('RGB', size=(64, 48), color=(0, 0, 255))
img4 = Image.new('RGB', size=(64, 48), color=(255, 255, 0))

ARGS = {
    'imgs': [img1, img2, img3, img4],
    'rows': 2,
    'cols': 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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_args Ran
ran; our contract draft was wrong, not the code
dvlab-research/controlnext/ControlNeXt-SD1.5-Training/run_controlnext.py
code served (permissive licence) · get_code("52241d52a6acda50")
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

ARGS = {
    'input_args': [
        '--pretrained_model_name_or_path', 'runwayml/stable-diffusion-v1-5',
        '--controlnet_model_name_or_path', 'lllyasviel/sd-controlnet-canny',
        '--unet_model_name_or_path', 'runwayml/stable-diffusion-v1-5',
        '--lora_path', '/path/to/lora.safetensors',
        '--revision', 'main',
        '--controlnext_scale', '0.75',
        '--variant', 'fp32',
        '--output_dir', '/tmp/controlnext-output',
        '--seed', '42',
        '--resolution', '512',
        '--enable_xformers_memory_efficient_attention',
        '--validation_prompt', 'a dog', 'a cat',
        '--negative_prompt', 'ugly', 'blurry',
        '--validation_image', '/path/to/image1.jpg', '/path/to/image2.jpg',
        '--num_validation_images', '4',
        '--save_load_weights_increaments',
    ]
}
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
retrieve_timesteps Ran
ran; our contract draft was wrong, not the code
dvlab-research/controlnext/ControlNeXt-SD1.5/models/pipeline_controlnext.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from I2-Multimedia-Lab/Magnet, is pointer only (licence: NONE) · get_code("35717b791550ecb2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from I2-Multimedia-Lab/Magnet, 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.

zero_module Ran
ran; our contract draft was wrong, not the code
dvlab-research/controlnext/ControlNeXt-SDXL-Training/models/controlnet.py
code served (permissive licence) · get_code("da94debb8019ad46")
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 SimpleModule. 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
from torch import nn

torch.manual_seed(0)

# Create a simple neural network module with some parameters
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Instantiate the module
module = SimpleModule()

# Define the ARGS dictionary
ARGS = {
    "module": module
}
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 SimpleModule — a SimpleModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModule 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
import_model_class_from_model_name_or_path Not yet run
unverified (harvested, no recorded run)
dvlab-research/controlnext/ControlNeXt-SD1.5-Training/train_controlnext.py
code served (permissive licence) · get_code("2f00b39db5a81466")
How it ran

no invocation recorded.

import_model_class_from_model_name_or_path Not yet run
unverified (harvested, no recorded run)
dvlab-research/controlnext/ControlNeXt-SDXL-Training/train_controlnext.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kwongihyun/tweediemix, is pointer only (licence: NONE) · get_code("86965b6bae051ea4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kwongihyun/tweediemix, 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.

import_model_class_from_model_name_or_path Not yet run
unverified (harvested, no recorded run)
dvlab-research/controlnext/ControlNeXt-SD1.5-Training/run_controlnext.py
code served (permissive licence) · get_code("1f631e56c6e042ac")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
dvlab-research/controlnext/ControlNeXt-SD1.5/run_controlnext.py
code served (permissive licence) · get_code("7f70a12d225a722c")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
dvlab-research/controlnext/ControlNeXt-SDXL-Training/train_controlnext.py
code served (permissive licence) · get_code("5473c01d472f643e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 5 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
zero_module 40 other papers
23 dated earlier, 1 the same month, 14 later, 2 same year, order not determinable
2305.13077 (2023-05)
ControlVideo: Training-free Controllable Text-to-Video Generation
2305.17098 (2023-05)
ControlVideo: Conditional Control for One-shot Text-driven Video Editing and Beyond
2308.03448 (2023-08)
Make Explicit Calibration Implicit: Calibrate Denoiser Instead of the Noise Model
and 37 more not named here
import_model_class_from_model_name_or_path 24 other papers
15 dated earlier, 1 the same month, 7 later, 1 same year, order not determinable
2212.04489 (2022-12)
SINE: SINgle Image Editing with Text-to-Image Diffusion Models
2306.06874 (2023-06)
VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models
2306.07280 (2023-06)
Controlling Text-to-Image Diffusion by Orthogonal Finetuning
and 21 more not named here
retrieve_timesteps 21 other papers
8 dated earlier, 2 the same month, 11 later
2310.06313 (2023-10)
Advancing Pose-Guided Image Synthesis with Progressive Conditional Diffusion Models
2401.11708 (2024-01)
Mastering Text-to-Image Diffusion: Recaptioning, Planning, and Generating with Multimodal LLMs
2403.06976 (2024-03)
BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion
and 18 more not named here
image_grid 17 other papers
10 dated earlier, 6 later, 1 same year, order not determinable
2201.08896 (2022-01)
Environment Generation for Zero-Shot Compositional Reinforcement Learning
2303.09522 (2023-03)
P+: Extended Textual Conditioning in Text-to-Image Generation
2311.16518 (2023-11)
SeeSR: Towards Semantics-Aware Real-World Image Super-Resolution
and 14 more not named here
import_model_class_from_model_name_or_path 7 other papers
6 dated earlier, 1 later
2403.14572 (2024-03)
Implicit Style-Content Separation using B-LoRA
2405.13637 (2024-05)
Curriculum Direct Preference Optimization for Diffusion and Consistency Models
2406.11909 (2024-06)
Mixture-of-Subspaces in Low-Rank Adaptation
and 4 more not named here
import_model_class_from_model_name_or_path 3 other papers
2 dated earlier, 1 same year, order not determinable
01705 (2024 (year only))
Pixel-Aware Stable Diffusion for Realistic Image Super-Resolution and Personalized Stylization
2402.11929 (2024-02)
DiLightNet: Fine-grained Lighting Control for Diffusion-based Image Generation
2407.04842 (2024-07)
MJ-Bench: Is Your Multimodal Reward Model Really a Good Judge for Text-to-Image Generation?

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

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

Abstract

Diffusion models have demonstrated remarkable and robust abilities in both image and video generation. To achieve greater control over generated results, researchers introduce additional architectures, such as ControlNet, Adapters and ReferenceNet, to integrate conditioning controls. However, current controllable generation methods often require substantial additional computational resources, especially for video generation, and face challenges in training or exhibit weak control. In this paper, we propose ControlNeXt: a powerful and efficient method for controllable image and video generation. We first design a more straightforward and efficient architecture, replacing heavy additional branches with minimal additional cost compared to the base model. Such a concise structure also allows our method to seamlessly integrate with other LoRA weights, enabling style alteration without the need for additional training. As for training, we reduce up to 90% of learnable parameters compared to the alternatives. Furthermore, we propose another method called Cross Normalization (CN) as a replacement for Zero-Convolution' to achieve fast and stable training convergence. We have conducted various experiments with different base models across images and videos, demonstrating the robustness of our method.

For agents

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

get_harvested_code_for_paper("2408.06070")
get_code_for_paper("2408.06070")
have("2408.06070")

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

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

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

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

Connect an agent — have() is free.