Skip to content

Night1099/PBRHeightBatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

I have Continued this project here https://huggingface.co/NightRaven109/PBRFusion

PBRHeightBatch

Prerequisites

Python
Git

Install

  1. Install Cuda Toolkit 11.8.

  2. Open Terminal in folder you want to install into (Shift Rightclick in file explorer)
    Run

git clone https://github.com/Night1099/PBRHeightBatch
cd PBRHeightBatch
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt

Running

Example command

python height.py --input_dir input --output_dir output

extra args _

("--seed", type=int, default=random.randint(0, 100000), help="Seed for inference")
("--input_dir", type=str, required=True, help="Directory containing input images")
("--output_dir", type=str, required=True, help="Directory to save output images")
("--append", type=str, default='', help="String to append to the end of original file's basename")
("--resolution", type=int, nargs=2, default=None, help="Custom resolution (width, height). If provided, no resizing will be done.")
("--keep_res_resize", action="store_true", help="If set, the output image will be resized to the original input resolution.")

By default the output file will be same name as input but with --append you can add any string onto end of name

ie
--append _height
will turn panel.png into panel_height.png

Portable Instructions

All Binaries Included, extra model files it downloads will download into portable package /_internal/data

Download from Huggingface Github only alows 2gb files max

to run

Open terminal in directory with height.exe

Example Command

.\height.exe --input_dir input --output_dir output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages