3341fc75b6327c95e6e11201ff4f86dfa9c546ea,data/dataProcessor.py,DataProcessor,get_training_data_from_csv,#DataProcessor#,92

Before Change


                image = cv2.resize(image, target_image_dims, interpolation=cv2.INTER_LINEAR)
                // image = np.array(feature.extract_features(target_image_dims, self.feature_parameters, feature_type_index=feature_type_index, image_array=image))

                image = cv2.cvtColor(image, cv2.COLOR_GRAY2RGB)

                // print(temp[:,:,0]==temp[:,:,1])
                // io.imshow(temp)
                // plt.show()

After Change


                // io.imshow(image)
                // plt.show()

                image_3d = np.array([image, image, image]).reshape((target_image_dims[0], target_image_dims[1], 3))
                features.append(image_3d)

                if tempCount == 9:  break   // for now only processing 10 images, o/w training will take too long
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: thoughtworksarts/EmoPy
Commit Name: 3341fc75b6327c95e6e11201ff4f86dfa9c546ea
Time: 2017-12-19
Author: angelica.perez37@gmail.com
File Name: data/dataProcessor.py
Class Name: DataProcessor
Method Name: get_training_data_from_csv


Project Name: thoughtworksarts/EmoPy
Commit Name: 3341fc75b6327c95e6e11201ff4f86dfa9c546ea
Time: 2017-12-19
Author: angelica.perez37@gmail.com
File Name: data/dataProcessor.py
Class Name: DataProcessor
Method Name: get_training_data_from_csv


Project Name: virajmavani/semi-auto-image-annotation-tool
Commit Name: 7316b75257b74a77bbdd8907614685cad1ddd88e
Time: 2018-06-13
Author: viraj.mavani1996@gmail.com
File Name: main.py
Class Name: MainGUI
Method Name: automate


Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/LR_dataset.py
Class Name: LRDataset
Method Name: __getitem__