deep-high-resolution-net.pytorch
deep-high-resolution-net.pytorch copied to clipboard
Pytroch and tensorboardx versions are not compatible
Pytroch =1.7 tensorboardx=1.6
AttributeError: module 'torch.onnx' has no attribute 'set_training'
Lib\site-packages\torch\onnx_init_.py def select_model_mode_for_export(model, mode): r""" A context manager to temporarily set the training mode of 'model' to 'mode', resetting it when we exit the with-block. A no-op if mode is None.
In version 1.6 changed to this from set_training
"""
from torch.onnx import utils
return utils.select_model_mode_for_export(model, mode)
i solve it! pip install tensorboardX==2.1
@yup1212 请问你在pytorch 1.7可以运行吗?我是用pytorch 1.5.1报错如下:
AttributeError: module 'torch.jit' has no attribute 'get_trace_graph'
查了下说pytorch1.1版本后这个方法名字改了,但是我看你好像在1.7版本可以运行。
torch 1.10.2 coda11.3 两个方式解决: 1、pip install tensorboardX 直接升最新 2、参考了新旧两个版本 在PyTorch 1.6版本中set_training变成了select_model_mode_for_export,改一下就可以了。 说白了就是换了个马甲
可是requirement里面不是说tensorboardx要1.6吗,你这样直接install会不会装的是最新的?
torch 1.10.2 coda11.3 两个方式解决: 1、pip install tensorboardX 直接升最新 2、参考了新旧两个版本 在PyTorch 1.6版本中set_training变成了select_model_mode_for_export,改一下就可以了。 说白了就是换了个马甲
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
我通过安装包解决了这个问题,打扰了,谢谢! @ liang0502
我通过安装包解决了这个问题,打扰了,谢谢! @ [liang0502](https://github.com/liang 您好,请问您是怎么通过安装包解决这个问题的,万分感谢!!!
torch==1.0.0 torchvision==0.2.1 tensorboardX==1.6 @GGgrey
@shui-tian-ju-shi what python version did you use?
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
hi,my version = 3.7. But that may not be a good fit.
shui_tian_ju_shi @.***
------------------ 原始邮件 ------------------ 发件人: "leoxiaobin/deep-high-resolution-net.pytorch" @.>; 发送时间: 2022年12月28日(星期三) 凌晨4:01 @.>; @.@.>; 主题: Re: [leoxiaobin/deep-high-resolution-net.pytorch] Pytroch and tensorboardx versions are not compatible (#230)
@shui-tian-ju-shi what python version did you use?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。