File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -217,15 +217,6 @@ def __len__(self) -> int:
217
217
"""Returns the total number of samples in the dataset."""
218
218
return len (self .data_frame )
219
219
220
- def min_max_normalize (self , data : np .ndarray ) -> np .ndarray :
221
- """
222
- Normalizes the data to the range [0, 1] based on min and max values.
223
- """
224
- min_vals = data .min (axis = 0 , keepdim = True )
225
- max_vals = data .max (axis = 0 , keepdim = True )
226
- normalized_data = (data - min_vals ) / (max_vals - min_vals )
227
- return normalized_data
228
-
229
220
def _sample_or_pad_vertices (
230
221
self , vertices : paddle .Tensor , num_points : int
231
222
) -> paddle .Tensor :
@@ -312,10 +303,6 @@ def __getitem__(
312
303
if self .transform :
313
304
vertices = self .transform (vertices )
314
305
315
- vertices = self .min_max_normalize (vertices )
316
-
317
- cd_value = np .array (float (cd_value ), dtype = np .float32 ).reshape ([- 1 ])
318
-
319
306
self .cache [idx ] = (
320
307
{self .input_keys [0 ]: vertices },
321
308
{self .label_keys [0 ]: cd_value },
You can’t perform that action at this time.
0 commit comments