-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2 implementation models for RIFE v4.9 #66
Comments
Thanks for your interest. rife v1 and v2 representation in onnx in vs-mlrt differs by representation of some constant tensors. Related tensors include In v1 representation, these tensors are provided outside of the onnx here. Since at present the In v2 representation, these tensors are generated inside onnx on-the-fly, but it seems the accuracy loss is not tolerable. For the generation of onnx, I take the rife pytorch representation, manually optimize it and convert to onnx. The graph optimization is not unique and everyone may come up with different onnx representations. |
Awesome, thanks! After some trial and error, I think the jaggedness / aliasing is correlated with layers that cast int64 -> float32. I tried using polygraphy with TensorRT v9 to generate an engine that runs those layers (and a few immediate operations after) in higher precision (float32):
I just have a dumb If anyone else would like to try this, or can inform about any issues doing this, please do so! |
Or adding the following arguments if using
|
Thanks! |
…e v4.7-v4.9 model with v2 representation for TRT backend #66 (comment)
Oh, cool.
|
In terms of seeking performance of v1, what if you install this plugin by placing it next to
I think it is not related with some simple experiments. I have removed other similar constraints because they are not a layer name of the onnx, but invented names from onnx-tensorrt backend, which may introduce compatibility issue in the future. |
|
Without it, a lot of data is computed in native Python without any acceleration.
Yes I also observe that. I am considering it... EDIT: since TensorRT 9.0, layer name matching with one wildcard is allowed, which should work for some time. |
@WolframRhodium Would it be possible for you to generate v2 implementation models for RIFE v4.9, or describe how someone could generate it themselves?
Thanks!
The text was updated successfully, but these errors were encountered: