muellerzr / fastinference

A collection of inference modules for fastai2
https://muellerzr.github.io/fastinference
Apache License 2.0
89 stars 16 forks source link

Can't run notebooks #62

Open connormeaton opened 1 year ago

connormeaton commented 1 year ago

Hello, thanks for working on this. I am trying to convert text and image models I trained with the current fastiai (2.7.11) to onnx and this library seems like what I need. Is this project still being updated?

I have tried to run a bunch of the notebooks without success, including: https://github.com/muellerzr/fastblog/blob/master/_notebooks/2020-06-08-fastinference.ipynb https://github.com/muellerzr/fastinference/blob/master/nbs/03_onnx.ipynb

I am working on colab and trying to set up the right environment. First, I noticed that you are importing fastai2. Now that fastai v2 is stable, does fastinference still work with the current version of fastai?

When trying to import fastinference after pip installing, I keep getting:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-9-dd2f399daef1>](https://localhost:8080/#) in <module>
      2 from fastinference.soft_dependencies import SoftDependencies
      3 if not SoftDependencies.check()['onnxcpu'] and not SoftDependencies.check()['onnxgpu']:
----> 4     raise ImportError("The onnxcpu or onnxgpu module is not installed.")

ImportError: The onnxcpu or onnxgpu module is not installed.

I have fastai, fastinference and onnx installed. What else do I need? I mainly just want to be able to replicate your notebooks first to understand the library and eventually, convert my fastai models to onnx.

Thanks!