This repository contains NiRNE, the image-to-normal estimator of Hi3DGen
Please run following commands to build package:
git clone https://github.com/lzt02/NiRNE.git
cd NiRNE
pip install -r requirements.txt
python infer.py --input_dir data --output_dir output
To use the StableNormal pipeline, you can instantiate the model and apply it to an image as follows:
import torch
from PIL import Image
# Load an image
input_image = Image.open("path/to/your/image.jpg")
# Create predictor instance
predictor = torch.hub.load("lzt02/NiRNE", "NiRNE", trust_repo=True)
# Apply the model to the image
normal_image = predictor(input_image)
# Save or display the result
normal_image.save("output/normal_map.png")
weights dir:predictor = torch.hub.load("lzt02/NiRNE", "NiRNE", trust_repo=True, local_cache_dir='./weights')
If you find this work helpful, please consider citing our paper:
@article{ye2025hi3dgen,
title={Hi3DGen: High-fidelity 3D Geometry Generation from Images via Normal Bridging},
author={Ye, Chongjie and Wu, Yushuang and Lu, Ziteng and Chang, Jiahao and Guo, Xiaoyang and Zhou, Jiaqing and Zhao, Hao and Han, Xiaoguang},
journal={arXiv preprint arXiv:2503.22236},
year={2025}
}
5 commits
Python
100.0%
This repository contains NiRNE, the image-to-normal estimator of Hi3DGen
Please run following commands to build package:
git clone https://github.com/lzt02/NiRNE.git
cd NiRNE
pip install -r requirements.txt
python infer.py --input_dir data --output_dir output
To use the StableNormal pipeline, you can instantiate the model and apply it to an image as follows:
import torch
from PIL import Image
# Load an image
input_image = Image.open("path/to/your/image.jpg")
# Create predictor instance
predictor = torch.hub.load("lzt02/NiRNE", "NiRNE", trust_repo=True)
# Apply the model to the image
normal_image = predictor(input_image)
# Save or display the result
normal_image.save("output/normal_map.png")
weights dir:predictor = torch.hub.load("lzt02/NiRNE", "NiRNE", trust_repo=True, local_cache_dir='./weights')
If you find this work helpful, please consider citing our paper:
@article{ye2025hi3dgen,
title={Hi3DGen: High-fidelity 3D Geometry Generation from Images via Normal Bridging},
author={Ye, Chongjie and Wu, Yushuang and Lu, Ziteng and Chang, Jiahao and Guo, Xiaoyang and Zhou, Jiaqing and Zhao, Hao and Han, Xiaoguang},
journal={arXiv preprint arXiv:2503.22236},
year={2025}
}
5 commits
Python
100.0%