mix-bt / ssl-sota /methods /__init__.py
wgcban's picture
Upload 98 files
803ef9e
raw
history blame
No virus
336 Bytes
from .contrastive import Contrastive
from .w_mse import WMSE
from .byol import BYOL
METHOD_LIST = ["contrastive", "w_mse", "byol"]
def get_method(name):
assert name in METHOD_LIST
if name == "contrastive":
return Contrastive
elif name == "w_mse":
return WMSE
elif name == "byol":
return BYOL