Closed moghra closed 10 months ago
Thanks for your question. The pretrained model can only be used with the dataloader used to train it. GEARS currently does not have functionality for transferring to new dataloaders after training. Having said that, this dataloader includes a broad range of potential perturbations so hopefully you can still use it to learn new insights.
Hi! Thank you for providing an opportunity to use your amazing tool!
I faced an issue while running the tutorial for using the trained model. Although I'm loading my own data instead of Norman dataset, I have no problems with creating dataloader and I do not modify any further code. However, I get the error when I load the pre-trained model with load_pretrained. Here is the relevant part of the code:
And the error is
It seems to me that the problem is following: the dictionary config.pkl (which is a part of the trained model directory) contains an item 'cell_fitness_pred': False, while 'cell_fitness_pred' is not among the arguments of model_initialize(). However, simply removing this item from the dictionary gives different error (here 'model_modified_ckpt' is a copy of 'model_ckpt' directory; the only difference is that I removed the mentioned item from config.pkl):
Is there some simple way to resolve this issue?