MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / list_avail_pretrained

Function list_avail_pretrained

SwissArmyTransformer/sat/helpers.py:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 return model_list
94
95def list_avail_pretrained():
96 from sat.resources.urls import MODEL_URLS
97 # iterate over all pretrained models into a list
98 model_list = []
99 for model_name, model_url in MODEL_URLS.items():
100 model_list.append(model_name)
101 print('Available pretrained models (example: sat.AutoModel.from_pretrained("roberta-base")):')
102 print_aligned_string_list(model_list)
103 return model_list
104
105import logging
106import torch

Callers 1

Calls 3

appendMethod · 0.80
printFunction · 0.50

Tested by 1