MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / build_model

Function build_model

visualize_flow.py:143–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 return image1, image2, viz_fn
142
143def build_model():
144 print(f"building model...")
145 cfg = get_cfg()
146 model = torch.nn.DataParallel(build_flowformer(cfg))
147 model.load_state_dict(torch.load(cfg.model))
148
149 model.cuda()
150 model.eval()
151
152 return model
153
154def visualize_flow(root_dir, viz_root_dir, model, img_pairs, keep_size):
155 weights = None

Callers 1

visualize_flow.pyFile · 0.85

Calls 2

get_cfgFunction · 0.90
build_flowformerFunction · 0.90

Tested by

no test coverage detected