Open khanhhoaa19 opened 2 months ago
Please try updating monai-generative to the latest version
I am using the latest version (monai-generative version 0.2.3 and monai version 1.3.0) downloaded from PyPI, but I am still encountering the same error
What happens when you print model.use_checkpointing
? Can you share a minimal version of your code that reproduces this problem that I could try to play with?
When I call the generative-monai
from generative.losses import PatchAdversarialLoss, PerceptualLoss from generative.networks.nets import AutoencoderKL, PatchDiscriminator
The terminal encountered an error related to 'model.use_checkpointing'
This suggests a problem with your install to me. If i create a fresh environment and run pip install monai-generative
then I can run no problem:
from generative.networks.nets import AutoencoderKL
net = AutoencoderKL(spatial_dims=2)
print(net.use_checkpointing)
I would recommend trying again in a fresh virtual environment
Has this issue been resolved with the last suggestion?
Hi I have a trouble when import AutoencoderKL from generative![image](https://github.com/Project-MONAI/GenerativeModels/assets/55345757/1690ffc8-bcab-411d-bb82-30c659e538d0)