|
Download README.md from crispin81/rapidone-gpu-remove: direct link, hf CLI and curl.
- Browser
- Download file 2.84 kB
-
https://huggingface.co/crispin81/rapidone-gpu-remove/resolve/main/README.md
- Command line
-
hf download hf://crispin81/rapidone-gpu-remove/README.md
-
curl -L -o README.md https://huggingface.co/crispin81/rapidone-gpu-remove/resolve/main/README.md
2.84 kB
| license: apache-2.0 | |
| base_model: | |
| - black-forest-labs/FLUX.2-klein-4B | |
| - fal/flux-2-klein-4B-object-remove-lora | |
| pipeline_tag: image-to-image | |
| library_name: onnx | |
| tags: | |
| - onnx | |
| - object-removal | |
| - inpainting | |
| - flux | |
| # RapidOne GPU Remove (FLUX.2 Klein 4B, ONNX) | |
| The model behind the **GPU (Smarter)** Remove tool in [RapidOne](https://github.com/crispin81/RapidOne), a RAW photo | |
| editor. RapidOne downloads these files the first time GPU (Smarter) is chosen and runs them with ONNX Runtime on the | |
| graphics card (WebGPU, DirectML or CoreML). They are not meant to be used on their own. | |
| ## What it is | |
| - [FLUX.2 [klein] 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) by Black Forest Labs (Apache-2.0), | |
| - with fal's [object-remove LoRA](https://huggingface.co/fal/flux-2-klein-4B-object-remove-lora) (Apache-2.0) fused in at | |
| scale 1.0, | |
| - exported to ONNX. | |
| ## Changes from the originals | |
| - **Transformer** (`transformer.onnx` + `transformer.onnx.data`): the LoRA fused into the weights; exported to ONNX | |
| with fp16 maths; MatMul weights quantised to 8 bits (`MatMulNBits`); attention fused into `com.microsoft` | |
| `MultiHeadAttention`. | |
| - **VAE** (`vae_encoder.onnx`, `vae_decoder.onnx`): the FLUX.2 autoencoder exported to ONNX in fp16. | |
| - **`remove_prompt.f32`**: the text encoder's output (512 x 7680, float32, little-endian) for one fixed instruction, so | |
| no text encoder is needed at run time: | |
| > Remove the flat grey shape completely and show what is behind it: continue the surrounding scene naturally into | |
| > that space, matching its light, colour, perspective, focus and grain, so it looks as if nothing was ever there. Do | |
| > not add any new objects, people, signs or text. Keep everything else in the image exactly the same, with the same | |
| > framing. | |
| The area to remove is painted flat grey in the reference picture, and the model is sampled for 4 flow-matching steps | |
| (as diffusers' `Flux2KleinPipeline`). | |
| ## Files | |
| | File | Bytes | SHA-256 | | |
| |---|---:|---| | |
| | transformer.onnx | 4,081,540 | 2f773423fe08fcfaf82c6ca80fcd03952e1d4097d0ed288d1129e52726de0071 | | |
| | transformer.onnx.data | 4,162,222,080 | f5a217f9073fee85f18f62665f33cc35e88f00a861b8717ea4f22375a3a22b02 | | |
| | vae_encoder.onnx | 68,956,547 | dde2ce543c578b91c35e8dfbb07839b8c4cac161d25829319ccd409fc826ce5c | | |
| | vae_decoder.onnx | 99,358,749 | 4431cd8129e1bd9636e43db0f07735648fe0f73f42fe0c75b06ffb7727e33a72 | | |
| | remove_prompt.f32 | 15,728,640 | 46ef6396bd4a9c9d6d006ebefc757c83406f85e0b58ff338ddc651ad1d8e7687 | | |
| ## Licence and credits | |
| Apache License 2.0 (see `LICENSE`), as the models it is made from. | |
| - FLUX.2 [klein] 4B: Copyright Black Forest Labs, Apache-2.0. | |
| - Object-remove LoRA: Copyright fal, Apache-2.0. | |
| - The conversion above (LoRA fusion, ONNX export, quantisation, the precomputed instruction) by Chris Cork for RapidOne. | |