tried normalization, did not work

This commit is contained in:
2023-01-06 11:19:34 +00:00
parent 51b6219021
commit 022c488180
5 changed files with 104 additions and 20 deletions
+3 -3
View File
@@ -67,7 +67,7 @@ class DataReader:
V -= J[0:1]
# Apply rotation on z-axis
zRot = zRotMatrix(info['zrot'])
return zRot.dot(V.T).T, self.smpl[gender].faces, zRot.dot(trans.T).T[None,:]
return zRot.dot(V.T).T, self.smpl[gender].faces, zRot.dot(trans.T).T[None,:], zRot.dot((J - J[0:1] + trans[None,:]).T).T[None,:], zRot.dot((J - J[0:1]).T).T[None,:]
""" Garment data """
"""
@@ -84,9 +84,9 @@ class DataReader:
# Read garment vertices (relative to root joint)
pc16_path = os.path.join(self.SRC, sample, garment + '_registered.pc16')
V = readPC2Frame(pc16_path, frame, True)
# Read sample data
info = self.read_info(sample)
if absolute:
# Read sample data
info = self.read_info(sample)
# Transform to absolute
V += info['trans'][:,frame][None]
# Apply rotation on z-axis