Comments (10)
And I changed the
batch size
to128
, maybe it caused the error?Yes it is probably the reason, scale it down and see if the issue persists? Usually, this loading error accurs when parallel data loading is too heavy for your system.
Now I change it to 64
, and the error has not occured for now
from pytorch-auto-drive.
Have you ever encountered this problem before? I can not get the useful message from the error message.
from pytorch-auto-drive.
OK. thanks for your help !! This open frame work is pretty good, thanks for your contirbution and great work
from pytorch-auto-drive.
Besides, it also show me the warning /data/123/gcq/LaneDetection/pytorch-auto-drive/utils/datasets/utils.py:30: UserWarning: An output with one or more elements was resized since it had shape [88473600], which does not match the required output shape [128, 3, 360, 640]. This behavior is deprecated, and in a future PyTorch release outputs will not be resized unless they have zero elements. You can explicitly reuse an out tensor t by resizing it, inplace, to zero elements with t.resize_(0). (Triggered internally at /opt/conda/conda-bld/pytorch_1670525552411/work/aten/src/ATen/native/Resize.cpp:17.)
from pytorch-auto-drive.
And I changed the batch size
to 128
, maybe it caused the error?
from pytorch-auto-drive.
And I changed the
batch size
to128
, maybe it caused the error?
Yes it is probably the reason, scale it down and see if the issue persists? Usually, this loading error accurs when parallel data loading is too heavy for your system.
from pytorch-auto-drive.
There comes a terrible thing that i still set the batch size
is 64
, and set the workers
as 32
, the error RuntimeError: received 0 items of ancdata
appeared again.
from pytorch-auto-drive.
Besides, the train_augmentation as :
train_augmentation = dict(
name='Compose',
transforms=[
dict(
name='Resize',
size_image=(360, 640),
size_label=(360, 640)
),
dict(
name='RandomHorizontalFlip',
flip_prob=0.5
),
dict(
name='RandomRotation',
degrees=10
),
dict(
name='ColorJitter',
brightness=0.4,
contrast=0.4,
saturation=0.4,
hue=0.2
),
dict(
name='ToTensor'
),
dict(
name='RandomLighting',
mean=0.0,
std=0.1,
eigen_value=[0.00341571, 0.01817699, 0.2141788],
eigen_vector=[
[0.41340352, -0.69563484, -0.58752847],
[-0.81221408, 0.00994535, -0.5832747],
[0.41158938, 0.71832671, -0.56089297]
]
),
dict(
name='Normalize',
mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225],
normalize_target=True
)
]
)
from pytorch-auto-drive.
@GCQi In my experience, this problem comes with heavy data loading (according to your hardware). Large batch size, more workers, and long training schedule increase the probability to encounter this error, which could happen halfway through training. You may find that my default batch size is kept at 20 for this very reason.
from pytorch-auto-drive.
Sometimes the file_system strategy could help, but it has a memory leak issue of its own.
pytorch-auto-drive/main_landet.py
Line 9 in f2615da
from pytorch-auto-drive.
Related Issues (20)
- [Errno 2] No such file or directory HOT 5
- Start of Training outputs
- Vis Error
- 关于贝塞尔曲线的源码 HOT 5
- 关于贝塞尔ground truth生成的问题 HOT 2
- The visualization effect is not ideal HOT 1
- 当我在运行main_landet.py文件时,出现了以下的报错
- Heatmap代码 HOT 4
- tusimple数据集评估代码某行代码的疑问 HOT 3
- 环境无法安装 HOT 3
- 运行出错 HOT 4
- 自制数据集训练,推理结果可视化问题 HOT 5
- 如何二次开发 HOT 4
- 应用场景 HOT 6
- about lane test HOT 12
- 分割图可视化 HOT 2
- Evaluation of TP and TN for Tusimple HOT 13
- Run lane_video. py with resnet18_bezierlanene_tusimple.aug1b_20211109.pt , save the video without detection results? HOT 3
- Question about bezier curves HOT 6
- predict on cityscapes/predict on different size HOT 3
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 pytorch-auto-drive.