-
Notifications
You must be signed in to change notification settings - Fork 60
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
Bug with input_dim and pure inference #17
Comments
Hi, Can you elaborate on which argument you are referring to, is that ssast/src/finetune/esc50/run_esc_patch.sh Line 41 in a1a3eec
Thanks! -Yuan |
yes |
Can you explain why the value would be 1024? It seems to me that it changes Lines 97 to 101 in a1a3eec
and Lines 132 to 138 in a1a3eec
for both dataloading and model instantiation. |
because the process of loading the model file ssast-base-patch-400.pth changes the target_length, the code is shown as below |
我猜测这也是为什么finetune完之后,做纯推理时load model file会报错的原因。不知道我理解的是否对 |
can you paste the error code here? |
you can print the p_input_tdim before 156 line of ast_model,you will find the error |
I don't have enough time to run it again. The code is a cleaned up version from the development version. It went through a brief test and I guess I did take care of this. So if you already have a error message, that would be very helpful. It might due to something else. |
我相信很多人都有同样的问题。因为finetune之后保存的模型,根本没法load进来做纯推理,我也不知道该如何测试训练好的模型的真实性能 |
Oh I see, yes, that is a known problem. It should be fine if you finetune a pretrained model that has different For checking the performance, once you finetune a pretrained model, the script will print out the accuracy (or mAP) and also save the result on disk. For deploy the model for inference, you will need to fix the bug. |
Can you check this: #4 |
在finetune阶段,无论run.sh阶段设置的input_dtim是多少,最终都会是1024.
The text was updated successfully, but these errors were encountered: