howal / cross-iterationbatchnorm Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
你好,可以用keras或者tensorflow实现一下CBN吗?还有就是直接用python实现的CBN速度上会不会收到影响呢?
Excuse me. I don't know the mean of 'weight' in forward function. I just want to use CBN in my work. Can anyone help me ?
The work is really inspiring, in terms of dealing with high variance of small mini-batch size BN statistics, while keeps the conventional property of BN fusion during inference.
However, I am confused with the following fraction of codes:
Assume self.buffer_num, self.burnin
are given.
self.pre_mu
was initialized as an empty list, and appended inside the "if condition scope" itself:
It seems that one would never reach the condition from scratch, for which len(self.pre_mu)==self.buffer_num
doesn't hold.
Is there anything misunderstood? Thanks.
Hi, the question is in the title. THank you.
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/amFNsyUBvm or add me on WeChat (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 | 1.x | 1.x |
MMYOLO | 0.x |
Attention: please create a new virtual environment for OpenMMLab 2.0.
It looks very similar to the effect of GN. I wonder if there is an advantage in forward speed?
I was using a resent18 model from torchvision,and try to replace all bn by CBN. But I can't train it at all, the accuracy is always very little, such as 0.01%
I also use an pre trained resnet18 model that has been trained for 40 epochs, and continue train with CBN replaced for some epochs, and the accuracy is also dropped immediately.
Is there any details I had missed?Please give me some help, Thanks.
Thanks for your excellent work but there's something in your 4.2 experiment that confused me.
Does the 'fixed BN' mean just keep the backbone's BN weights(beta&gamma) fixed or freeze all the backbone's weights?
thank you.
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.