Comments (5)
If you specify <lora:some_model:0.6>
on a checkpoint for which you also have a TensorRT compiled unet that you produced with some_model
, then you'll effectively get <lora:some_model:1.6>
.
The initial fusing of a lora weights with the checkpoints at TensorRT compilation (generation) time adds some_model
at strength 1.0 already to the checkpoint weights, so keeping the <lora:...>
expression in the prompt will make the same weights be multiplied again. This is Not what you want.
Just don't specify the <lora:...>
bit when using the TensorRT compiled unets and you'll get the lora effect applied anyway, as if you had used the angle bracket syntax <lora:some_model:1.0>
.
PS. If you want to fuse the lora with the checkpoint at a strength other than 1.0
, a workaround for now is to fuse the lora with the checkpoint manually before doing the checkpoint -> tensorrt conversion. Example.
from stable-diffusion-webui-tensorrt.
this should go a little bit further and explain this needs to be done every time you change LoRA weights as well.
from stable-diffusion-webui-tensorrt.
not sure if the Lora weights are properly applied. I am getting very different results using the TRT version of the Lora model, when compared to the normal version (e.g. <lora:some_model:0.6>
).
from stable-diffusion-webui-tensorrt.
@devjo thanks for this clarification, hopefully this will go into the documentation
from stable-diffusion-webui-tensorrt.
If you specify
<lora:some_model:0.6>
on a checkpoint for which you also have a TensorRT compiled unet that you produced withsome_model
, then you'll effectively get<lora:some_model:1.6>
. The initial fusing of a lora weights with the checkpoints at TensorRT compilation (generation) time addssome_model
at strength 1.0 already to the checkpoint weights, so keeping the<lora:...>
expression in the prompt will make the same weights be multiplied again. This is Not what you want.Just don't specify the
<lora:...>
bit when using the TensorRT compiled unets and you'll get the lora effect applied anyway, as if you had used the angle bracket syntax<lora:some_model:1.0>
.PS. If you want to fuse the lora with the checkpoint at a strength other than
1.0
, a workaround for now is to fuse the lora with the checkpoint manually before doing the checkpoint -> tensorrt conversion. Example.
I found the lora "compile" with model A can't be used for model B. Would you mind to share how you solve it?
from stable-diffusion-webui-tensorrt.
Related Issues (20)
- ModuleNotFoundError: No module named 'launch' HOT 2
- after install tensorRT, loading with this error。。。json.decoder.JSONDecodeError: Expecting value: line 2875 column 36 (char 193761)
- [E] 1: Myelin (Myelin error from unknown graph) [E] 4: The timing cache will not be used! HOT 2
- TensorRT does not load automatically after startup
- Trying to load models throws OutofMemoryError on Ubuntu
- TensorRT gives a Runtime Error when Positive prompt value is 150 and Negative prompt value is 75.
- Does tensorRT support direct use of apis, and what are the parameters? HOT 1
- how to generate json config file in the LoRA tab. HOT 1
- [branch: Controlnet_V2] ONNX IR model version conflict, how do i downgrade?
- [E] 3: getPluginCreator could not find plugin: InstanceNormalization_TRT version: 1 when building engine with latest TRT_VERSION="10.0.0b6"
- No config file found for You can generate it in the LoRA tab. HOT 3
- Advise to add promt token check in warning report
- [Feature Request] Add a Command Line Interface for the exporter process.
- AttributeError: 'tensorrt_bindings.tensorrt.ICudaEngine' object has no attribute 'get_profile_shape' HOT 2
- How to process a batch of images with ControlNet TensorRT in img2img ?
- Latest version of automatic1111 wont start with this extension installed. HOT 1
- AttributeError: 'NoneType' object has no attribute 'device_memory' HOT 8
- Error Code 3: API Usage Error (Parameter check failed
- Export LoRA to onnx depending on cyberrealistic_v31 can't fit to v1-5-pruned-emaonly_cnet_1846e6c3c239531e.trt
- TensorRT doesn't install on fresh A1111 install on Ubuntu, stuck at install after copy/paste de git link HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui-tensorrt.