This repository was archived by the owner on Nov 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +50
-4
lines changed Expand file tree Collapse file tree 6 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 1- /*
1+ * /*
22/result_ * .png
Original file line number Diff line number Diff line change 1+ # OnnxStack.Converter
2+
3+ ## Requirements
4+ ``` bash
5+ pip install onnxruntime-directml
6+ pip install olive-ai[directml]
7+ python -m pip install -r requirements.txt
8+ ```
9+
10+ ## Usage
11+ ``` bash
12+ convert.py --model_input " D:\Models\LCM_Dreamshaper_v7" --controlnet
13+ ```
14+
15+ ` --model_input ` - Safetensor model to convert
16+
17+ ` --model_output ` - Output for converted ONNX model
18+
19+ ` --controlnet ` - Create a ControlNet enabled Unet model
20+
21+ ` --clean ` - Clear convert/optimize model cache
22+
23+ ` --tempDir ` - Directory for temp Olive files
Original file line number Diff line number Diff line change 1- /*
1+ * /*
22/result_ * .png
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ python -m pip install -r requirements.txt
99
1010## Usage
1111``` bash
12- convert.py --optimize --model_input ' ..\stable-cascade' --model_output ' ..\converted '
12+ convert.py --optimize --model_input ' ..\stable-cascade' --image_encoder
1313```
1414` --optimize ` - Run the model optimization
1515
Original file line number Diff line number Diff line change 1- /*
1+ * /*
22/result_ * .png
Original file line number Diff line number Diff line change 1+ # OnnxStack.Converter
2+
3+ ## Requirements
4+ ``` bash
5+ pip install onnxruntime-directml
6+ pip install olive-ai[directml]
7+ python -m pip install -r requirements.txt
8+ ```
9+
10+ ## Usage
11+ ``` bash
12+ convert.py --model_input " D:\Models\stable-diffusion-v1-5" --controlnet
13+ ```
14+
15+ ` --model_input ` - Safetensor model to convert
16+
17+ ` --model_output ` - Output for converted ONNX model
18+
19+ ` --controlnet ` - Create a ControlNet enabled Unet model
20+
21+ ` --clean ` - Clear convert/optimize model cache
22+
23+ ` --tempDir ` - Directory for temp Olive files
You can’t perform that action at this time.
0 commit comments