GithubHelp home page GithubHelp logo

Comments (8)

tanluren avatar tanluren commented on July 30, 2024

你好,无法退出具体是什么表现呢?cpu环境?会不会卡住了?小点bs?

from yolov3-channel-and-layer-pruning.

wangxiaoyuwangdayu avatar wangxiaoyuwangdayu commented on July 30, 2024

image
是cpu环境,不是卡住了,bs调成1也是这样,我再程序的最后print(‘end’),程序运行结束输出end后,理论上应该返回命令行,但它没有返回,end后面一直有个光标在跳动。打开任务管理器,有个python的进程,占用很大的内存,但内存大小,句柄数都不变。我开始怀疑是loadimg时多线程的问题,但调整了之后也没有用。。。

from yolov3-channel-and-layer-pruning.

wangxiaoyuwangdayu avatar wangxiaoyuwangdayu commented on July 30, 2024

查了一晚上,最后问题定位在loss.backward(),只要计算梯度,程序就无法退出,查进程里就有个占很大内存的python进程,不知道是否是pytorch1.3不兼容的问题

from yolov3-channel-and-layer-pruning.

tanluren avatar tanluren commented on July 30, 2024

但是你不是可以去到xx epochs compledted in xx那里么?你的finish和end是摆在哪个位置的?试试把torch.cuda.empty_cache()注释掉?1.3版本还不了解呢

from yolov3-channel-and-layer-pruning.

wangxiaoyuwangdayu avatar wangxiaoyuwangdayu commented on July 30, 2024

我也第一次遇到这个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.

tanluren avatar tanluren commented on July 30, 2024

我用的1.2,小伙伴1.1也ok,cpu版没用过,不知道为什么不释放内存。。。

from yolov3-channel-and-layer-pruning.

wangxiaoyuwangdayu avatar wangxiaoyuwangdayu commented on July 30, 2024

谢谢您,问题解决了,pytorch换成1.1版本的就没有问题了

from yolov3-channel-and-layer-pruning.

Fang520 avatar Fang520 commented on July 30, 2024

谢谢您,问题解决了,pytorch换成1.1版本的就没有问题了

我也遇到了一模一样的问题,折腾了一晚上,我是1.12.1+cu113,跑任何训练,只要调用了loss.backward,就会导致在最后退出python时卡住,ctrl + c都没用,只有关掉cmd。不知到你现在解决了这个问题没有:)

from yolov3-channel-and-layer-pruning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.