The Compositional Perturbation Autoencoder (CPA) is a deep generative framework to learn effects of perturbations at the single-cell level. CPA performs OOD predictions of unseen combinations of drugs, learns interpretable embeddings, estimates dose-response curves, and provides uncertainty estimates.
BSD 3-Clause "New" or "Revised" License
77
stars
17
forks
source link
AttributeError: 'tuple' object has no attribute 'copy' #4
1551 # copy state_dict so _load_from_state_dict can modify it
1552 metadata = getattr(state_dict, '_metadata', None)
-> 1553 state_dict = state_dict.copy()
1554 if metadata is not None:
1555 # mypy isn't aware that "_metadata" exists in state_dict
1556 state_dict._metadata = metadata # type: ignore[attr-defined]
AttributeError: 'tuple' object has no attribute 'copy'
Hello,
I had download the pretrained model:
And I run
But I got errors:
It is ok when I load my own pretrained models.
Could you help with this problem ?
Thanks !!!