[BUG] apply_model: "Ignoring num_workers
parameter; only supported for Torch models" despite using torch models
#5222
Labels
bug
Bug fixes
Describe the problem
While running a set of torch models with
apply_model
from https://docs.voxel51.com/model_zoo/models.html#torch-models, I noticed that none support the num_workers parameters. This seems odd, since all are torch models. Either the warning message is off or there is something else going on.Code to reproduce issue
I looked where you check for the usability of num_workers and it seems like a
TorchModelMixin
type is expected.Relevant sections seem to be
fiftyone/fiftyone/core/models.py
Line 2277 in 1649f2f
fiftyone/fiftyone/core/models.py
Line 870 in 1649f2f
However, none of the models seem to have it:
gives
So when running
the following warnings appear:
So either by "Torch models" you do not mean the ones you provide in the Zoo, or something is off.
System information
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?
from the FiftyOne community
The text was updated successfully, but these errors were encountered: