82d2e9ea62f1d776331e843266a31fe076d249b1,src/data/generation/generate_crosswalk_images.py,,run,#Any#,7
Before Change
def run(args):
bbox = Bbox.from_lbrt(args.bbox[0], args.bbox[1], args.bbox[2], args.bbox[3])
crosswalkCollector = CrosswalkCollector(bbox=bbox, hdf5_file=args.convnet, image_dir=args.image_dir)
crosswalkCollector.run()
def mainfunc():
parser = argparse.ArgumentParser(description="Generate crosswalk images.", )
After Change
bboxes = []
if args.csv is not None:
if os.path.exists(args.csv):
with open(args.csv, "rb") as csvfile:
reader = csv.reader(csvfile, delimiter=",")
next(reader)
for row in reader:
bbox = Bbox.from_lbrt(float(row[1]), float(row[2]), float(row[3]), float(row[4]))
bboxes.append(bbox)
else:
raise Exception("CSV file " + args.csv + " does not exist!")
else:
bboxes.append(Bbox.from_lbrt(args.bbox[0], args.bbox[1], args.bbox[2], args.bbox[3]))
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: geometalab/OSMDeepOD
Commit Name: 82d2e9ea62f1d776331e843266a31fe076d249b1
Time: 2016-08-02
Author: samuel.kurath@gmail.com
File Name: src/data/generation/generate_crosswalk_images.py
Class Name:
Method Name: run
Project Name: HyperGAN/HyperGAN
Commit Name: 5a69007e1ab2f4c0b4a549c0a2a8cd9701fd8929
Time: 2017-06-28
Author: mikkel@255bits.com
File Name: examples/colorizer.py
Class Name:
Method Name: search
Project Name: kubeflow/kubeflow
Commit Name: 8fcd7448ea2c700246f3de3bbdd2b2cbca7a9cdf
Time: 2018-04-26
Author: jose5918@gmail.com
File Name: testing/test_deploy.py
Class Name:
Method Name: setup_kubeflow_ks_app
Project Name: NervanaSystems/nlp-architect
Commit Name: c67aabab14b14fdef4b7e0ac576e2178dfb272b3
Time: 2019-03-06
Author: peteriz@users.noreply.github.com
File Name: setup.py
Class Name:
Method Name:
Project Name: PIQuIL/QuCumber
Commit Name: 5041068ea241f946217690aee63942261911b42d
Time: 2018-08-07
Author: emerali@users.noreply.github.com
File Name: tasks.py
Class Name:
Method Name: build_docs