save progress
This commit is contained in:
+4
-1
@@ -223,9 +223,12 @@ def _todict(matobj):
|
||||
|
||||
|
||||
# can i cache map?
|
||||
def read_posed_garment_frame(folder, id, garment, frame, map, mask=None, shape=None, shapedirs=None, pose=None, unshape=False, deorient=False):
|
||||
def read_posed_garment_frame(folder, id, garment, frame, map=None, mask=None, shape=None, shapedirs=None, pose=None, unshape=False, deorient=False):
|
||||
pc16_path = os.path.join(folder, id, garment + '.pc16')
|
||||
verts = readPC2Frame(pc16_path, frame, True)
|
||||
|
||||
if map is None:
|
||||
map = sio.loadmat(os.path.join(folder, id, garment + '_map.mat'))['map'].reshape((-1))
|
||||
verts = verts[map, :]
|
||||
|
||||
if unshape:
|
||||
|
||||
Reference in New Issue
Block a user