Skip to content

Commit

Permalink
Update extract_color_mesh.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kwea123 authored Jun 22, 2020
1 parent 1829552 commit 34bb7a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extract_color_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def f(models, embeddings, rays, N_samples, N_importance, chunk, white_back):

# Step 2. project the vertices onto each training image to infer the color
print('Fusing colors ...')
for idx in tqdm(range(len(dataset.image_paths[:1]))):
for idx in tqdm(range(len(dataset.image_paths))):
## read image of this pose
image = cv2.imread(dataset.image_paths[idx])[:,:,::-1]
image = cv2.resize(image, tuple(args.img_wh))
Expand Down Expand Up @@ -294,4 +294,4 @@ def f(models, embeddings, rays, N_samples, N_importance, chunk, white_back):
PlyData([PlyElement.describe(vertex_all, 'vertex'),
PlyElement.describe(face, 'face')]).write(f'{args.scene_name}.ply')

print('Done!')
print('Done!')

0 comments on commit 34bb7a9

Please sign in to comment.