Closed da-liii closed 1 year ago
With #691, we will solve the problem that torchvision version is fixed.
However, for now, the torchvision dependencies are required even when we are using Rikai with Tensorflow.
https://github.com/eto-ai/rikai/blob/28726a0f8ffb1c9f092bbb7bb4987908b3472112/python/rikai/pytorch/models/__init__.py#L17-L26
I suggest that we should not load the above model types when torchvision is not installed.
With #691, we will solve the problem that torchvision version is fixed.
However, for now, the torchvision dependencies are required even when we are using Rikai with Tensorflow.
https://github.com/eto-ai/rikai/blob/28726a0f8ffb1c9f092bbb7bb4987908b3472112/python/rikai/pytorch/models/__init__.py#L17-L26
I suggest that we should not load the above model types when torchvision is not installed.