mirror of
https://github.com/jiaxiaojunQAQ/OmniSafeBench-MM.git
synced 2026-02-12 17:52:46 +00:00
14 lines
283 B
Python
14 lines
283 B
Python
from abc import ABC, abstractmethod
|
|
|
|
class MultiModalModel(ABC):
|
|
@abstractmethod
|
|
def __init__(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def generate(self, test_case):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def compute_loss(self, behavior, target, image_input):
|
|
pass |