Vision model configs. Args: max_batch_size: the max image size passed to the model, since some models will use image patch, the actual running batch could be larger than this value. thread_safe: Specifies whether the engine instance is thread-
| 678 | |
| 679 | @dataclass |
| 680 | class VisionConfig: |
| 681 | """Vision model configs. |
| 682 | |
| 683 | Args: |
| 684 | max_batch_size: the max image size passed to the model, since |
| 685 | some models will use image patch, the actual running batch could |
| 686 | be larger than this value. |
| 687 | thread_safe: Specifies whether the engine instance is |
| 688 | thread-safe. Please set it to True when using the pipeline |
| 689 | in a multi-threaded environment. |
| 690 | """ |
| 691 | max_batch_size: int = 1 |
| 692 | thread_safe: bool = False |
| 693 | |
| 694 | |
| 695 | @dataclass |
no outgoing calls
no test coverage detected