How to implement a new Vision Model
mainViperGPT uses a modular system for vision models. To add a new model, you must implement a new class in vision_models.py that follows these requirements:
- Inherit from
BaseModel. - Implement the
forwardmethod. - Implement the
namemethod (this string is used to call the model viavision_processes.py).
vision_processes.py will automatically detect new models implemented in vision_models.py and manage their lifecycle in a multiprocessing environment.