Questions tagged [pytorch3d]

PyTorch3D is a library of reusable components for deep learning with 3D data and differentiable rendering.

PyTorch3D is a library of reusable components for deep learning with 3D data and differentiable rendering.

14 questions
3
votes
2 answers

How to fix "ERROR: Failed building wheel for pytorch3d" error on Colab?

I'm trying to use a very cool machine learning Colab. https://colab.research.google.com/drive/1eQLZrNYRZMo9zdnGGccE0hFswGiinO-Z?usp=sharing Running their steps as is, I keep getting ERROR: Failed building wheel for pytorch3d. After much Googling,…
mitchyhub
  • 41
  • 1
  • 2
1
vote
1 answer

How to render a mesh without texture in pytorch3d?

I am trying to render a mesh with only vertices and faces given. I want to use pytorch3d for speed but I cannot seem to produce and image without texture. This is the code for the rendering without texture: import torch from pytorch3d.structures…
Bojack
  • 11
  • 3
1
vote
1 answer

Is the rotation matrix in Pybullet converting world coordinates into camera or camera to world?

I am working on a project, where I need to replace the renderings by pybullet with renders generated with pytorch3d. I figured out that pybullet and pytorch3d have different definitions for the coordinate systems (see these links: pybullet,…
1
vote
1 answer

In pytorch, what is the difference between indexing with square brackets and "index_select"?

Say there are two pytorch tensors a, which is float32 with shape [M, N], and b, which is int64 with shape [K]. The values in b are within [0, M-1], so the following line gives a new tensor c indexed by b: c = a[b] # [K, N] tensor whose i-th row…
ihdv
  • 1,927
  • 2
  • 13
  • 29
1
vote
0 answers

Pytorch3d error: from lib.colab_util import generate_video_from_obj, set_renderer, video

It's my first time programming. I've got this error. How do I fix this? from lib.colab_util import generate_video_from_obj, set_renderer, video renderer = set_renderer() generate_video_from_obj(obj_path, out_img_path, video_path, renderer) we cannot…
0
votes
0 answers

Downloading pytorch3d installtion no c++ compiler

I have been trying to download pytorch3d on my PC however it keeps failing. I believe its because of the c++ compiler but I am not sure. FAILED: C:/Users/Virtual…
Sai Veeramachaneni
  • 271
  • 1
  • 2
  • 7
0
votes
0 answers

UnidentifiedImageError: cannot identify image file with Pytorch3d on Google Colab

I'm learning Pytorch3d and am trying to load .obj file with texture. The code is: DATA_DIR = "./data" obj_filename = os.path.join(DATA_DIR, "cow_mesh/cow.obj") device = torch.device('cuda') mesh = load_objs_as_meshes([obj_filename],…
user3368526
  • 2,168
  • 10
  • 37
  • 52
0
votes
0 answers

A problem when plotting pointclouds with pytorch3d meshes in Jupyter Notebook

I have just downloaded pytorch3d and tried to run the program of "Deform a source mesh to form a target mesh using 3D loss functions" given in the documentation. any figure failed to be plotted. Could u please help me? Here is the code(almost the…
0
votes
0 answers

How to reconstruct 3d head from shape/position/geometry maps using python/ pytorch3d/menpo/menpo3d?

I have a generic 3d model containing different parts of the head (in .obj format). From the obj file, I extracted just the front face part like the figure shown below (by deleting other parts of the head from obj file). Using the UV unwrapping…
Suvidha
  • 429
  • 1
  • 6
  • 17
0
votes
1 answer

How to define PyTorch3D plane geometry?

I'm new to PyTorch3D and I'm trying to define a (subdivided) plane. What I've tried to do is mirror the structure I found in PyTorch3D's ico_sphere.py. For reference these are the contents: # Copyright (c) Meta Platforms, Inc. and affiliates. # All…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
0
votes
2 answers

Rendering the result in Videos using Pytorch3d

from lib.colab_util import generate_video_from_obj, set_renderer, video renderer = set_renderer() generate_video_from_obj(obj_path, out_img_path, video_path, renderer) we cannot play a mp4 video generated by cv2 !ffmpeg -i $video_path -vcodec…
Sahasradal
  • 1
  • 1
  • 1
0
votes
0 answers

An importerror while importing some package from pytorch3d

I tried the following code and got the import error: import os import torch import matplotlib.pyplot as plt import cv2 from pytorch3d.utils import ico_sphere import numpy as np from tqdm.notebook import tqdm from pytorch3d.io import…
DuDu
  • 1
  • 1
0
votes
1 answer

Mesh-R-CNN Data with Colab and Pytorch3D

While using the Mesh-R-CNN demo on Google Colab: https://github.com/facebookresearch/meshrcnn on the demo.py file I get this message ModuleNotFoundError Traceback (most recent call last) in…
0
votes
5 answers

Installing PyTorch3D fails with anaconda and pip on Windows 10

I saw that more people seem to have the same issue, but it was not resolved. I am trying to install Pytorch3D with Anaconda and got the following PackageNotFound error. Collecting package metadata (current_repodata.json): done Solving environment:…
Alex Dima
  • 11
  • 1
  • 1
  • 4