Sebastian Doerrich, Francesco Salvo, Christian Ledig, Jonas Alle
We lifted 9 functions out of this paper's own repositories and ran 0 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| sdoerrich97/stylizing-vit | canonical | 0 of 9 |
| Function | Status | Where it lives |
|---|---|---|
| calc_mean_std | Not yet run | sdoerrich97/stylizing-vit/stylizing_vit/loss/util.py code served (permissive licence) · get_code("cb623432a457aad6") |
| compute_activation_statistics | Not yet run | sdoerrich97/stylizing-vit/experiments/metrics/stylizing.py code served (permissive licence) · get_code("cbc93ec87e94d609") |
| compute_consistency_loss | Not yet run | sdoerrich97/stylizing-vit/stylizing_vit/loss/consistency.py code served (permissive licence) · get_code("601d0aa0e8eeca13") |
| compute_frechet_distance | Not yet run | sdoerrich97/stylizing-vit/experiments/metrics/stylizing.py code served (permissive licence) · get_code("51720a665c6c2694") |
| compute_identity_loss | Not yet run | sdoerrich97/stylizing-vit/stylizing_vit/loss/identity.py code served (permissive licence) · get_code("ab240d4f3d074cbc") |
| denormalize_image | Not yet run | sdoerrich97/stylizing-vit/stylizing_vit/util.py code served (permissive licence) · get_code("b4dea5c1be2f234c") |
| get_image_paths | Not yet run | sdoerrich97/stylizing-vit/experiments/metrics/stylizing.py code served (permissive licence) · get_code("b89fc1a534233cb0") |
| normalize_image | Not yet run | sdoerrich97/stylizing-vit/stylizing_vit/util.py code served (permissive licence) · get_code("bb34211615c52585") |
| resize_image | Not yet run | sdoerrich97/stylizing-vit/stylizing_vit/util.py code served (permissive licence) · get_code("4b10e9d97b27d49a") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Deep learning models in medical image analysis often struggle with generalizability across domains and demographic groups due to data heterogeneity and scarcity. Traditional augmentation improves robustness, but fails under substantial domain shifts. Recent advances in stylistic augmentation enhance domain generalization by varying image styles but fall short in terms of style diversity or by introducing artifacts into the generated images. To address these limitations, we propose Stylizing ViT, a novel Vision Transformer encoder that utilizes weight-shared attention blocks for both self-and cross-attention. This design allows the same attention block to maintain anatomical consistency through self-attention while performing style transfer via cross-attention. We assess the effectiveness of our method for domain generalization by employing it for data augmentation on three distinct image classification tasks in the context of histopathology and dermatology. Results demonstrate an improved robustness (up to +13 % accuracy) over the state of the art while generating perceptually convincing images without artifacts. Additionally, we show that Stylizing ViT is effective beyond training, achieving a 17 % performance improvement during inference when used for test-time augmentation. The source code is available at https://github.com/sdoerrich97/stylizing-vit .
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2601.17586")
get_code_for_paper("2601.17586")
have("2601.17586")
Connect an agent — have() is free.