facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

Encountered a compilation error: the required .o files were not generated. #1832

Closed ByChelsea closed 4 months ago

ByChelsea commented 4 months ago

🐛 Unexpected behaviors

Hello, I encountered a compilation error: the required .o files were not generated. Could someone help me troubleshoot why these object files are missing? The output infos are as follows:

No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-12.1'
running build
running build_py
copying projects/__init__.py -> build/lib.linux-x86_64-cpython-310/projects
copying pytorch3d/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d
copying pytorch3d/common/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common
copying pytorch3d/common/compat.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common
copying pytorch3d/common/datatypes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common
copying pytorch3d/common/linear_with_repeat.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common
copying pytorch3d/datasets/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets
copying pytorch3d/datasets/shapenet_base.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets
copying pytorch3d/datasets/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets
copying pytorch3d/implicitron/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron
copying pytorch3d/implicitron/eval_demo.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron
copying pytorch3d/io/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/io/experimental_gltf_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/io/mtl_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/io/obj_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/io/off_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/io/pluggable.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/io/pluggable_formats.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/io/ply_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/io/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io
copying pytorch3d/loss/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss
copying pytorch3d/loss/chamfer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss
copying pytorch3d/loss/mesh_edge_loss.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss
copying pytorch3d/loss/mesh_laplacian_smoothing.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss
copying pytorch3d/loss/mesh_normal_consistency.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss
copying pytorch3d/loss/point_mesh_distance.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss
copying pytorch3d/ops/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/ball_query.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/cameras_alignment.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/cubify.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/graph_conv.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/interp_face_attrs.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/iou_box3d.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/knn.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/laplacian_matrices.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/marching_cubes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/marching_cubes_data.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/mesh_face_areas_normals.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/mesh_filtering.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/packed_to_padded.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/perspective_n_points.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/points_alignment.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/points_normals.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/points_to_volumes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/sample_farthest_points.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/sample_points_from_meshes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/subdivide_meshes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/ops/vert_align.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops
copying pytorch3d/renderer/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/blending.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/camera_conversions.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/camera_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/cameras.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/compositing.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/fisheyecameras.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/lighting.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/materials.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/splatter_blend.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/renderer/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer
copying pytorch3d/structures/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures
copying pytorch3d/structures/meshes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures
copying pytorch3d/structures/pointclouds.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures
copying pytorch3d/structures/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures
copying pytorch3d/structures/volumes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures
copying pytorch3d/transforms/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms
copying pytorch3d/transforms/math.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms
copying pytorch3d/transforms/rotation_conversions.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms
copying pytorch3d/transforms/se3.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms
copying pytorch3d/transforms/so3.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms
copying pytorch3d/transforms/transform3d.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms
copying pytorch3d/utils/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils
copying pytorch3d/utils/camera_conversions.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils
copying pytorch3d/utils/checkerboard.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils
copying pytorch3d/utils/ico_sphere.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils
copying pytorch3d/utils/torus.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils
copying pytorch3d/vis/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/vis
copying pytorch3d/vis/plotly_vis.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/vis
copying pytorch3d/vis/texture_vis.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/vis
copying pytorch3d/common/workaround/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common/workaround
copying pytorch3d/common/workaround/symeig3x3.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common/workaround
copying pytorch3d/common/workaround/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common/workaround
copying pytorch3d/datasets/r2n2/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2
copying pytorch3d/datasets/r2n2/r2n2.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2
copying pytorch3d/datasets/r2n2/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2
copying pytorch3d/datasets/shapenet/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet
copying pytorch3d/datasets/shapenet/shapenet_core.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet
copying pytorch3d/implicitron/dataset/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/blender_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/data_loader_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/data_source.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/dataset_base.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/frame_data.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/json_index_dataset.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/json_index_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/json_index_dataset_map_provider_v2.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/llff_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/load_blender.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/load_llff.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/orm_types.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/rendered_mesh_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/scene_batch_sampler.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/single_sequence_dataset.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/sql_dataset.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/sql_dataset_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/train_eval_data_loader_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/types.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/dataset/visualize.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset
copying pytorch3d/implicitron/evaluation/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/evaluation
copying pytorch3d/implicitron/evaluation/evaluate_new_view_synthesis.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/evaluation
copying pytorch3d/implicitron/evaluation/evaluator.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/evaluation
copying pytorch3d/implicitron/models/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models
copying pytorch3d/implicitron/models/base_model.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models
copying pytorch3d/implicitron/models/generic_model.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models
copying pytorch3d/implicitron/models/metrics.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models
copying pytorch3d/implicitron/models/model_dbir.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models
copying pytorch3d/implicitron/models/overfit_model.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models
copying pytorch3d/implicitron/models/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models
copying pytorch3d/implicitron/third_party/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/third_party
copying pytorch3d/implicitron/third_party/hyperlayers.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/third_party
copying pytorch3d/implicitron/third_party/pytorch_prototyping.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/third_party
copying pytorch3d/implicitron/tools/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/camera_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/circle_fitting.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/config.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/depth_cleanup.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/eval_video_trajectory.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/image_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/metric_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/model_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/point_cloud_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/rasterize_mc.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/stats.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/video_writer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/tools/vis_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools
copying pytorch3d/implicitron/models/feature_extractor/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/feature_extractor
copying pytorch3d/implicitron/models/feature_extractor/feature_extractor.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/feature_extractor
copying pytorch3d/implicitron/models/feature_extractor/resnet_feature_extractor.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/feature_extractor
copying pytorch3d/implicitron/models/global_encoder/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/global_encoder
copying pytorch3d/implicitron/models/global_encoder/autodecoder.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/global_encoder
copying pytorch3d/implicitron/models/global_encoder/global_encoder.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/global_encoder
copying pytorch3d/implicitron/models/implicit_function/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/implicit_function/base.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/implicit_function/decoding_functions.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/implicit_function/idr_feature_field.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/implicit_function/neural_radiance_field.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/implicit_function/scene_representation_networks.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/implicit_function/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/implicit_function/voxel_grid.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/implicit_function/voxel_grid_implicit_function.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function
copying pytorch3d/implicitron/models/renderer/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/base.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/lstm_renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/multipass_ea.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/ray_point_refiner.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/ray_sampler.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/ray_tracing.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/raymarcher.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/rgb_net.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/renderer/sdf_renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer
copying pytorch3d/implicitron/models/view_pooler/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler
copying pytorch3d/implicitron/models/view_pooler/feature_aggregator.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler
copying pytorch3d/implicitron/models/view_pooler/view_pooler.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler
copying pytorch3d/implicitron/models/view_pooler/view_sampler.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler
copying pytorch3d/implicitron/models/visualization/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/visualization
copying pytorch3d/implicitron/models/visualization/render_flyaround.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/visualization
copying pytorch3d/renderer/implicit/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/harmonic_embedding.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/raymarching.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/raysampling.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/sample_pdf.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit
copying pytorch3d/renderer/mesh/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/clip.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/rasterize_meshes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/rasterizer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/shader.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/shading.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/textures.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh
copying pytorch3d/renderer/opengl/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/opengl
copying pytorch3d/renderer/opengl/opengl_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/opengl
copying pytorch3d/renderer/opengl/rasterizer_opengl.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/opengl
copying pytorch3d/renderer/points/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points
copying pytorch3d/renderer/points/compositor.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points
copying pytorch3d/renderer/points/rasterize_points.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points
copying pytorch3d/renderer/points/rasterizer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points
copying pytorch3d/renderer/points/renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points
copying pytorch3d/renderer/points/pulsar/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points/pulsar
copying pytorch3d/renderer/points/pulsar/renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points/pulsar
copying pytorch3d/renderer/points/pulsar/unified.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points/pulsar
copying projects/implicitron_trainer/__init__.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron_trainer
copying projects/implicitron_trainer/experiment.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron_trainer
copying projects/implicitron_trainer/visualize_reconstruction.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron_trainer
copying pytorch3d/datasets/r2n2/r2n2_synset_dict.json -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2
copying pytorch3d/datasets/shapenet/shapenet_synset_dict_v1.json -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet
copying pytorch3d/datasets/shapenet/shapenet_synset_dict_v2.json -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet
running build_ext
building 'pytorch3d._C' extension
Emitting ninja build file /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.8.2
g++ -pthread -B /home/my/anaconda3/envs/motion/compiler_compat -shared -Wl,-rpath,/home/my/anaconda3/envs/motion/lib -Wl,-rpath-link,/home/my/anaconda3/envs/motion/lib -L/home/my/anaconda3/envs/motion/lib -Wl,-rpath,/home/my/anaconda3/envs/motion/lib -Wl,-rpath-link,/home/my/anaconda3/envs/motion/lib -L/home/my/anaconda3/envs/motion/lib /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/ball_query/ball_query_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/ext.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/gather_scatter/gather_scatter_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/knn/knn_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/marching_cubes/marching_cubes_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/point_mesh/point_mesh_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/points_to_volumes/points_to_volumes_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.backward.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.backward_dbg.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.construct.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.destruct.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.fill_bg.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.forward.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.norm_cam_gradients.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.norm_sphere_gradients.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.render.cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/pytorch/camera.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/pytorch/renderer.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/pytorch/tensor_util.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/pytorch/util.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/warnings.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/sample_farthest_points/sample_farthest_points_cpu.o /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/sample_pdf/sample_pdf_cpu.o -L/home/my/anaconda3/envs/motion/lib/python3.10/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-310/pytorch3d/_C.cpython-310-x86_64-linux-gnu.so
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/ball_query/ball_query_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/ext.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/gather_scatter/gather_scatter_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/knn/knn_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/marching_cubes/marching_cubes_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/point_mesh/point_mesh_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/points_to_volumes/points_to_volumes_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.backward.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.backward_dbg.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.construct.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.destruct.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.fill_bg.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.forward.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.norm_cam_gradients.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.norm_sphere_gradients.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.render.cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/pytorch/camera.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/pytorch/renderer.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/pytorch/tensor_util.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/pytorch/util.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/warnings.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/sample_farthest_points/sample_farthest_points_cpu.o: No such file or directory
g++: error: /home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/sample_pdf/sample_pdf_cpu.o: No such file or directory
error: command '/home/my/lib/gcc-9.5.0/my-install/bin/g++' failed with exit code 1

Instructions To Reproduce the Issue:

My enviroment is: pytorch 2.3.1 python 3.10 cuda 12.1 gcc 9.5.0

The issue occurs with both 'Install from a local clone' and 'install from GitHub' methods.

bottler commented 4 months ago

These paths look very weird. They can't be right. Have you got a /home/my/Workspace missing the initial / somewhere?

/home/my/Workspace/motion/pytorch3d/build/temp.linux-x86_64-cpython-310/home/my/Workspace/motion/pytorch3d/pytorch3d/csrc/pulsar/host/renderer.render.cpu.o: No such file or directory

(You should probably set CUDA_HOME.)

ByChelsea commented 4 months ago

Thanks for your prompt reply! I discovered that this issue arose due to a mistake I encountered earlier. After resolving the previous issue with this method, it resulted in the inability to generate the .o files...

bottler commented 4 months ago

Is everything now resolved?

ByChelsea commented 4 months ago

Yes, this issue 'Command '['ninja', '-v']' returned non-zero exit status 1' was, in fact, caused by insufficient memory. Everything works well now~ Thanks again!