megvii-research / BBN

The official PyTorch implementation of paper BBN: Bilateral-Branch Network with Cumulative Learning for Long-Tailed Visual Recognition
https://arxiv.org/abs/1912.02413
MIT License
657 stars 100 forks source link

is it possible that I implement this method using Keras? #27

Open Cocoalate opened 3 years ago

Cocoalate commented 3 years ago

I cannot use pytorch to do my research for some reason., so I'm trying to "translate" the code to keras form. Now I've completed the dataloader (data generator in Keras) part, but I'm stuck with putting both balance sample data and reverse sample data in the backbone model to get 2 features. How can I use Keras "fit" or "compile" to process both forms of data? Or is it possible to use the method using Keras?

EmberaThomas commented 6 months ago

same issue, have you solved the problem?