SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.06442 · 2024

RotationDrag: Point-based Image Editing with Rotated Diffusion Features

arXiv · PDF · Open in the Atlas

Code that ran

11 of 16 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 1 has no contract verdict; 9 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/2401.06442.json · badge: /api/ran/2401.06442.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
tony-lowe/rotationdrag canonical (classifier label)
classifier basis: census
11 ran · 5 no recorded run
FunctionStatusWhere it lives
check_handle_reach_target Ran
ran; our contract draft was wrong, not the code
tony-lowe/rotationdrag/utils/drag_utils.py
code served (permissive licence) · get_code("a43f655fb03112d9")
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 0, dtype family float, shape () 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 two iterables of points that can be subtracted and have a .norm() method
# These should be tensors or objects that support these operations
# We'll create two lists of small tensors to represent handle points and target points

handle_points = [
    torch.tensor([1.0, 2.0, 3.0, 4.0]),
    torch.tensor([5.0, 6.0, 7.0, 8.0])
]

target_points = [
    torch.tensor([1.5, 2.5, 3.5, 4.5]),
    torch.tensor([5.5, 6.5, 7.5, 8.5])
]

ARGS = {
    "handle_points": handle_points,
    "target_points": target_points
}
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 Tensor, ndim 0, dtype family float, shape () — shape () 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
collate_fn Ran
ran; our contract draft was wrong, not the code
tony-lowe/rotationdrag/lora/train_dreambooth_lora.py
code served (permissive licence) · get_code("256040ccde7473f2")
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

torch.manual_seed(0)

# Create example data structures that match what collate_fn expects
example_with_mask = {
    'instance_prompt_ids': torch.randint(0, 100, (5,)),
    'instance_images': torch.randn(3, 4, 4),
    'instance_attention_mask': torch.ones(5),
    'class_prompt_ids': torch.randint(0, 100, (5,)),
    'class_images': torch.randn(3, 4, 4),
    'class_attention_mask': torch.ones(5),
}

example_without_mask = {
    'instance_prompt_ids': torch.randint(0, 100, (5,)),
    'instance_images': torch.randn(3, 4, 4),
    'class_prompt_ids': torch.randint(0, 100, (5,)),
    'class_images': torch.randn(3, 4, 4),
}

# Test case 1: with prior preservation and attention masks
examples_with_prior = [example_with_mask, example_with_mask]

# Test case 2: without prior preservation, with attention masks
examples_no_prior = [example_with_mask, example_with_mask]

# Test case 3: without attention masks
examples_no_mask = [example_without_mask, example_without_mask]

ARGS = {
    'examples': examples_with_prior,
    'with_prior_preservation': True,
}
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
draw_handle_target_points Ran
ran on a synthesized input
tony-lowe/rotationdrag/utils/draw_utils.py
code served (permissive licence) · get_code("f664a0d07512900e")
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 3, 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 PIL
import numpy as np

# Create a small test image
img = PIL.Image.new('RGB', (100, 100), color='white')

# Create handle points (list of [x, y] coordinates)
handle_points = [[20, 30], [50, 60]]

# Create target points (list of [x, y] coordinates)
# One less than handle_points to test the None case
target_points = [[40, 50]]

# Define ARGS dictionary with all parameters
ARGS = {
    'img': img,
    'handle_points': handle_points,
    'target_points': target_points,
    'radius': 5,
    'color': 'red'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int — no output shape is stated: observe_signature.py could not observe it (import:AttributeError)
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
encode_prompt Ran
ran; our contract draft was wrong, not the code
tony-lowe/rotationdrag/utils/lora_utils.py
code served (permissive licence) · get_code("328d82b219eefea6")
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 3, dtype family float, shape (2, 4, 8) 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 torch.nn as nn

torch.manual_seed(0)

class StandInTextEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.device = torch.device('cpu')
        self.linear = nn.Linear(4, 8)
    
    def forward(self, input_ids, attention_mask=None):
        # Return a tuple where first element is the embeddings
        batch_size = input_ids.shape[0]
        embeddings = torch.randn(batch_size, 4, 8)
        return (embeddings,)

text_encoder = StandInTextEncoder()

input_ids = torch.randint(0, 100, (2, 4))

attention_mask = torch.ones((2, 4), dtype=torch.long)

text_encoder_use_attention_mask = False

ARGS = {
    "text_encoder": text_encoder,
    "input_ids": input_ids,
    "attention_mask": attention_mask,
    "text_encoder_use_attention_mask": text_encoder_use_attention_mask,
}
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 Tensor, ndim 3, dtype family float, shape (2, 4, 8) — shape (2, 4, 8) 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
get_ellipse_coords Ran
ran, violated the contract we drafted
tony-lowe/rotationdrag/utils/draw_utils.py
code served (permissive licence) · get_code("7b59e9e0ffa6f7ce")
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 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 torch
import numpy as np

# Construct valid arguments for get_ellipse_coords
point = (10, 20)
radius = 5

ARGS = {
    "point": point,
    "radius": radius,
}
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 tuple, ndim 1, 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
get_logger Ran
ran; our contract draft was wrong, not the code
tony-lowe/rotationdrag/utils/logger.py
code served (permissive licence) · get_code("0e22527aef7473f7")
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 Logger. 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 sys
import os
import tempfile
from loguru import logger

# Create a temporary directory for the log file
temp_dir = tempfile.gettempdir()
output_file = os.path.join(temp_dir, 'test_logger.log')

ARGS = {
    'output_file': output_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
loguru — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
mask_image Ran
ran; our contract draft was wrong, not the code
tony-lowe/rotationdrag/utils/ui_utils.py
code served (permissive licence) · get_code("65d6e08df667d6d6")
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 3, dtype family int, shape (4, 6, 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 cv2
import numpy as np
from copy import deepcopy

# Create a small test image (H=4, W=6, 3 channels for RGB)
image = np.random.randint(0, 256, (4, 6, 3), dtype=np.uint8)

# Create a corresponding mask (H=4, W=6)
mask = np.zeros((4, 6), dtype=np.uint8)
mask[1:3, 2:5] = 1  # Set some pixels to 1 for masking

# Define color as RGB
color = [255, 0, 0]  # Red

# Define transparency
alpha = 0.5

ARGS = {
    "image": image,
    "mask": mask,
    "color": color,
    "alpha": alpha
}
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 ndarray, ndim 3, dtype family int, shape (4, 6, 3) — shape (4, 6, 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
override_attn_proc_forward Ran
ran; our contract draft was wrong, not the code
tony-lowe/rotationdrag/utils/attn_utils.py
code served (permissive licence) · get_code("29b075b0e49486d7")
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 function. 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 torch.nn as nn
from einops import rearrange

torch.manual_seed(0)

# Create a minimal attention module that has all the attributes/methods used in the function
class MinimalAttention(nn.Module):
    def __init__(self, dim=16, heads=2, dim_head=8):
        super().__init__()
        self.heads = heads
        self.scale = (dim_head) ** -0.5
        
        self.to_q = nn.Linear(dim, heads * dim_head)
        self.to_k = nn.Linear(dim, heads * dim_head)
        self.to_v = nn.Linear(dim, heads * dim_head)
        
        # to_out can be either a ModuleList or a single module
        self.to_out = nn.Linear(heads * dim_head, dim)
    
class MinimalEditor:
    """Mock editor that processes q, k, v and returns output"""
    def __call__(self, q, k, v, is_cross, place_in_unet, heads, scale):
        # q, k, v shape: (batch, heads, seq_len, dim_head)
        # Return shape should be (batch, seq_len, heads * dim_head)
        batch, h, n, d = q.shape
        # Simple mock: just average the attention output
        out = torch.mean(v, dim=1)  # (batch, seq_len, dim_head)
        out = rearrange(out, 'b n d -> b n (1 d)')  # reshape to match expected output
        return out

# Create instances
attn = MinimalAttention(dim=16, heads=2, dim_head=8)
editor = MinimalEditor()
place_in_unet = "mid_block"

ARGS = {
    "attn": attn,
    "editor": editor,
    "place_in_unet": place_in_unet,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
override_lora_attn_proc_forward Ran
ran; our contract draft was wrong, not the code
tony-lowe/rotationdrag/utils/attn_utils.py
code served (permissive licence) · get_code("28efa6bc6ced8fc1")
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 function. 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 torch.nn as nn
from einops import rearrange

torch.manual_seed(0)

# Build a minimal attention module that satisfies the function's usage
class LoRALinear(nn.Module):
    def __init__(self, in_dim, out_dim):
        super().__init__()
        self.linear = nn.Linear(in_dim, out_dim)
    
    def forward(self, x):
        return self.linear(x)

class MinimalAttention(nn.Module):
    def __init__(self, dim=4, heads=2):
        super().__init__()
        self.heads = heads
        self.scale = 1.0 / (dim // heads) ** 0.5
        self.rescale_output_factor = 1.0
        self.residual_connection = True
        self.group_norm = None
        self.norm_cross = False
        
        self.to_q = nn.Linear(dim, dim)
        self.to_k = nn.Linear(dim, dim)
        self.to_v = nn.Linear(dim, dim)
        self.to_out = nn.Sequential(
            nn.Linear(dim, dim),
            nn.Identity()
        )
        
        # LoRA processor with to_q_lora, to_k_lora, to_v_lora, to_out_lora
        self.processor = nn.Module()
        self.processor.to_q_lora = nn.Linear(dim, dim)
        self.processor.to_k_lora = nn.Linear(dim, dim)
        self.processor.to_v_lora = nn.Linear(dim, dim)
        self.processor.to_out_lora = nn.Linear(dim, dim)
    
    def prepare_attention_mask(self, attention_mask, sequence_length, batch_size):
        # Return a dummy mask with appropriate shape
        return torch.ones(batch_size, 1, sequence_length, sequence_length)

# Create a minimal attention instance
attn = MinimalAttention(dim=4, heads=2)

# Create a minimal editor function
def editor(query, key, value, is_cross, place_in_unet, heads, scale):
    # query, key, value shape: (batch, heads, seq_len, head_dim)
    # Return attention output of same shape as query
    batch_size, num_heads, seq_len, head_dim = query.shape
    # Simple scaled dot-product attention
    scores = torch.matmul(query, key.transpose(-2, -1)) * scale
    attn_weights = torch.softmax(scores, dim=-1)
    hidden_states = torch.matmul(attn_weights, value)
    # Rearrange back to (batch, seq_len, dim)
    hidden_states = rearrange(hidden_states, 'b h n d -> b n (h d)')
    return hidden_states

# Editor parameter
editor = editor

# Place in unet parameter
place_in_unet = "mid"

ARGS = {
    "attn": attn,
    "editor": editor,
    "place_in_unet": place_in_unet,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
point_tracking Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tony-lowe/rotationdrag/utils/drag_utils.py
code served (permissive licence) · get_code("b91fcf9c5ec9eeca")
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 2, 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 mock feature maps F0 and F1
# Shape: (batch, channels, height, width)
# Using distinct sizes: batch=2, channels=4, height=8, width=6
batch_size = 2
channels = 4
height = 8
width = 6

F0 = torch.randn(batch_size, channels, height, width)
F1 = torch.randn(batch_size, channels, height, width)

# Create handle_points and handle_points_init
# These should be lists of coordinate pairs [y, x] or [x, y]
# Based on the code using int(p_i[0]) as row and int(p_i[1]) as col
handle_points_init = [
    torch.tensor([2.0, 2.0]),
    torch.tensor([4.0, 3.0])
]

handle_points = [
    torch.tensor([2.5, 2.5]),
    torch.tensor([4.5, 3.5])
]

# Create args object with required attributes
class Args:
    def __init__(self):
        self.r_p = 2  # search radius for point tracking

args = Args()

ARGS = {
    "F0": F0,
    "F1": F1,
    "handle_points": handle_points,
    "handle_points_init": handle_points_init,
    "args": args
}
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 2, 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
tokenize_prompt Ran
ran; our contract draft was wrong, not the code
tony-lowe/rotationdrag/utils/lora_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from 120l020904/ace, is pointer only (licence: NONE) · get_code("a67a2074238bd9ef")
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 120l020904/ace, 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.

import_model_class_from_model_name_or_path Not yet run
unverified (harvested, no recorded run)
tony-lowe/rotationdrag/lora/train_dreambooth_lora.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from KU-VGI/APDM, is pointer only (licence: NONE) · get_code("0eb3e94e8635150e")
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 KU-VGI/APDM, 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.

interpolate_feature_patch Not yet run
unverified (harvested, no recorded run)
tony-lowe/rotationdrag/utils/drag_utils.py
code served (permissive licence) · get_code("cb75d9fa987cb3f7")
How it ran

no invocation recorded.

override_forward Not yet run
unverified (harvested, no recorded run)
tony-lowe/rotationdrag/drag_pipeline.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lpengyang/freedrag, is pointer only (licence: NONE) · get_code("1dab5bb87fc4c7bb")
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 lpengyang/freedrag, 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.

parse_args Not yet run
unverified (harvested, no recorded run)
tony-lowe/rotationdrag/lora/train_dreambooth_lora.py
code served (permissive licence) · get_code("ce6abf8518e8fd67")
How it ran

no invocation recorded.

register_attention_editor_diffusers Not yet run
unverified (harvested, no recorded run)
tony-lowe/rotationdrag/utils/attn_utils.py
code served (permissive licence) · get_code("ebb9acbb0881cad0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 12 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 11 later) and 4 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
import_model_class_from_model_name_or_path 13 other papers
4 dated earlier, 9 later
2305.19327 (2023-05)
Cones 2: Customizable Image Synthesis with Multiple Subjects
2307.06949 (2023-07)
HyperDreamBooth: HyperNetworks for Fast Personalization of Text-to-Image Models
2311.18815 (2023-11)
IMMA: Immunizing text-to-image Models against Malicious Adaptation
and 10 more not named here
tokenize_prompt 6 other papers
6 later
2403.06741 (2024-03)
Distribution-Aware Data Expansion with Diffusion Models
2406.07487 (2024-06)
GLAD: Towards Better Reconstruction with Global and Local Adaptive Diffusion Models for Unsupervised Anomaly Detection
2407.10910 (2024-07)
DataDream: Few-shot Guided Dataset Generation
and 3 more not named here
collate_fn 5 other papers
3 dated earlier, 2 later
2306.14435 (2023-06)
DragDiffusion: Harnessing Diffusion Models for Interactive Point-based Image Editing
2311.18815 (2023-11)
IMMA: Immunizing text-to-image Models against Malicious Adaptation
2312.00084 (2023-12)
Can Protective Perturbation Safeguard Personal Data from Being Exploited by Stable Diffusion?
and 2 more not named here
mask_image 3 other papers
3 later
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
2407.17843 (2024-07)
DragText: Rethinking Text Embedding in Point-based Image Editing
2602.12393 (2026-02)
Reproducing DragDiffusion: Interactive Point-Based Editing with Diffusion Models
check_handle_reach_target 2 other papers
2 later
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
2405.15769 (2024-05)
FastDrag: Manipulate Anything in One Step
interpolate_feature_patch 2 other papers
1 dated earlier, 1 later
2312.02216 (2023-12)
DragVideo: Interactive Drag-style Video Editing
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
override_attn_proc_forward 2 other papers
1 dated earlier, 1 later
2312.02216 (2023-12)
DragVideo: Interactive Drag-style Video Editing
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
override_forward 2 other papers
1 dated earlier, 1 later
2307.04684 (2023-07)
FreeDrag: Feature Dragging for Reliable Point-based Image Editing
2407.17843 (2024-07)
DragText: Rethinking Text Embedding in Point-based Image Editing
parse_args 2 other papers
1 dated earlier, 1 later
2306.14435 (2023-06)
DragDiffusion: Harnessing Diffusion Models for Interactive Point-based Image Editing
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
get_logger 1 other paper
1 dated earlier
2311.17034 (2023-11)
Telling Left from Right: Identifying Geometry-Aware Semantic Correspondence
override_lora_attn_proc_forward 1 other paper
1 later
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
register_attention_editor_diffusers 1 other paper
1 later
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation

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

A precise and user-friendly manipulation of image content while preserving image fidelity has always been crucial to the field of image editing. Thanks to the power of generative models, recent point-based image editing methods allow users to interactively change the image content with high generalizability by clicking several control points. But the above mentioned editing process is usually based on the assumption that features stay constant in the motion supervision step from initial to target points. In this work, we conduct a comprehensive investigation in the feature space of diffusion models, and find that features change acutely under in-plane rotation. Based on this, we propose a novel approach named RotationDrag, which significantly improves point-based image editing performance when users intend to in-plane rotate the image content. Our method tracks handle points more precisely by utilizing the feature map of the rotated images, thus ensuring precise optimization and high image fidelity. Furthermore, we build a in-plane rotation focused benchmark called RotateBench, the first benchmark to evaluate the performance of point-based image editing method under in-plane rotation scenario on both real images and generated images. A thorough user study demonstrates the superior capability in accomplishing in-plane rotation that users intend to achieve, comparing the DragDiffusion baseline and other existing diffusion-based methods. See the project page https://github.com/Tony-Lowe/RotationDrag for code and experiment results.

For agents

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

get_harvested_code_for_paper("2401.06442")
get_code_for_paper("2401.06442")
have("2401.06442")

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

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

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

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

Connect an agent — have() is free.