FengheTan9 / Multi-Level-Global-Context-Cross-Consistency

Official Pytorch Code base for "Multi-Level Global Context Cross Consistency Model for Semi-Supervised Ultrasound Image Segmentation with Diffusion Model"
MIT License
31 stars 1 forks source link

RuntimeError: For non-complex input tensors, argument alpha must not be a complex number. #2

Open Pitrickstar opened 1 year ago

Pitrickstar commented 1 year ago

哥 为什么我快训练完了在结尾会报这个错 搞不懂呜呜

FengheTan9 commented 1 year ago

You may follow this solution.

scarfacebaoc commented 1 year ago

You may follow this solution. 学长,根据你那个连接看问题有可能是更新学习率那一步,请问学长对于更新学习率有什么建议嘛,可以直接用lr_scheduler.MultiStepLR库嘛

FengheTan9 commented 1 year ago

Well, CosineAnnealingLR is recommended.

fengchuanpeng commented 1 year ago

hello,I'd like to ask you something,Is there a formula for calculating this max_iterations?

scarfacebaoc commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。