MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / output

Function output

tools/visualize_data.py:56–64  ·  view source on GitHub ↗
(vis, fname)

Source from the content-addressed store, hash-verified

54 metadata = MetadataCatalog.get(cfg.DATASETS.TRAIN[0])
55
56 def output(vis, fname):
57 if args.show:
58 print(fname)
59 cv2.imshow("window", vis.get_image()[:, :, ::-1])
60 cv2.waitKey()
61 else:
62 filepath = os.path.join(dirname, fname)
63 print("Saving to {} ...".format(filepath))
64 vis.save(filepath)
65
66 scale = 2.0 if args.show else 1.0
67 if args.source == "dataloader":

Callers 1

visualize_data.pyFile · 0.85

Calls 3

printFunction · 0.85
get_imageMethod · 0.80
saveMethod · 0.80

Tested by

no test coverage detected