|
@ -52,11 +52,16 @@ Create the operator via the following factory method |
|
|
|
|
|
|
|
|
***model_name***: *str* |
|
|
***model_name***: *str* |
|
|
|
|
|
|
|
|
The model name in string. |
|
|
|
|
|
If no model name is given, it will use the default value "resnet34". |
|
|
|
|
|
|
|
|
The model name in string. The default value is "resnet34". |
|
|
Refer [Timm Docs](https://fastai.github.io/timmdocs/#List-Models-with-Pretrained-Weights) to get a full list of supported models. |
|
|
Refer [Timm Docs](https://fastai.github.io/timmdocs/#List-Models-with-Pretrained-Weights) to get a full list of supported models. |
|
|
|
|
|
|
|
|
skip_preprocess (bool): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
***num_classes***: *1000* |
|
|
|
|
|
|
|
|
|
|
|
The number of classes. The default value is 1000. |
|
|
|
|
|
It is related to model and dataset. |
|
|
|
|
|
|
|
|
|
|
|
***skip_preprocess***: *bool* |
|
|
Flag to control whether to skip image preprocess, defaults to False. |
|
|
Flag to control whether to skip image preprocess, defaults to False. |
|
|
If set to True, image preprocess steps such as transform, normalization will be skipped. |
|
|
If set to True, image preprocess steps such as transform, normalization will be skipped. |
|
|
In this case, the user should guarantee that all the input images are already reprocessed properly, and thus can be fed to model directly. |
|
|
In this case, the user should guarantee that all the input images are already reprocessed properly, and thus can be fed to model directly. |
|
|