@@ -816,6 +816,7 @@ def quality(self, state, actions, params=None):
816816
817817class DiscCurvatureSuctionQualityFunction (
818818 GaussianCurvatureSuctionQualityFunction ):
819+
819820 def __init__ (self , config ):
820821 """Create approach planarity suction metric."""
821822 self ._radius = config ["radius" ]
@@ -848,6 +849,7 @@ def _points_in_window(self, point_cloud_image, action, segmask=None):
848849
849850class ComDiscCurvatureSuctionQualityFunction (
850851 DiscCurvatureSuctionQualityFunction ):
852+
851853 def __init__ (self , config ):
852854 """Create approach planarity suction metric."""
853855 self ._curvature_pctile = config ["curvature_pctile" ]
@@ -911,6 +913,7 @@ def quality(self, state, actions, params=None):
911913
912914
913915class GQCnnQualityFunction (GraspQualityFunction ):
916+
914917 def __init__ (self , config ):
915918 """Create a GQCNN suction quality function."""
916919 GraspQualityFunction .__init__ (self )
@@ -1067,6 +1070,7 @@ def quality(self, state, actions, params):
10671070
10681071
10691072class NoMagicQualityFunction (GraspQualityFunction ):
1073+
10701074 def __init__ (self , config ):
10711075 """Create a quality that uses `nomagic_net` as a quality function."""
10721076 from nomagic_submission import ConvNetModel
@@ -1154,8 +1158,8 @@ def grasps_to_tensors(self, grasps, state):
11541158 255 ))[1 ].tostring ()
11551159 im_decoded = cv2 .imdecode (np .frombuffer (im_encoded , np .uint8 ),
11561160 0 ) / 255.0
1157- image_tensor [i , :, :, 0 ] = (( im_decoded - self . _data_mean ) /
1158- self ._data_std )
1161+ image_tensor [i , :, :,
1162+ 0 ] = (( im_decoded - self . _data_mean ) / self ._data_std )
11591163
11601164 if gripper_mode == GripperMode .PARALLEL_JAW :
11611165 pose_tensor [i ] = grasp .depth
@@ -1230,6 +1234,7 @@ def quality(self, state, actions, params):
12301234
12311235
12321236class FCGQCnnQualityFunction (GraspQualityFunction ):
1237+
12331238 def __init__ (self , config ):
12341239 """Grasp quality function using the fully-convolutional gqcnn."""
12351240 GraspQualityFunction .__init__ (self )
0 commit comments