Create __init__.py
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
from .matrixgame_i2v import MatrixGameEncoderWrapperI2V
|
||||
def get_text_enc(enc_name, model_path, weight_dtype, i2v_type):
|
||||
if enc_name == 'matrixgame':
|
||||
return MatrixGameEncoderWrapperI2V(model_path, weight_dtype, task = 'i2v', i2v_type = i2v_type)
|
||||
else:
|
||||
raise NotImplementedError(f'{enc_name} is not implemented.')
|
||||
Reference in New Issue
Block a user