Install OnClass¶
OnClass can be substantially accelerated by using GPU (tensorflow 2.0). However, this is only required when you want to train your own model. OnClass can also be used with only CPU.
OnClass package only has three scripts: the OnClass class file, the deep learning model file, and the utility functions file.
You can simply get these three files and put it in the right directory (see how to use run_OnClass_example.py in Tutorial). You can also install OnClass using pip as following:
- Only use CPU
pip install OnClass==1.2
pip install tensorflow==2.0
- Use GPU
pip install OnClass==1.2
pip install tensorflow-gpu==2.0