Papers › Towards Highly Realistic Artistic Style Transfer via Stable Diffusion with Step-aware...

Towards Highly Realistic Artistic Style Transfer via Stable Diffusion with Step-aware and Layer-aware Prompt

17 Apr 2024arXiv:2404.11474archive 2025-07-28

Zhanjie Zhang, Quanwei Zhang, Huaizhong Lin, Wei Xing, Juncheng Mo, Shuaicheng Huang, Jinheng Xie, Guangyuan Li, Junsheng Luan, Lei Zhao, Dalong Zhang, Lixia Chen

Artistic style transfer aims to transfer the learned artistic style onto an arbitrary content image, generating artistic stylized images. Existing generative adversarial network-based methods fail to generate highly realistic stylized images and always introduce obvious artifacts and disharmonious patterns. Recently, large-scale pre-trained diffusion models opened up a new way for generating highly realistic artistic stylized images. However, diffusion model-based methods generally fail to preserve the content structure of input content images well, introducing some undesired content structure and style patterns. To address the above problems, we propose a novel pre-trained diffusion-based artistic style transfer method, called LSAST, which can generate highly realistic artistic stylized images while preserving the content structure of input content images well, without bringing obvious artifacts and disharmonious style patterns. Specifically, we introduce a Step-aware and Layer-aware Prompt Space, a set of learnable prompts, which can learn the style information from the collection of artworks and dynamically adjusts the input images' content structure and style pattern. To train our prompt space, we propose a novel inversion method, called Step-ware and Layer-aware Prompt Inversion, which allows the prompt space to learn the style information of the artworks collection. In addition, we inject a pre-trained conditional branch of ControlNet into our LSAST, which further improved our framework's ability to maintain content structure. Extensive experiments demonstrate that our proposed method can generate more highly realistic artistic stylized images than the state-of-the-art artistic style transfer methods.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2404.11474")

Code

Syntology Ran 9 of 20 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 20 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jamie-cheung/lsast officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 9 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
5ran
11unverified

Licence: 0 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Jamie-Cheung/LSAST. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

CheckpointFunction Jamie-Cheung/LSAST/cldm/cldm.py official repository ran Apache-2.0 (permissive) · 69360f5b0cc8f069 · report
CrossAttention Jamie-Cheung/LSAST/cldm/cldm.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · edd0dbdde64951f7 · report
MemoryEfficientCrossAttention Jamie-Cheung/LSAST/cldm/cldm.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 713884729e861c62 · report
Normalize jamie-cheung/lsast/cldm/sanet.py official repository ran · our draft was wrong Apache-2.0 (permissive) · c3a6b977022957cb · report
adaptive_instance_normalization jamie-cheung/lsast/cldm/cldm.py official repository ran fingerprinted Apache-2.0 (permissive) · a0ab4de8a03b69b0 · report
basic_clean jamie-cheung/lsast/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 98f385d847636a3e · report
calc_mean_std jamie-cheung/lsast/cldm/cldm.py official repository ran fingerprinted Apache-2.0 (permissive) · 6576c5264bea5331 · report
get_pairs jamie-cheung/lsast/clip/simple_tokenizer.py official repository ran · our draft was wrong Apache-2.0 (permissive) · d919ae32e5e4e616 · report
whitespace_clean jamie-cheung/lsast/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 9542161e9640b858 · report
AttentionBlock Jamie-Cheung/LSAST/cldm/cldm.py official repository unverified Apache-2.0 (permissive) · b6dff222c0e9edfe · report
BasicTransformerBlock Jamie-Cheung/LSAST/cldm/cldm.py official repository unverified Apache-2.0 (permissive) · cd763b5f891b0938 · report
ControlNet_style Jamie-Cheung/LSAST/cldm/cldm.py official repository unverified Apache-2.0 (permissive) · 60d938a3fe7521c0 · report
ResBlock Jamie-Cheung/LSAST/cldm/cldm.py official repository unverified Apache-2.0 (permissive) · 66e12c88bac640da · report
SpatialTransformer Jamie-Cheung/LSAST/cldm/cldm.py official repository unverified Apache-2.0 (permissive) · 406611ffc8d44703 · report
TimestepEmbedSequential Jamie-Cheung/LSAST/cldm/cldm.py official repository unverified Apache-2.0 (permissive) · 1c67e34b46237f50 · report
build_model jamie-cheung/lsast/clip/model.py official repository unverified Apache-2.0 (permissive) · 39e6b23b55f376ea · report
checkpoint Jamie-Cheung/LSAST/cldm/cldm.py official repository unverified Apache-2.0 (permissive) · 21f94f83ceb82390 · report
get_state_dict jamie-cheung/lsast/cldm/model.py official repository unverified Apache-2.0 (permissive) · cfc17707f35e7ec4 · report
load jamie-cheung/lsast/clip/clip.py official repository unverified Apache-2.0 (permissive) · f6f30e41636ae569 · report
load_state_dict jamie-cheung/lsast/cldm/model.py official repository unverified Apache-2.0 (permissive) · df733a879693145d · report

Tasks

Style Transfer

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DiffusionSET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections