endlesssora / focal-frequency-loss Goto Github PK
View Code? Open in Web Editor NEW[ICCV 2021] Focal Frequency Loss for Image Reconstruction and Synthesis
License: MIT License
[ICCV 2021] Focal Frequency Loss for Image Reconstruction and Synthesis
License: MIT License
Hi, thanks for your work.
I got a problem when I use the focal frequency loss for training.
This sentence appears above the log file(but the network is still on training process):
Warning: Casting complex values to real discards the imaginary part (function operator())
Thank you for a nice and handy implementation. I would like to ask you to provide some kind of stylegan2 training config, e.g. like this one
so it would be possible to replicate your experiment. Most of all Im interested in understanding used combination of losses, it is not completely clear to me if you used ONLY focal frequency loss and not other losses in stylegan2 experiment. so would be cool to know relative weights of losses used.
thanks.
Great work! Thank you for sharing the code.
Could you please share the code to draw the spectra of images? Thanks.
The warning code is【C:\Users\PC.conda\envs\paGAN\lib\site-packages\torch\autograd_init_.py:173: UserWarning: Casting complex values to real discards the imaginary part (Triggered internally at C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\Copy.cpp:239.)
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass】
Does it affect the quality of the generated images? Thank you!
Thanks for your good job!
recently i am apply it for my work, i find its well for Image Reconstruction. but i am confuse for how big its value ? Generally speaking,for gan, we will have two loss. can you provide some experience for two loss? should i initialize two loss is equal?
Could you please provide the method of reproducing other methods in the paper? This repo Only provide vanilla AE .
As I couldn't find a tensorflow implementation of Focal Frequency Loss, so I created it.
Please visit the Github Repo and PyPi Project.
Use case notebook is included in the Repo. Any feedback is appreciated.
@EndlessSora If you find this implementation useful, kindly do mention it on your README.
Thanks for releasing this.
I am Vansin, the technical operator of OpenMMLab. In September of last year, we announced the release of OpenMMLab 2.0 at the World Artificial Intelligence Conference in Shanghai. We invite you to upgrade your algorithm library to OpenMMLab 2.0 using MMEngine, which can be used for both research and commercial purposes. If you have any questions, please feel free to join us on the OpenMMLab Discord at https://discord.gg/A9dCpjHPfE or add me on WeChat (ID: van-sin) and I will invite you to the OpenMMLab WeChat group.
Here are the OpenMMLab 2.0 repos branches:
OpenMMLab 1.0 branch | OpenMMLab 2.0 branch | |
---|---|---|
MMEngine | 0.x | |
MMCV | 1.x | 2.x |
MMDetection | 0.x 、1.x、2.x | 3.x |
MMAction2 | 0.x | 1.x |
MMClassification | 0.x | 1.x |
MMSegmentation | 0.x | 1.x |
MMDetection3D | 0.x | 1.x |
MMEditing | 0.x | 1.x |
MMPose | 0.x | 1.x |
MMDeploy | 0.x | 1.x |
MMTracking | 0.x | 1.x |
MMOCR | 0.x | 1.x |
MMRazor | 0.x | 1.x |
MMSelfSup | 0.x | 1.x |
MMRotate | 0.x | 1.x |
MMYOLO | 0.x |
Attention: please create a new virtual environment for OpenMMLab 2.0.
Can you tell me the reason and how can I mod codes to support pytorch>1.7.1 ?
For example 1.8.1 ?
Hi, thank you for providing the code. It was really helpful.
One thing I am curious about is that when training VAE, unlike VanillaAE, the KL loss weight can affect the recontruction quality.
Adding focal frequency loss without changing the weight for KL loss will casue the recontruction loss to be weighted more, so that it is trivially able to reconstruct more details.
Can you share about how did you weight these terms? I did not find this description in the paper.
Thanks in advance!
Why do we clamp here?
Could you please share the paper of Deceive D: Adaptive Pseudo Augmentation for GAN Training with Limited Data, THX.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.