Image-to-Image
Safetensors
English
computer-vision
surface-normal-estimation
monocular-geometry-estimation
transparent-objects
rectified-flow
flux
lora
Instructions to use Longxiang-ai/TransNormal-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Inference
- Notebooks
- Google Colab
- Kaggle
Document unified inference with user-provided images
Browse files
README.md
CHANGED
|
@@ -69,14 +69,15 @@ cd TransNormal-2
|
|
| 69 |
python -m venv .venv
|
| 70 |
source .venv/bin/activate
|
| 71 |
python -m pip install -r requirements.txt
|
| 72 |
-
python inference.py --
|
| 73 |
```
|
| 74 |
|
|
|
|
| 75 |
Use Python 3.10 and a CUDA GPU with BF16 support. Follow the base model's access
|
| 76 |
instructions before its first download; run `hf auth login` if authentication is
|
| 77 |
required. The task weights in this repository download without authentication.
|
| 78 |
-
For ordinary scenes, use the default `--domain opaque`.
|
| 79 |
-
|
| 80 |
|
| 81 |
This repository contains the weights and configuration. The custom TransNormal-2
|
| 82 |
pipeline is provided in the GitHub repository; a generic Diffusers image-generation
|
|
|
|
| 69 |
python -m venv .venv
|
| 70 |
source .venv/bin/activate
|
| 71 |
python -m pip install -r requirements.txt
|
| 72 |
+
python inference.py --input path/to/transparent_image.jpg --domain transparent --output_dir outputs/glass --save_npy
|
| 73 |
```
|
| 74 |
|
| 75 |
+
Replace `path/to/transparent_image.jpg` with your own image.
|
| 76 |
Use Python 3.10 and a CUDA GPU with BF16 support. Follow the base model's access
|
| 77 |
instructions before its first download; run `hf auth login` if authentication is
|
| 78 |
required. The task weights in this repository download without authentication.
|
| 79 |
+
For ordinary scenes, use the default `--domain opaque`. The same `--input` option
|
| 80 |
+
also accepts a folder of images. See GitHub for CPU offload and the Python API.
|
| 81 |
|
| 82 |
This repository contains the weights and configuration. The custom TransNormal-2
|
| 83 |
pipeline is provided in the GitHub repository; a generic Diffusers image-generation
|