24bf232753b4b34b6d4164d5a647dd17d16348b2,example/convert_resnet/convert.py,,main,#,23
Before Change
graph_exec_data.save(OUTPUT_DIR)
with open(path.join(OUTPUT_DIR, "image_nhwc.json".format()), "w") as f:
image_nhwc = np.transpose(prepared_image, (1, 2, 0))
json.dump(image_nhwc.flatten().tolist(), f)
with open(path.join(OUTPUT_DIR, "fc6.json".format()), "w") as f:
json.dump(nn_output.data.tolist(), f)
After Change
parser.add_argument("--encoding")
args = parser.parse_args()
sample_image = np.zeros((224, 224, 3), dtype=np.uint8)//PIL.Image.open("")
if args.model == "vgg16":
link = chainer.links.model.vision.vgg.VGG16Layers()
prepared_image = chainer.links.model.vision.vgg.prepare(sample_image) // BGR, CHW
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: mil-tokyo/webdnn
Commit Name: 24bf232753b4b34b6d4164d5a647dd17d16348b2
Time: 2017-05-23
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: example/convert_resnet/convert.py
Class Name:
Method Name: main
Project Name: cesium-ml/cesium
Commit Name: 996d9b723da23d37df383ea3a9b60ea371811556
Time: 2015-02-05
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: docker_extract_features
Project Name: ray-project/ray
Commit Name: 822de1b7f746736193cd6708654529a26f4a0479
Time: 2020-05-23
Author: cappelletti.luca94@gmail.com
File Name: python/ray/tune/suggest/bayesopt.py
Class Name: BayesOptSearch
Method Name: save