MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / un_normalize_data_2D

Function un_normalize_data_2D

models/strand_codec.py:57–64  ·  view source on GitHub ↗
(strands_data, mean, std)

Source from the content-addressed store, hash-verified

55 return strands_data
56
57def un_normalize_data_2D(strands_data, mean, std):
58 orig_shape = strands_data.shape
59 nr_strands = strands_data.shape[0]
60 strands_data=strands_data.view(nr_strands, -1)
61 strands_data=strands_data*std.view(1,-1)
62 strands_data=strands_data+mean.view(1,-1)
63 strands_data=strands_data.view(orig_shape)
64 return strands_data
65
66def normalize_gt_data(gt_dict, normalization_dict):
67 # mean=normalization_dict["xyz_mean"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected