mobaidoctor / med-ddpm

GNU General Public License v3.0
149 stars 16 forks source link

ERROR: Can't pickle <function <lambda> #5

Closed kitofito closed 12 months ago

kitofito commented 1 year ago

Hello, thank you very much for your previous response to my issue. I've been encountering the following error for many weeks, and I still don't know how to resolve it. I would greatly appreciate it if you could help me fix this error, please.

Thank you. Med-DDPM_error

kitofito commented 1 year ago

I ran the project in Google Colab, and it worked for me!

mobaidoctor commented 1 year ago

Hi, @kitofito, thank you for reaching out. Which version of Python are you using? The "pickle.PicklingError: Can't pickle " error arises because Python's pickle module cannot serialize lambda functions. Here are some simple steps to resolve the issue: