-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error(s) in loading state_dict for trVAE #55
Comments
Hi @LukasHats, this is because CellCharter uses a slightly modified version of trVAE (I just removed the last ReLU layer). `trvae = cc.tl.TRVAE( trvae.train( )` I will add trVAE's implementation to CellCharter's documentation and clarify this aspect! |
Ah that makes sense! Thanks for the quick solution.
|
EDIT: if you do both scaling and normalization, I would normalize first and scale after, not the reverse! |
Then I will try with and without scaling. Thanks for your input! I will leave this issue open so you can close it after adding the documentation :) |
Report
Dear @marcovarrone ,
as suggested by you in the other issue I wanted to use trVAE for batch correction. However I get an Error when trying to load the saved trVAE. Here is my code.
Its data from IMC
So Because of this issue I had to train with
use_mmd=False
Now I tried to load the model, but I get this Error:
Any ideas on this? why do we have this additional
.0.
?I could circumvent this by directly using the
autok
object to transfer the latent adata object, however, I trained the trvAE on normalized (non-scaled) data and wanted to use it on the scaled data, as suggested by you. I trained it only on normalized data as trvae suggests that it should be trained on normalized data whenmse
is used. And I want to make sure I am not doing anything wrong here. Or should I also train it on scaled data?Thanks a lot (again) in advance! :)
Version information
The text was updated successfully, but these errors were encountered: