Skip to main content

Frequency Distribution Loss (FDL) for misalignment data

Project description

Frequency Distribution Loss (FDL) for misaligned data

The IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024

Zhangkai Ni, Juncheng Wu, Zian Wang, Wenhan Yang, Hanli Wang, Lin Ma

This repository provides the official PyTorch implementation for the paper “Misalignment-Robust Frequency Distribution Loss for Image Transformation”, CVPR-2024. Paper

About FDL

A novel Frequency Distribution Loss (FDL) for image transformation models trained with misaligned data, opening up new avenues for addressing the broad issue of misalignment in image transformation tasks.

Quick Start

Installation:

pip install fdl-pytorch

Requirements:

  • Python>=3.6
  • Pytorch>=1.0

Usage:

from FDL_pytorch import FDL_loss
fdl_loss = FDL_loss()
# X: (N,C,H,W) 
# Y: (N,C,H,W) 
loss_value = fdl_loss(X, Y)
loss_value.backward()

Citation

If you find our work useful, please cite it as

@article{ni2024misalignment,
  title={Misalignment-Robust Frequency Distribution Loss for Image Transformation},
  author={Ni, Zhangkai and Wu, Juncheng and Wang, Zian and Yang, Wenhan and Wang, Hanli and Ma, Lin},
  journal={arXiv preprint arXiv:2402.18192},
  year={2024}
}

Contact

Thanks for your attention! If you have any suggestion or question, feel free to leave a message here or contact Dr. Zhangkai Ni (eezkni@gmail.com).

License

MIT License

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FDL_pytorch-1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

FDL_pytorch-1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file FDL_pytorch-1.0.tar.gz.

File metadata

  • Download URL: FDL_pytorch-1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.13

File hashes

Hashes for FDL_pytorch-1.0.tar.gz
Algorithm Hash digest
SHA256 df7494c5b4f5cbeb68b8166f93fcb2b92a600703f4538445c9de58a47e9c5f69
MD5 1bf5d3ca51e2a46621741238b384bb01
BLAKE2b-256 567f800b3693e970adf456e35f832c4518aa8b6cf6a90da6fcab6b57a6ed8535

See more details on using hashes here.

File details

Details for the file FDL_pytorch-1.0-py3-none-any.whl.

File metadata

  • Download URL: FDL_pytorch-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.13

File hashes

Hashes for FDL_pytorch-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78621ebe88eafc98c5302bc9bc0a035359d3ca5e0c500b5440938c049911d1c3
MD5 347885c221954e146824c820df264f2c
BLAKE2b-256 bd8c74e0d0937434f9229105ac7032d1b54422db701ea69ac223090d42a10aa4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page