baal-org / baal

Bayesian active learning library for research and industrial usecases.
https://baal.readthedocs.io
Apache License 2.0
868 stars 86 forks source link

Investigate Integration with tensorflow #137

Open parmidaatg opened 3 years ago

parmidaatg commented 3 years ago

Is your feature request related to a problem? Please describe. As per conversation with @tboquet, this feature could help him working with BaaL in his research at Unity.

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Dref360 commented 3 years ago

Do we know what is missing? BALD is in numpy, I do not know how to have a patch_module for TF, but we could do without for now.

tboquet commented 3 years ago

We might want to have a look at how the transformers repo at hugging works w.r.t having 2 or more backends in the future:

But we can do without right? There would be a model wrapper to implement and the dirichlet calibration?

parmidaatg commented 3 years ago

yes mainly model_wrapper, and patch_module (this is the main one which changes droput layer) and dirichlet. the heuristics are numpy so we are good