train encoder on raw curvature values
This commit is contained in:
+6
-5
@@ -275,6 +275,7 @@ def read_raw_curvatures(folder):
|
||||
continue
|
||||
|
||||
curv = np.load(garment_dir + '/curvature_25_raw.npy')
|
||||
print(curv.max())
|
||||
curvatures_all.append(curv)
|
||||
|
||||
return curvatures_all
|
||||
@@ -282,24 +283,24 @@ def read_raw_curvatures(folder):
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-f", "--folder", help = "process the given folder", default=r'/home/workspace/data/dataset/test')
|
||||
parser.add_argument("-f", "--folder", help = "process the given folder", default=r'/home/workspace/data/dataset/train')
|
||||
parser.add_argument("-s", "--start", help = "start of range", default=0)
|
||||
parser.add_argument("-e", "--end", help = "end of range", default=1500)
|
||||
parser.add_argument("-n", "--name", help = "end of range", default="lhunor")
|
||||
args = parser.parse_args()
|
||||
|
||||
F = np.load("FeatureLines/superSMPL/smpl_faces.npy")
|
||||
# F = np.load("FeatureLines/superSMPL/smpl_faces.npy")
|
||||
# k_neighbours(k=25)
|
||||
|
||||
folder = args.folder
|
||||
nr_of_labels = 6
|
||||
neighbourhood = 25
|
||||
temp_file = 'temp/' + ''.join(random.choice(string.ascii_lowercase) for i in range(10)) + '.ply'
|
||||
dist = np.load('MeshUtils/dijsktra.npy')
|
||||
# dist = np.load('MeshUtils/dijsktra.npy')
|
||||
# dist = np.load('MeshUtils/dijkstra_skirt.npy')
|
||||
|
||||
generate_curvatures(folder, neighbourhood)
|
||||
# curvatures = read_raw_curvatures(folder)
|
||||
# generate_curvatures(folder, neighbourhood)
|
||||
curvatures = read_raw_curvatures(folder)
|
||||
# bins = get_bins(curvatures, nr_of_labels)
|
||||
# np.save('train_bins_skirt.npy', bins)
|
||||
# bins = np.load('train_bins.npy')
|
||||
|
||||
Reference in New Issue
Block a user