010ca73fe1675cf908dcc01868cdeb2eb58431a1,dvalib/facerecognition.py,,represent,#Any#Any#Any#,102

Before Change


                paths_batch = paths[start_index:end_index]
                for fname in paths_batch:
                    count += 1
                    fh.write("{}_{}\n".format(fname,paths_to_pk[fname]))
                images = facenet.load_data(paths_batch, do_random_crop=False, do_random_flip=False,image_size=image_size, do_prewhiten=True)
                feed_dict = {images_placeholder: images, phase_train_placeholder: False}
                emb_array[start_index:end_index, :] = sess.run(embeddings, feed_dict=feed_dict)
            time_avg_forward_pass = (time.time() - start_time) / float(nrof_images)

After Change


                paths_batch = paths[start_index:end_index]
                for eindex, fname in enumerate(paths_batch):
                    count += 1
                    entry = {
                        "path": fname,
                        "detection_primary_key": paths_to_pk[fname],
                        "index": eindex,
                        "type": "detection"
                    }
                    entries.append(entry)
                images = facenet.load_data(paths_batch, do_random_crop=False, do_random_flip=False,image_size=image_size, do_prewhiten=True)
                feed_dict = {images_placeholder: images, phase_train_placeholder: False}
                emb_array[start_index:end_index, :] = sess.run(embeddings, feed_dict=feed_dict)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 010ca73fe1675cf908dcc01868cdeb2eb58431a1
Time: 2017-03-09
Author: akshayubhat@gmail.com
File Name: dvalib/facerecognition.py
Class Name:
Method Name: represent


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 3b61d6a9896c96b6b8a284ff331281e1e6af750b
Time: 2017-03-09
Author: akshayubhat@gmail.com
File Name: dvalib/indexer.py
Class Name: BaseIndexer
Method Name: index_frames


Project Name: streamlit/streamlit
Commit Name: aa8a7efd83e323856ca48742cb44a2fcb84b6bea
Time: 2018-04-24
Author: adrien.g.treuille@gmail.com
File Name: examples/scratchpad.py
Class Name:
Method Name: