Comments (4)
请升级paddle版本,推荐2.5以上
from paddleyolo.
还是报错:
LAUNCH INFO 2023-11-29 20:17:38,380 ----------- Configuration ----------------------
[2023-11-29 20:17:38,380] [ INFO] init.py:43 - ----------- Configuration ----------------------
LAUNCH INFO 2023-11-29 20:17:38,380 auto_parallel_config: None
[2023-11-29 20:17:38,380] [ INFO] init.py:45 - auto_parallel_config: None
LAUNCH INFO 2023-11-29 20:17:38,380 devices: None
[2023-11-29 20:17:38,380] [ INFO] init.py:45 - devices: None
LAUNCH INFO 2023-11-29 20:17:38,380 elastic_level: -1
[2023-11-29 20:17:38,380] [ INFO] init.py:45 - elastic_level: -1
LAUNCH INFO 2023-11-29 20:17:38,380 elastic_timeout: 30
[2023-11-29 20:17:38,380] [ INFO] init.py:45 - elastic_timeout: 30
LAUNCH INFO 2023-11-29 20:17:38,380 gloo_port: 6767
[2023-11-29 20:17:38,380] [ INFO] init.py:45 - gloo_port: 6767
LAUNCH INFO 2023-11-29 20:17:38,380 host: None
[2023-11-29 20:17:38,380] [ INFO] init.py:45 - host: None
LAUNCH INFO 2023-11-29 20:17:38,380 ips: None
[2023-11-29 20:17:38,380] [ INFO] init.py:45 - ips: None
LAUNCH INFO 2023-11-29 20:17:38,381 job_id: default
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - job_id: default
LAUNCH INFO 2023-11-29 20:17:38,381 legacy: False
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - legacy: False
LAUNCH INFO 2023-11-29 20:17:38,381 log_dir: log
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - log_dir: log
LAUNCH INFO 2023-11-29 20:17:38,381 log_level: INFO
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - log_level: INFO
LAUNCH INFO 2023-11-29 20:17:38,381 log_overwrite: False
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - log_overwrite: False
LAUNCH INFO 2023-11-29 20:17:38,381 master: None
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - master: None
LAUNCH INFO 2023-11-29 20:17:38,381 max_restart: 3
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - max_restart: 3
LAUNCH INFO 2023-11-29 20:17:38,381 nnodes: 1
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - nnodes: 1
LAUNCH INFO 2023-11-29 20:17:38,381 nproc_per_node: None
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - nproc_per_node: None
LAUNCH INFO 2023-11-29 20:17:38,381 rank: -1
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - rank: -1
LAUNCH INFO 2023-11-29 20:17:38,381 run_mode: collective
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - run_mode: collective
LAUNCH INFO 2023-11-29 20:17:38,381 server_num: None
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - server_num: None
LAUNCH INFO 2023-11-29 20:17:38,381 servers:
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - servers:
LAUNCH INFO 2023-11-29 20:17:38,381 start_port: 6070
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - start_port: 6070
LAUNCH INFO 2023-11-29 20:17:38,381 trainer_num: None
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - trainer_num: None
LAUNCH INFO 2023-11-29 20:17:38,381 trainers:
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - trainers:
LAUNCH INFO 2023-11-29 20:17:38,381 training_script: PaddleYOLO/tools/train.py
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - training_script: PaddleYOLO/tools/train.py
LAUNCH INFO 2023-11-29 20:17:38,381 training_script_args: ['-c', 'configs_yolo7/yolov7_tiny_300e_coco.yml', '--use_vdl=True', '-o', 'worker_num=4', '--eval']
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - training_script_args: ['-c', 'configs_yolo7/yolov7_tiny_300e_coco.yml', '--use_vdl=True', '-o', 'worker_num=4', '--eval']
LAUNCH INFO 2023-11-29 20:17:38,381 with_gloo: 1
[2023-11-29 20:17:38,381] [ INFO] init.py:45 - with_gloo: 1
LAUNCH INFO 2023-11-29 20:17:38,381 --------------------------------------------------
[2023-11-29 20:17:38,381] [ INFO] init.py:46 - --------------------------------------------------
LAUNCH INFO 2023-11-29 20:17:38,382 Job: default, mode collective, replicas 1[1:1], elastic False
[2023-11-29 20:17:38,382] [ INFO] controller.py:176 - Job: default, mode collective, replicas 1[1:1], elastic False
LAUNCH INFO 2023-11-29 20:17:38,385 Run Pod: eqdgru, replicas 1, status ready
[2023-11-29 20:17:38,385] [ INFO] controller.py:62 - Run Pod: eqdgru, replicas 1, status ready
LAUNCH INFO 2023-11-29 20:17:38,413 Watching Pod: eqdgru, replicas 1, status running
[2023-11-29 20:17:38,413] [ INFO] controller.py:86 - Watching Pod: eqdgru, replicas 1, status running
======================= Modified FLAGS detected =======================
FLAGS(name='FLAGS_selected_gpus', current_value='0', default_value='')
loading annotations into memory...
Done (t=0.10s)
creating index...
index created!
[11/29 20:17:41] ppdet.data.source.coco INFO: Load [13887 samples valid, 0 samples invalid] in file work/tile/annotations/train_annos_own.json.
W1129 20:17:41.240366 540 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 7.0, Driver API Version: 12.0, Runtime API Version: 11.8
W1129 20:17:41.242010 540 gpu_resources.cc:149] device: 0, cuDNN Version: 8.9.
Traceback (most recent call last):
File "/home/aistudio/PaddleYOLO/tools/train.py", line 198, in
main()
File "/home/aistudio/PaddleYOLO/tools/train.py", line 194, in main
run(FLAGS, cfg)
File "/home/aistudio/PaddleYOLO/tools/train.py", line 147, in run
trainer.train(FLAGS.eval)
File "/home/aistudio/PaddleYOLO/ppdet/engine/trainer.py", line 434, in train
outputs = model(data)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1254, in call
return self.forward(*inputs, **kwargs)
File "/home/aistudio/PaddleYOLO/ppdet/modeling/architectures/meta_arch.py", line 60, in forward
out = self.get_loss()
File "/home/aistudio/PaddleYOLO/ppdet/modeling/architectures/yolov7.py", line 95, in get_loss
return self._forward()
File "/home/aistudio/PaddleYOLO/ppdet/modeling/architectures/yolov7.py", line 77, in _forward
yolo_losses = self.yolo_head(neck_feats, self.inputs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1254, in call
return self.forward(*inputs, **kwargs)
File "/home/aistudio/PaddleYOLO/ppdet/modeling/heads/yolov7_head.py", line 220, in forward
return self.loss(yolo_outputs, targets, self.anchors)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1254, in call
return self.forward(*inputs, **kwargs)
File "/home/aistudio/PaddleYOLO/ppdet/modeling/losses/yolov7_loss.py", line 175, in forward
n = b.shape[0] # number of targets
AttributeError: 'list' object has no attribute 'shape'
LAUNCH INFO 2023-11-29 20:18:32,463 Pod failed
[2023-11-29 20:18:32,463] [ INFO] controller.py:115 - Pod failed
LAUNCH ERROR 2023-11-29 20:18:32,464 Container failed !!!
Container rank 0 status failed cmd ['/opt/conda/envs/python35-paddle120-env/bin/python', '-u', 'PaddleYOLO/tools/train.py', '-c', 'configs_yolo7/yolov7_tiny_300e_coco.yml', '--use_vdl=True', '-o', 'worker_num=4', '--eval'] code 1 log log/workerlog.0
env {'SHELL': '/bin/bash', 'STUDIO_SERVING_URL_TEMPLATE': 'https://aistudio.baidu.com/application/detail/{}', 'JUPYTER_7207170_7173349_PORT_8888_TCP_ADDR': '10.41.214.141', 'JUPYTER_2862833_6737614_PORT_8888_TCP_PROTO': 'tcp', 'JUPYTER_1949767_5855869_PORT': 'tcp://10.41.118.26:8888', 'JUPYTER_2858305_6542390_PORT_8888_TCP_ADDR': '10.41.74.82', 'JUPYTER_990707_7072718_SERVICE_PORT': '8888', 'JUPYTER_7641412_7158646_PORT': 'tcp://10.41.196.107:8888', 'JUPYTER_7646910_7169624_PORT': 'tcp://10.41.37.63:8888', 'JUPYTER_3934698_7082253_SERVICE_HOST': '10.41.164.222', 'JUPYTER_7362483_7121438_SERVICE_HOST': '10.41.107.121', 'JUPYTER_6113036_7115017_PORT_8888_TCP_PROTO': 'tcp', 'NV_LIBCUBLAS_VERSION': '11.11.3.6-1', 'NVIDIA_VISIBLE_DEVICES': 'all', 'JUPYTER_3769568_7173534_PORT_8888_TCP_ADDR': '10.41.72.226', 'KUBERNETES_SERVICE_PORT_HTTPS': '443', 'JUPYTER_6568462_7173461_PORT_8888_TCP_PROTO': 'tcp', 'JUPYTER_7696903_7173419_PORT_8888_TCP_PORT': '8888', 'JUPYTER_4218454_7166329_PORT_8888_TCP
[2023-11-29 20:18:32,464] [ ERROR] controller.py:116 - Container failed !!!
Container rank 0 status failed cmd ['/opt/conda/envs/python35-paddle120-env/bin/python', '-u', 'PaddleYOLO/tools/train.py', '-c', 'configs_yolo7/yolov7_tiny_300e_coco.yml', '--use_vdl=True', '-o', 'worker_num=4', '--eval'] code 1 log log/workerlog.0
env {'SHELL': '/bin/bash', 'STUDIO_SERVING_URL_TEMPLATE': 'https://aistudio.baidu.com/application/detail/{}', 'JUPYTER_7207170_7173349_PORT_8888_TCP_ADDR': '10.41.214.141', 'JUPYTER_2862833_6737614_PORT_8888_TCP_PROTO': 'tcp', 'JUPYTER_1949767_5855869_PORT': 'tcp://10.41.118.26:8888', 'JUPYTER_2858305_6542390_PORT_8888_TCP_ADDR': '10.41.74.82', 'JUPYTER_990707_7072718_SERVICE_PORT': '8888', 'JUPYTER_7641412_7158646_PORT': 'tcp://10.41.196.107:8888', 'JUPYTER_7646910_7169624_PORT': 'tcp://10.41.37.63:8888', 'JUPYTER_3934698_7082253_SERVICE_HOST': '10.41.164.222', 'JUPYTER_7362483_7121438_SERVICE_HOST': '10.41.107.121', 'JUPYTER_6113036_7115017_PORT_8888_TCP_PROTO': 'tcp', 'NV_LIBCUBLAS_VERSION': '11.11.3.6-1', 'NVIDIA_VISIBLE_DEVICES': 'all', 'JUPYTER_3769568_7173534_PORT_8888_TCP_ADDR': '10.41.72.226', 'KUBERNETES_SERVICE_PORT_HTTPS': '443', 'JUPYTER_6568462_7173461_PORT_8888_TCP_PROTO': 'tcp', 'JUPYTER_7696903_7173419_PORT_8888_TCP_PORT': '8888', 'JUPYTER_4218454_7166329_PORT_8888_TCP
LAUNCH INFO 2023-11-29 20:18:32,479 ------------------------- ERROR LOG DETAIL -------------------------
[2023-11-29 20:18:32,479] [ INFO] controller.py:117 - ------------------------- ERROR LOG DETAIL -------------------------
======================= Modified FLAGS detected =======================
FLAGS(name='FLAGS_selected_gpus', current_value='0', default_value='')
loading annotations into memory...
Done (t=0.10s)
creating index...
index created!
[11/29 20:17:41] ppdet.data.source.coco INFO: Load [13887 samples valid, 0 samples invalid] in file work/tile/annotations/train_annos_own.json.
W1129 20:17:41.240366 540 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 7.0, Driver API Version: 12.0, Runtime API Version: 11.8
W1129 20:17:41.242010 540 gpu_resources.cc:149] device: 0, cuDNN Version: 8.9.
Traceback (most recent call last):
File "/home/aistudio/PaddleYOLO/tools/train.py", line 198, in
main()
File "/home/aistudio/PaddleYOLO/tools/train.py", line 194, in main
run(FLAGS, cfg)
File "/home/aistudio/PaddleYOLO/tools/train.py", line 147, in run
trainer.train(FLAGS.eval)
File "/home/aistudio/PaddleYOLO/ppdet/engine/trainer.py", line 434, in train
outputs = model(data)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1254, in call
return self.forward(*inputs, **kwargs)
File "/home/aistudio/PaddleYOLO/ppdet/modeling/architectures/meta_arch.py", line 60, in forward
out = self.get_loss()
File "/home/aistudio/PaddleYOLO/ppdet/modeling/architectures/yolov7.py", line 95, in get_loss
return self._forward()
File "/home/aistudio/PaddleYOLO/ppdet/modeling/architectures/yolov7.py", line 77, in _forward
yolo_losses = self.yolo_head(neck_feats, self.inputs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1254, in call
return self.forward(*inputs, **kwargs)
File "/home/aistudio/PaddleYOLO/ppdet/modeling/heads/yolov7_head.py", line 220, in forward
return self.loss(yolo_outputs, targets, self.anchors)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1254, in call
return self.forward(*inputs, **kwargs)
File "/home/aistudio/PaddleYOLO/ppdet/modeling/losses/yolov7_loss.py", line 175, in forward
n = b.shape[0] # number of targets
AttributeError: 'list' object has no attribute 'shape'
LAUNCH INFO 2023-11-29 20:18:32,479 Exit code 1
[2023-11-29 20:18:32,479] [ INFO] controller.py:149 - Exit code 1
from paddleyolo.
?
from paddleyolo.
谢谢建议,后续会进行下排查修复。
from paddleyolo.
Related Issues (20)
- yolov8训练好的模型如何在vc++生成的项目中调用? HOT 3
- 使用预训练的模型进行推理,有识别结果。基于预训练的模型训练Visdrone数据集后,使用训练后的模型进行推理,检测多张该数据集的图片,均无识别结果。 HOT 5
- 单机多卡,拉去gpu版本的docker,进行版本验证时只能使用单张gpu,已安装nccl 2.8.3 HOT 3
- 现在支持训练yolov8了吗? HOT 3
- Single-class yolov7 training hangs HOT 2
- ins_seg分支YOLOv5、v8和PPYOLOE seg目前支持训练了吗 HOT 3
- ppyoloe的8卡长训结果和官方对不齐 HOT 1
- yolov5无法复现PaddleYOLO官方结果 HOT 4
- 利好Paddle......yolov5,yolov8表示,只要你用了模型,包含ONNX模型,都必须要开源 HOT 1
- 模型保存时报错 HOT 3
- Export model for inference HOT 1
- ppyoloe_seg的实例分割模型下载链接失效了 HOT 2
- PPYoloe+在PaddleServing上部署报错segmentatioin fault HOT 1
- Tensorrt export failed HOT 1
- 关于检测和分割的多任务 HOT 1
- 有计划整合YOLOv9吗? HOT 2
- rtdetr评估报错
- 如何查看参数量
- yolov5_s_60e_voc.yml与yolov5_s_300e_coco.yml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddleyolo.