mirror of
https://github.com/UX-Decoder/Segment-Everything-Everywhere-All-At-Once.git
synced 2025-06-03 14:50:11 +08:00
10 lines
292 B
Python
Executable File
10 lines
292 B
Python
Executable File
from .vlpencoder import *
|
|
from .build import *
|
|
|
|
def build_language_encoder(config, **kwargs):
|
|
model_name = config['MODEL']['TEXT']['ARCH']
|
|
|
|
if not is_model(model_name):
|
|
raise ValueError(f'Unkown model: {model_name}')
|
|
|
|
return model_entrypoints(model_name)(config, **kwargs) |