gitlonglong
gitlonglong
You can download it [here](https://drive.google.com/drive/folders/1pBN07IW_zxEVlL2q9ColGs6QkUNkplsi)
> 你好,图片链接失效 我也遇到了,这样的: I0706 13:09:12.768538 3772 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...
> > > 你好,图片链接失效 > > > > > > 我也遇到了,这样的: I0706 13:09:12.768538 3772 eager_method.cc:140] Warning:: 0D Tensor cannot be used as 'Tensor.numpy()[0]' . In order to avoid this problem,...
> @gitlonglong > > 1. 请问你使用的paddleseg版本是多少呢?`.numpy()[0]`的问题应该在这个[PR](https://github.com/PaddlePaddle/PaddleSeg/pull/2686)中修复了; > 2. benchmark.tgz可以在aistudio的数据集中找一下,我找了一个,你可以试试看能不能用,直接添加到数据中就行了:[https://aistudio.baidu.com/aistudio/datasetdetail/65497。](https://aistudio.baidu.com/aistudio/datasetdetail/65497%E3%80%82) @Asthestarsfalll 好的,我试试,多谢! 我一开始用的2.6,后来换2.8了。而且我又看了一下,2.7和2.8是修复了这个bug,但是用voc数据集的时候还是会报错,在train.py里的这一行:avg_loss_list = [l[0] / log_iters for l in avg_loss_list](l[0]的写法会报错,换成l就可以) 另外metrics.py文件里也会报错,像我上面说的那样改才能在VOC12上跑得起来。
> @gitlonglong 方便的话可以分享一下aistudio的项目,我来排查一下问题所在 @Asthestarsfalll 不用我的aistudio项目,你随便创一个项目,10分钟应该就能弄好,跑一下就能发现问题了。
> 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 2023-07-12 16:31:44 [INFO] Start evaluating (total_samples: 45,...
> @gitlonglong 我使用源码安装的2.8版本,按照您的方法进行修改,但是在自己的数据集上训练时仍会出现这种warning @KKWY0909 源码安装之后调用的函数是原本的固定的了,而不是你修改后的。有两个方法解决,第一个方法是每次修改后重新安装一遍,第二种是使用低一些的版本,比如2.6,每次修改就可以直接用