Skip to content

Latest commit

 

History

History
executable file
·
42 lines (37 loc) · 1.49 KB

File metadata and controls

executable file
·
42 lines (37 loc) · 1.49 KB

Installation

Tested on a computer with Ubuntu 24.04 and a NVIDIA GeForce RTX 4090 Laptop GPU.

Software: Python 3.12.3, CUDA 12.8, Pytorch 2.8, torchvision 0.23.0.

Test date: 17-12-2025.

Install Python virtual environment for handling of custom software dependencies

  • sudo apt install python3-venv -y
  • python3 -m venv ~/prft

Download the code repository:

Install the custom software packages (in python virtual environment):

[build-system]
requires = ["setuptools>=45.0.0", "torch==2.8"]
build-backend = "setuptools.build_meta"
  • save and close
  • replace the install_requires line in setup.py to this line:
install_requires=["torch==2.8"],
  • save and close
  • pip3 install --no-deps --verbose .
  • cd to root directory (otherwise it throws a NoneType object origin error)
  • python3 -c "import torch_fpsample; print('torch_fpsample import OK')"