8df5470cf8ce9f1a3b7e34fd6bd6b24be42523d8,src/data/dataset_merge.py,,main,#Any#,65

Before Change


  epoch = int(vec[1])
  print("loading",prefix, epoch)
  model = mx.mod.Module.load(prefix, epoch, context = ctx)
  model.bind(data_shapes=[("data", (args.batch_size, 3, image_size[0], image_size[1]))], label_shapes=[("softmax_label", (args.batch_size,))])
  rec_list = []
  for ds in include_datasets:
    path_imgrec = os.path.join(ds, "train.rec")

After Change


  //model.bind(data_shapes=[("data", (args.batch_size, 3, image_size[0], image_size[1]))], label_shapes=[("softmax_label", (args.batch_size,))])
  model = mx.mod.Module(symbol=sym, context=ctx, label_names = None)
  model.bind(data_shapes=[("data", (args.batch_size, 3, image_size[0], image_size[1]))])
  model.set_params(arg_params, aux_params)
  rec_list = []
  for ds in include_datasets:
    path_imgrec = os.path.join(ds, "train.rec")
    path_imgidx = os.path.join(ds, "train.idx")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: deepinsight/insightface
Commit Name: 8df5470cf8ce9f1a3b7e34fd6bd6b24be42523d8
Time: 2018-01-25
Author: guojia@gmail.com
File Name: src/data/dataset_merge.py
Class Name:
Method Name: main


Project Name: openml/openml-python
Commit Name: 4c7673fc14c37fa1bed85e9296007272ab1039c5
Time: 2016-09-20
Author: feurerm@informatik.uni-freiburg.de
File Name: tests/flows/test_sklearn.py
Class Name: TestSklearn
Method Name: test_serialize_feature_union


Project Name: deepinsight/insightface
Commit Name: d92a6bcda0fce7a629563bac912d5fbc05ec2aa5
Time: 2018-01-25
Author: guojia@gmail.com
File Name: src/data/dataset_merge.py
Class Name:
Method Name: main