Comments (4)
I think the batch size you set is not 32 per GPU? The self.B in MABN should equal to batch size you set in dataloader. We will refine the code later, but for now, you can manually set the default value of self.B to match the batch size you set for a quick test.
from mabn.
@RuosOne MABN
is aimed to solve the problem when batch size is small, so if I can set batch size to 32, why I use MABN
? You give a temporary solution but if batch size is 1 or odd number, it's still have error
from mabn.
The cls code simulates the small batch issue, i.e., large sgd batch size and small normalization batch size. In cls code ,the normalization batch is set as 2 while sgd batch size is 256. Of course you can set normalization batch size as 1 or any other odd numbers you want.
Technically, we hardly can meet small batch issue on classification problem, thus we just test the effectiveness of small batch normalization method on classification task as any other small batch normalization methods do. If you want to see its effectiveness on real small batch issue, I suggest you to test det code. It's a real small batch case.
Again, the cls code is just a simulation of small batch issue on imagenet cls tasks. If you want to test MABN on real small batch issue, you can test det code, or run the real small batch(1 or 2) experiment on imagenet with the implementation of MABN in det code, which I do not suggest you to do because it's really time-consuming.
Hope these can help you. If you have any other question not about the code but MABN itself, please send email to us or leave the public comments in https://openreview.net/forum?id=SkgGjRVKDS¬eId=38ji3hend1, we welcome any thoughtful discussion.
Edit: we will add formal MABN module in the repo later for easy use in real small batch issue.
from mabn.
We have added formal MABN module for easy use.
from mabn.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mabn.