MCPcopy
hub / github.com/jindongwang/transferlearning / gather_res

Function gather_res

code/clip/utils.py:61–70  ·  view source on GitHub ↗
(model_name_lst, data_name_lst)

Source from the content-addressed store, hash-verified

59
60
61def gather_res(model_name_lst, data_name_lst):
62 res = []
63 for model_name in model_name_lst:
64 for data_name in data_name_lst:
65 with open('/home/jindwang/mine/clipood/log/{}_{}.txt'.format(model_name, data_name), 'r') as f:
66 lines = f.readlines()
67 line = lines[-1].strip().split(' ')[-1]
68 line = '{},{},{}'.format(model_name, data_name, line)
69 res.append(line)
70 return res
71
72
73def convert_models_to_fp32(model):

Callers 1

sweepFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected