Comments (8)
你好,无法退出具体是什么表现呢?cpu环境?会不会卡住了?小点bs?
from yolov3-channel-and-layer-pruning.
是cpu环境,不是卡住了,bs调成1也是这样,我再程序的最后print(‘end’),程序运行结束输出end后,理论上应该返回命令行,但它没有返回,end后面一直有个光标在跳动。打开任务管理器,有个python的进程,占用很大的内存,但内存大小,句柄数都不变。我开始怀疑是loadimg时多线程的问题,但调整了之后也没有用。。。
from yolov3-channel-and-layer-pruning.
查了一晚上,最后问题定位在loss.backward(),只要计算梯度,程序就无法退出,查进程里就有个占很大内存的python进程,不知道是否是pytorch1.3不兼容的问题
from yolov3-channel-and-layer-pruning.
但是你不是可以去到xx epochs compledted in xx那里么?你的finish和end是摆在哪个位置的?试试把torch.cuda.empty_cache()注释掉?1.3版本还不了解呢
from yolov3-channel-and-layer-pruning.
我也第一次遇到这个bug。。整个程序都可以完美运行下来,输出的结果权重一个不少,所以,不管是“xx epochs compledted in xx”,还是我自己加的“finish,end”都能运行下来,就是最后程序退出不了,ctrl+C,sys.exit()都不行,我在anaconda prompt下运行程序的,只有把命令行窗口关了才能退出。我把所有功能全部注释掉才找到是loss.backward()的问题的,也想过是cache问题,把torch.cuda.empty_cache()注释掉这些都尝试过,都没用。我准备用pytorch1.1或1.2试试,作者你试过用pytorch1.1可以跑嘛
from yolov3-channel-and-layer-pruning.
我用的1.2,小伙伴1.1也ok,cpu版没用过,不知道为什么不释放内存。。。
from yolov3-channel-and-layer-pruning.
谢谢您,问题解决了,pytorch换成1.1版本的就没有问题了
from yolov3-channel-and-layer-pruning.
谢谢您,问题解决了,pytorch换成1.1版本的就没有问题了
我也遇到了一模一样的问题,折腾了一晚上,我是1.12.1+cu113,跑任何训练,只要调用了loss.backward,就会导致在最后退出python时卡住,ctrl + c都没用,只有关掉cmd。不知到你现在解决了这个问题没有:)
from yolov3-channel-and-layer-pruning.
Related Issues (20)
- Can I use this to prune model MobileNetv2-Yolov4
- ValueError: not enough values to unpack (expected 2, got 1)
- 关于稀疏训练和剪枝的阈值
- 进行yolov4稀疏化训练 HOT 3
- 关于其他数据集标注格式要进行的代码修改
- 为什么稀疏训练和剪枝都要将yolov3赋给darknet?
- What are the flags -sr ,--s 0.001 ,--prune 1 --global_percent flag while doing pruning
- 刚开始推理时,GPU内存占用持续增加
- 训练时候出现一个问题 soft rratio是0测试时候 P R mAP F1也是nan这种情况怎么办呢
- The P R F1-score and [email protected] are around 90% after sparse training (--s 0.001 --prune 0). Still the sparse model is not performing well on the test dataset.
- 通道剪枝的时候遇到问题~ HOT 1
- 请问支持分组卷积的枝剪吗 HOT 1
- data文件夹下的.shapes文件需要自己准备吗?
- ValueError: Number of rows must be a positive integer, not 4.0 HOT 3
- 剪枝改进后的模型
- RuntimeError: shape '[128, 64, 3, 3]' is invalid for input of size 7067 训练v3报错
- 可以正常剪枝,但是微调并没有提升map,且微调后的bn_weight的大部分值仍接近0?
- How to transfor the pt model to ONNX format
- 在windows下没有生成val.shapes
- 没有models.yolo
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 yolov3-channel-and-layer-pruning.