-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
为什么训练时出现这种警告,特别长一串红色warnning #3353
Comments
你好,图片链接失效 |
我也遇到了,这样的: 可是代码里没有用Tensor.numpy()[0]啊 |
|
以上回答已经充分解答了问题,如果有新的问题欢迎随时提交issue,或者在此条issue下继续回复~ |
请问你是训练的是什么模型呢?这里只是抛出了警告:目前版本会隐式将0-D tensor转换为1-D tensor,2.6以后的版本将会直接抛出错误。实际并不影响训练过程。 |
我是在AIstudio中直接用paddleseg训练voc12数据集时出错,2.5及以上版本都会有这个警告,2.4及以下的没试过。使用‘export FLAGS_set_to_1d=False’就没有这个警告信息了,但是验证的时候会报错。 我是直接下载的paddleseg,唯一的修改是将/home/aistudio/PaddleSeg/configs/deeplabv3p/deeplabv3p_resnet50_os8_voc12aug_512x512_40k.yml文件里的‘base: '../base/pascal_voc12aug.yml'修改为了‘base: '../base/pascal_voc12.yml'’。 另外使用‘pascal_voc12aug.yml’的时候是要先运行/home/aistudio/PaddleSeg/tools/voc_augment.py文件是吗?但我运行时总会报网络连接错误,下载不下来benchmark.tgz,正在考虑浏览器下载了再当做数据集传进去。 |
|
@Asthestarsfalll |
@gitlonglong 方便的话可以分享一下aistudio的项目,我来排查一下问题所在 |
我也出现了这个问题,paddleseg版本为2.8 I0712 14:24:21.198009 19039 eager_method.cc:140] Warning:: 0D Tensor cannot be used as 'Tensor.numpy()[0]' . In order to avoid this problem, 0D Tensor will be changed to 1D numpy currently, but it's not correct and will be removed in release 2.6. For Tensor contain only one element, Please modify 'Tensor.numpy()[0]' to 'float(Tensor)' as soon as possible, otherwise 'Tensor.numpy()[0]' will raise error in release 2.6. |
当程序运行到第一次保存模型的轮数时,会报下面的错误 |
2023-07-12 16:31:44 [INFO] [TRAIN] epoch: 12, iter: 500/1000, loss: 0.3831, lr: 0.000537, batch_cost: 0.1358, reader_cost: 0.07347, ips: 29.4629 samples/sec | ETA 00:01:07 |
看起来是 |
以上回答已经充分解答了问题,如果有新的问题欢迎随时提交issue,或者在此条issue下继续回复~ |
@Asthestarsfalll |
@a-strong-python |
我都改了,还是报错的,直接跑的官方例子,不知道出了啥问题 |
似乎是PYPI上的paddleseg有问题,如果是通过源码安装则没有这个问题 |
@gitlonglong |
@KKWY0909 |
这个参考链接没有任何价值啊!!! 根本不是针对那个警告的 |
@Ericgone 可以通过 |
这个警告会把你的训练log日志占满,可以控制它只出现一次吗? |
|
方法一:Failed, NCCL error ../paddle/fluid/distributed/collective/process_group_nccl.cc:660 'internal error' |
我使用paddleseg训练自己的数据集遇到同样的问题(我使用官方提供的PaddleSeg-release-2.8进行训练,除了数据集配置并无其他代码修改), 但是这个命令并没有用,另外在aistudio中将paddle2.5改为2.4也无法解决这个问题 |
@henryccl 可以试试使用PaddleSeg-release-2.8.1版本 |
感谢!2.8.1确实没报错了。 |
請問,2.8.1去哪安裝? 我怎裝都是2.8.0... |
请问怎么下载PaddleSeg-release-2.8.1 |
我也是,,我找到的都是PaddleSeg-release-2.8.0 |
github clone 再从本地安装 |
你好,请问为什么我用2.8.1还是会报这一长串的错误,还需要其他操作吗 |
你好,我也出现了你上面的两个问题,请问你最后是怎样解决的? |
你好,请问解决了吗 |
|
能指路一下调整版本的链接吗?谢谢。 |
您好,请问这个报错问题解决了吗?能方便告诉一下如何解决的吗? |
好的,收到,就是版本的问题吗?方便指路一下版本修改链接吗? |
#3408 这个里面有关于版本的解决方法,我也出现过你上面的报错,可以解决 |
好的 谢谢 |
你好 请问这个问题解决了吗 怎么解决的? |
pocr WARNING: The shape of model params head.before_gtc.1.fc.weight [480, 384] not matched with loaded params head.before_gtc.1.fc.weight [1024, 384] !解决了吗 |
Thanks for this issue. As it has been inactive for a long time, we would close it. If you has any questions, please feel free to reopen or new issue, and we will follow up and resolve it. |
问题确认 Search before asking
Bug描述 Describe the Bug
复现环境 Environment
paddlepaddle:2.3.2
paddleseg:2.7
Bug描述确认 Bug description confirmation
是否愿意提交PR? Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: