dasguptar / bcnn.pytorch Goto Github PK
View Code? Open in Web Editor NEWBilinear CNNs in PyTorch
License: MIT License
Bilinear CNNs in PyTorch
License: MIT License
I refered to your and Hao Mood's code and trained the BCNN model fine tuning all layers,
and the best test accuracy I can reach was ~73%/~61% with and without pretrained VGG16.
Is it easy to reach the accuracy of 84% you report?
I used almost the same hyperparameter setting, except the batch-size.
Due to memory constraint, I can only set batch-size as 12.
I doubt the small batch size would hurt the training but have no evidence.
Since the VGG16 I used didn't include BN layers, and people just said
small batch size can provide noise in training to prevent from poor generalization.
Because small batch size increase the variance of gradient,
so I also tried to tune the lr rate in order to adjust that, but still can't improve the result.
Could you give me some advice on how to reach the 84% accuracy?
or confirm that it is not possible to reach 84% accuracy when batch size is 12.
Is it correct to use torch.sqrt(outputs + 1e-5) since outputs may have negative values? Thanks!
https://github.com/dasguptar/bcnn.pytorch/blob/master/bcnn/model.py#L32
outputs = torch.sign(outputs) * torch.sqrt(outputs + 1e-5) # signed square root normalization
Thank you for providing the implementation of BCNN.
After reading your code, I'm cofused with the model setting that
it just train single VGG model and outer product the output and its transpose.
Shouldn't BCNN train two independent VGG models and outer product their outputs?
Am I misunderstanding something?
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.