Longxiang-ai commited on
Commit
c670e45
·
verified ·
1 Parent(s): 6816c16

Document unified inference with user-provided images

Browse files
Files changed (1) hide show
  1. README.md +4 -3
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 --image examples/input/glass_vase.jpg --domain transparent --output_dir outputs/glass --save_npy
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`. See GitHub for batch
79
- inference, CPU offload, and the Python API.
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