-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't pickle weakref objects #29
Comments
to solve this problem, focus on line 181-182:
modify the code to the following:
and focus on line 348-349
modify the code to the following:
|
@Mengzibin 这样改虽然代码是跑起来了 但是后面在推理阶段做的extract_shapes,render_video等一个都干不成,因为推理阶段代码有一段ema=torch.load(os.path.output,generator_ddp.parameters()),由于训练的时候保存的ema.pth和generator.pth的类型不一样,所以不能将生成器模型copy_to到ema |
@somnus1840 请问你后来是怎么解决这个问题的呢,能否参考一下 |
可以的哈 我后面是在推断阶段的加载ema的部分改成了 |
谢谢您的回复,上述问题在前些日子解决了。但最近我遇到了新的问题,可否请教一下(如果您也遇到的话):最近我想使用作者提供的预训练模型进行训练,但是在load其中的ema.pth时遇到了如下的问题
貌似意思是不能对EMA对象进行数据操作,我不太清楚这是哪里的原因。 |
这个问题你解决了吗,我想问一下你是如何解决的 |
@Scxw010516 |
I am going to build my project and data is fetched from my database with specific Project_id. and then train my model using LSTM. Epochs are clearly running but after that, It shows an Internal Server Error
admin.py
bild.py
here the model is built via a specific Project_id. Model store only model.pkl data but not completed. And other files scalar_in and scalar_out do not save in a specific folder.
utils.py
when I Comment on the pickle.dump(model,model_file) then model.pkl, scalar_in.pkl, and scalar_out.pkl save files with 0 kb data. If pkl files exist already with data then it removes and builds the project successfully. I debug this code and the Django debuger_tool shows that the page is temporarily moved.
output
The text was updated successfully, but these errors were encountered: