285dc85691241532cd976e04a089f409e44d7493,src/detection/tensor/detector.py,Detector,detect_multiple,#Detector#,40

Before Change


                predictions = self.sess.run(softmax_tensor, {"DecodeJpeg:0": image})
                predictions = np.squeeze(predictions)
                answer = {}
                for node_id in range(len(predictions)):
                    answer[self.labels[node_id]] = predictions[node_id]
                answers.append(answer)
            return answers

    @staticmethod

After Change



        with tf.device("/gpu:0"):
            softmax_tensor = self.sess.graph.get_tensor_by_name("final_result:0")
            threads = [pool.apply_async(operation, args=(self.sess, softmax_tensor, image_array_list[i],)) for i in
                       range(10)]
            results = []
            for x in threads:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: geometalab/OSMDeepOD
Commit Name: 285dc85691241532cd976e04a089f409e44d7493
Time: 2016-08-12
Author: samuel.kurath@gmail.com
File Name: src/detection/tensor/detector.py
Class Name: Detector
Method Name: detect_multiple


Project Name: comic/grand-challenge.org
Commit Name: 6ac71c8dea5f7bb18e6f5ca040ad9313427b2d9b
Time: 2020-01-28
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/signals.py
Class Name:
Method Name: assign_score


Project Name: xinntao/BasicSR
Commit Name: 29ab5e1965503be3ffe87462e973edf1d457af6e
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/extract_subimgs_single.py
Class Name:
Method Name: main