-
Notifications
You must be signed in to change notification settings - Fork 215
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
Silero-vad-4 needs actual If operator #1029
Comments
Location where the comparison takes place: tract/hir/src/infer/analyser.rs Line 97 in bdb38a6
Line 87 in bdb38a6
It seems like @kali is it something that's doable? if so I'd be interested to make an attempt on it :). Also I looked at the tract trace and it seems like it is able to analyze the whole model except the |
what if in fn nboutputs(&self) -> TractResult<usize> {
if self.else_body.outputs.len() == self.then_body.outputs.len() {
Ok(self.then_body.outputs.len())
} else {
//Some Err()
}
} |
It seems like I might have ditched that
It is coming from |
Hello! thanks for your interest and sorry for delay in answering. The nboutput fix feels right. Feel free to make it a PR. You can use the I will have a look at the TDim to bool cast. |
Awesome! Thanks :) |
tract does not have an actual If operator at this stage (it expects the boolean condition to be resolved at load time, and substitutes itself with one branch accordingly). I'm putting this in the backlog for now. |
@7r3nzy I noticed that this is a reopened issue. Can you confirm if you are able to load the Silero model successfully on your end? |
I am trying to load silero-vad-v4 onnx but it is giving me the following error:
This is how I am loading it:
model overview
If_25
node is the one with 3 outputstract version:
0.19.8
Update:
Running through command line has the same behavior:
The text was updated successfully, but these errors were encountered: