class documentation
class FiftyOneZeroShotTransformerForImageClassificationConfig(FiftyOneZeroShotTransformerConfig): (source)
Constructor: FiftyOneZeroShotTransformerForImageClassificationConfig(d)
Configuration for a
FiftyOneZeroShotTransformerForImageClassification
.
Parameters | |
model | a transformers model |
name | the name or path to a checkpoint file to load |
text | the text prompt to use, e.g., "A photo of" |
classes | a list of custom classes for zero-shot prediction |
Method | __init__ |
Undocumented |
Instance Variable | name |
Undocumented |
Inherited from FiftyOneZeroShotTransformerConfig
:
Instance Variable | text |
Undocumented |
Inherited from FiftyOneTransformerConfig
(via FiftyOneZeroShotTransformerConfig
):
Instance Variable | device |
Undocumented |
Inherited from Config
(via FiftyOneZeroShotTransformerConfig
, FiftyOneTransformerConfig
):
Method | __repr__ |
Undocumented |
Inherited from HasZooModel
(via FiftyOneZeroShotTransformerConfig
, FiftyOneTransformerConfig
, Config
):
Method | download |
Undocumented |
Instance Variable | model |
Undocumented |
Class Method | _get |
Undocumented |