facebookresearch / pytorch3d

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

Win11: The detected CUDA version (12.0) mismatches the version that was used to compile PyTorch (11.7). #1786

Closed nitinmukesh closed 3 months ago

nitinmukesh commented 7 months ago

Hello,

I am trying to install on Windows 11.

(venv) C:\sd\Real3DPortrait>python -c "import torch; print(torch.__version__)"
2.0.1+cu117

`

(venv) C:\sd\Real3DPortrait>pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable" Collecting git+https://github.com/facebookresearch/pytorch3d.git@stable Cloning https://github.com/facebookresearch/pytorch3d.git (to revision stable) to c:\users\nitin\appdata\local\temp\pip-req-build-6d9yrw_h Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/pytorch3d.git 'C:\Users\nitin\AppData\Local\Temp\pip-req-build-6d9yrw_h' Running command git checkout -q f34104cf6ebefacd7b7e07955ee7aaa823e616ac Resolved https://github.com/facebookresearch/pytorch3d.git to commit f34104cf6ebefacd7b7e07955ee7aaa823e616ac Preparing metadata (setup.py) ... done Requirement already satisfied: fvcore in c:\sd\real3dportrait\venv\lib\site-packages (from pytorch3d==0.7.6) (0.1.5.post20221221) Requirement already satisfied: iopath in c:\sd\real3dportrait\venv\lib\site-packages (from pytorch3d==0.7.6) (0.1.10) Requirement already satisfied: numpy in c:\sd\real3dportrait\venv\lib\site-packages (from fvcore->pytorch3d==0.7.6) (1.26.4) Requirement already satisfied: yacs>=0.1.6 in c:\sd\real3dportrait\venv\lib\site-packages (from fvcore->pytorch3d==0.7.6) (0.1.8) Requirement already satisfied: pyyaml>=5.1 in c:\sd\real3dportrait\venv\lib\site-packages (from fvcore->pytorch3d==0.7.6) (6.0.1) Requirement already satisfied: tqdm in c:\sd\real3dportrait\venv\lib\site-packages (from fvcore->pytorch3d==0.7.6) (4.66.2) Requirement already satisfied: termcolor>=1.1 in c:\sd\real3dportrait\venv\lib\site-packages (from fvcore->pytorch3d==0.7.6) (2.4.0) Requirement already satisfied: Pillow in c:\sd\real3dportrait\venv\lib\site-packages (from fvcore->pytorch3d==0.7.6) (10.3.0) Requirement already satisfied: tabulate in c:\sd\real3dportrait\venv\lib\site-packages (from fvcore->pytorch3d==0.7.6) (0.9.0) Requirement already satisfied: typing-extensions in c:\sd\real3dportrait\venv\lib\site-packages (from iopath->pytorch3d==0.7.6) (4.11.0) Requirement already satisfied: portalocker in c:\sd\real3dportrait\venv\lib\site-packages (from iopath->pytorch3d==0.7.6) (2.8.2) Requirement already satisfied: pywin32>=226 in c:\sd\real3dportrait\venv\lib\site-packages (from portalocker->iopath->pytorch3d==0.7.6) (306) Requirement already satisfied: colorama in c:\sd\real3dportrait\venv\lib\site-packages (from tqdm->fvcore->pytorch3d==0.7.6) (0.4.6) Building wheels for collected packages: pytorch3d Building wheel for pytorch3d (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [288 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\projects copying projects__init__.py -> build\lib.win-amd64-cpython-310\projects creating build\lib.win-amd64-cpython-310\pytorch3d copying pytorch3d__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d creating build\lib.win-amd64-cpython-310\pytorch3d\common copying pytorch3d\common\compat.py -> build\lib.win-amd64-cpython-310\pytorch3d\common copying pytorch3d\common\datatypes.py -> build\lib.win-amd64-cpython-310\pytorch3d\common copying pytorch3d\common\linear_with_repeat.py -> build\lib.win-amd64-cpython-310\pytorch3d\common copying pytorch3d\common__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\common creating build\lib.win-amd64-cpython-310\pytorch3d\datasets copying pytorch3d\datasets\shapenet_base.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets copying pytorch3d\datasets\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets copying pytorch3d\datasets__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron copying pytorch3d\implicitron\eval_demo.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron copying pytorch3d\implicitron__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron creating build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io\experimental_gltf_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io\mtl_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io\obj_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io\off_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io\pluggable.py -> build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io\pluggable_formats.py -> build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io\ply_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\io copying pytorch3d\io__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\io creating build\lib.win-amd64-cpython-310\pytorch3d\loss copying pytorch3d\loss\chamfer.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss copying pytorch3d\loss\mesh_edge_loss.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss copying pytorch3d\loss\mesh_laplacian_smoothing.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss copying pytorch3d\loss\mesh_normal_consistency.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss copying pytorch3d\loss\point_mesh_distance.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss copying pytorch3d\loss__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss creating build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\ball_query.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\cameras_alignment.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\cubify.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\graph_conv.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\interp_face_attrs.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\iou_box3d.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\knn.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\laplacian_matrices.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\marching_cubes.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\marching_cubes_data.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\mesh_face_areas_normals.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\mesh_filtering.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\packed_to_padded.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\perspective_n_points.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\points_alignment.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\points_normals.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\points_to_volumes.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\sample_farthest_points.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\sample_points_from_meshes.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\subdivide_meshes.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops\vert_align.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops copying pytorch3d\ops__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops creating build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\blending.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\cameras.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\camera_conversions.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\camera_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\compositing.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\fisheyecameras.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\lighting.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\materials.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\splatter_blend.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer copying pytorch3d\renderer__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer creating build\lib.win-amd64-cpython-310\pytorch3d\structures copying pytorch3d\structures\meshes.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures copying pytorch3d\structures\pointclouds.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures copying pytorch3d\structures\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures copying pytorch3d\structures\volumes.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures copying pytorch3d\structures__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures creating build\lib.win-amd64-cpython-310\pytorch3d\transforms copying pytorch3d\transforms\math.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms copying pytorch3d\transforms\rotation_conversions.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms copying pytorch3d\transforms\se3.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms copying pytorch3d\transforms\so3.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms copying pytorch3d\transforms\transform3d.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms copying pytorch3d\transforms__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms creating build\lib.win-amd64-cpython-310\pytorch3d\utils copying pytorch3d\utils\camera_conversions.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils copying pytorch3d\utils\checkerboard.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils copying pytorch3d\utils\ico_sphere.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils copying pytorch3d\utils\torus.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils copying pytorch3d\utils__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils creating build\lib.win-amd64-cpython-310\pytorch3d\vis copying pytorch3d\vis\plotly_vis.py -> build\lib.win-amd64-cpython-310\pytorch3d\vis copying pytorch3d\vis\texture_vis.py -> build\lib.win-amd64-cpython-310\pytorch3d\vis copying pytorch3d\vis__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\vis creating build\lib.win-amd64-cpython-310\pytorch3d\common\workaround copying pytorch3d\common\workaround\symeig3x3.py -> build\lib.win-amd64-cpython-310\pytorch3d\common\workaround copying pytorch3d\common\workaround\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\common\workaround copying pytorch3d\common\workaround__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\common\workaround creating build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2 copying pytorch3d\datasets\r2n2\r2n2.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2 copying pytorch3d\datasets\r2n2\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2 copying pytorch3d\datasets\r2n2__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2 creating build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet copying pytorch3d\datasets\shapenet\shapenet_core.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet copying pytorch3d\datasets\shapenet__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\blender_dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\dataset_base.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\data_loader_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\data_source.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\frame_data.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\json_index_dataset.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\json_index_dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\json_index_dataset_map_provider_v2.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\llff_dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\load_blender.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\load_llff.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\orm_types.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\rendered_mesh_dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\scene_batch_sampler.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\single_sequence_dataset.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\sql_dataset.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\sql_dataset_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\train_eval_data_loader_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\types.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset\visualize.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset copying pytorch3d\implicitron\dataset__init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\evaluation copying pytorch3d\implicitron\evaluation\evaluate_new_view_synthesis.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\evaluation copying pytorch3d\implicitron\evaluation\evaluator.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\evaluation copying pytorch3d\implicitron\evaluation__init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\evaluation creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models copying pytorch3d\implicitron\models\base_model.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models copying pytorch3d\implicitron\models\generic_model.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models copying pytorch3d\implicitron\models\metrics.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models copying pytorch3d\implicitron\models\model_dbir.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models copying pytorch3d\implicitron\models\overfit_model.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models copying pytorch3d\implicitron\models\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models copying pytorch3d\implicitron\models__init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\third_party copying pytorch3d\implicitron\third_party\hyperlayers.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\third_party copying pytorch3d\implicitron\third_party\pytorch_prototyping.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\third_party copying pytorch3d\implicitron\third_party__init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\third_party creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\camera_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\circle_fitting.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\config.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\depth_cleanup.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\eval_video_trajectory.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\image_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\metric_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\model_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\point_cloud_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\rasterize_mc.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\stats.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\video_writer.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools\vis_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools copying pytorch3d\implicitron\tools__init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\feature_extractor copying pytorch3d\implicitron\models\feature_extractor\feature_extractor.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\feature_extractor copying pytorch3d\implicitron\models\feature_extractor\resnet_feature_extractor.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\feature_extractor copying pytorch3d\implicitron\models\feature_extractor__init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\feature_extractor creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\global_encoder copying pytorch3d\implicitron\models\global_encoder\autodecoder.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\global_encoder copying pytorch3d\implicitron\models\global_encoder\global_encoder.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\global_encoder copying pytorch3d\implicitron\models\global_encoder__init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\global_encoder creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\base.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\decoding_functions.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\idr_feature_field.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\neural_radiance_field.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\scene_representation_networks.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\voxel_grid.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\voxel_grid_implicit_function.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function copying pytorch3d\implicitron\models\implicit_function\init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\base.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\lstm_renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\multipass_ea.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\raymarcher.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\ray_point_refiner.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\ray_sampler.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\ray_tracing.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\rgb_net.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\sdf_renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer copying pytorch3d\implicitron\models\renderer\init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler copying pytorch3d\implicitron\models\view_pooler\feature_aggregator.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler copying pytorch3d\implicitron\models\view_pooler\view_pooler.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler copying pytorch3d\implicitron\models\view_pooler\view_sampler.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler copying pytorch3d\implicitron\models\view_pooler\init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\visualization copying pytorch3d\implicitron\models\visualization\render_flyaround.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\visualization copying pytorch3d\implicitron\models\visualization\init.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\visualization creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit copying pytorch3d\renderer\implicit\harmonic_embedding.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit copying pytorch3d\renderer\implicit\raymarching.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit copying pytorch3d\renderer\implicit\raysampling.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit copying pytorch3d\renderer\implicit\renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit copying pytorch3d\renderer\implicit\sample_pdf.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit copying pytorch3d\renderer\implicit\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit copying pytorch3d\renderer\implicit\init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\clip.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\rasterizer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\rasterize_meshes.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\shader.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\shading.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\textures.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh copying pytorch3d\renderer\mesh\init.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\opengl copying pytorch3d\renderer\opengl\opengl_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\opengl copying pytorch3d\renderer\opengl\rasterizer_opengl.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\opengl copying pytorch3d\renderer\opengl\init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\opengl creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\points copying pytorch3d\renderer\points\compositor.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points copying pytorch3d\renderer\points\rasterizer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points copying pytorch3d\renderer\points\rasterize_points.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points copying pytorch3d\renderer\points\renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points copying pytorch3d\renderer\points\init.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\points\pulsar copying pytorch3d\renderer\points\pulsar\renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points\pulsar copying pytorch3d\renderer\points\pulsar\unified.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points\pulsar copying pytorch3d\renderer\points\pulsar\init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points\pulsar creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron_trainer copying projects\implicitron_trainer\experiment.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron_trainer copying projects\implicitron_trainer\visualize_reconstruction.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron_trainer copying projects\implicitron_trainer\init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron_trainer copying pytorch3d\datasets\r2n2\r2n2_synset_dict.json -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2 copying pytorch3d\datasets\shapenet\shapenet_synset_dict_v1.json -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet copying pytorch3d\datasets\shapenet\shapenet_synset_dict_v2.json -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet running build_ext Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\nitin\AppData\Local\Temp\pip-req-build-6d9yrw_h\setup.py", line 144, in setup( File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools\init__.py", line 87, in setup return distutils.core.setup(**attrs) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\core.py", line 177, in setup return run_commands(dist) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\core.py", line 193, in run_commands dist.run_commands() File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\dist.py", line 968, in run_commands self.run_command(cmd) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools\dist.py", line 1217, in run_command super().run_command(command) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command cmd_obj.run() File "C:\sd\Real3DPortrait\venv\lib\site-packages\wheel\bdist_wheel.py", line 368, in run self.run_command("build") File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\cmd.py", line 317, in run_command self.distribution.run_command(command) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools\dist.py", line 1217, in run_command super().run_command(command) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command cmd_obj.run() File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools\command\build.py", line 24, in run super().run() File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\command\build.py", line 131, in run self.run_command(cmd_name) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\cmd.py", line 317, in run_command self.distribution.run_command(command) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools\dist.py", line 1217, in run_command super().run_command(command) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command cmd_obj.run() File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools\command\build_ext.py", line 79, in run _build_ext.run(self) File "C:\sd\Real3DPortrait\venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 339, in run self.build_extensions() File "C:\sd\Real3DPortrait\venv\lib\site-packages\torch\utils\cpp_extension.py", line 499, in build_extensions _check_cuda_version(compiler_name, compiler_version) File "C:\sd\Real3DPortrait\venv\lib\site-packages\torch\utils\cpp_extension.py", line 387, in _check_cuda_version raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda)) RuntimeError: The detected CUDA version (12.0) mismatches the version that was used to compile PyTorch (11.7). Please make sure to use the same CUDA versions.

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pytorch3d Running setup.py clean for pytorch3d Failed to build pytorch3d ERROR: Could not build wheels for pytorch3d, which is required to install pyproject.toml-based projects

`

(venv) C:\sd\Real3DPortrait>pip list
Package            Version
------------------ ------------------
certifi            2024.2.2
charset-normalizer 3.3.2
colorama           0.4.6
ffmpeg-python      0.2.0
filelock           3.13.4
fsspec             2024.3.1
future             1.0.0
fvcore             0.1.5.post20221221
idna               3.7
iopath             0.1.10
Jinja2             3.1.3
MarkupSafe         2.1.5
mpmath             1.3.0
networkx           3.3
numpy              1.26.4
pillow             10.3.0
pip                22.2.1
portalocker        2.8.2
pywin32            306
PyYAML             6.0.1
requests           2.31.0
setuptools         63.2.0
sympy              1.12
tabulate           0.9.0
termcolor          2.4.0
torch              2.0.1+cu117
torchaudio         2.0.2+cu117
torchvision        0.15.2+cu117
tqdm               4.66.2
typing_extensions  4.11.0
urllib3            2.2.1
yacs               0.1.8
bottler commented 6 months ago

I expect pytorch is not installed correctly with cuda in this environment (e.g. does torch.zeros(2, device="cuda") work?). In particular the wrong cudatoolkit is being found, and I don't know if that is in the environment or somewhere else on the machine.

I recommend using conda if you aren't already, and building new environment, and if you still have problems you can paste conda list here as well as pip list.