This repository is a fork of the original PartUV project: https://github.com/EricWang12/PartUV
It provides a Windows port of the tool to simplify installation and usage on Windows systems.
Before installing, make sure the following dependencies are installed:
Download and install: https://www.python.org/ftp/python/3.10.9/python-3.10.9-amd64.exe
Download and install: https://developer.download.nvidia.com/compute/cuda/12.8.0/local_installers/cuda_12.8.0_571.96_windows.exe
Clone the repository:
git clone https://github.com/qornflex/PartUV.gitThen run the setup script:
setup.batThe setup script installs the required Python dependencies and configures the environment to run PartUV on Windows.
An example is provided to demonstrate how to run the tool.
You can start the example by running:
run.batThe run.bat file activates the virtual environment and launches the script using a sample mesh.
You can modify the file to process other meshes by changing the MESH_PATH variable or adjusting the parameters.
Example run.bat:
@echo off
call .venv\Scripts\activate
set OCIO=
set MESH_PATH="demo/meshes/table.obj"
set OUTPUT_PATH="output"
python run.py --mesh_path %MESH_PATH% ^
--pack_method blender ^
--output_path %OUTPUT_PATH% ^
--save_visuals ^
--num_atlas 1MESH_PATHspecifies the input mesh.OUTPUT_PATHdefines where the results will be written.--pack_method blenderuses Blender's UV packing method.--save_visualsoutputs visualization images.--num_atlasdefines how many atlases will be generated.
You can replace the mesh path with your own .obj files to process different models.
By default, the API reads all hyperparameters from config/config.yaml.
See config.md for more details on hyperparameters and usage examples for customizing them to suit your needs.
Original project: https://github.com/EricWang12/PartUV