GithubHelp home page GithubHelp logo

culturenotes / network-slimming Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 3.0 1.44 MB

Network reproduction and expansion based on Learning Efficient Convolutional Networks Through Network Slimming (ICCV 2017).

Home Page: https://network-slimming.vercel.app

Python 100.00%

network-slimming's People

Contributors

culturenotes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

network-slimming's Issues

关于剪枝工程的疑虑

请问这个剪枝工程是不是必须有全连接层的才可以实现剪枝,全卷积层是不行的。或者是只能试用分类,不适用分割

剪枝语义分割 segnet 模型时,无法保存模型

改成语义分割 segnet 后,训练正常,但是在剪枝时,报错如下。
”C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:93: block: [2,0,0], thread: [126,0,0]
Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:93: block: [2,0,0], thread: [127,0,0]
Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
Traceback (most recent call last):
File "d:/code/pytorch-slimming/pytorch-slimming/prune.py", line 149, in
torch.save({'state_dict': newmodel.state_dict()}, args.save)
File "E:\Anaconda3\envs\segnet\lib\site-packages\torch\serialization.py", line 379, in save
_save(obj, opened_zipfile, pickle_module, pickle_protocol)
File "E:\Anaconda3\envs\segnet\lib\site-packages\torch\serialization.py", line 496, in save
storage = storage.cpu()
File "E:\Anaconda3\envs\segnet\lib\site-packages\torch\storage.py", line 72, in cpu
return self.type(getattr(torch, self.class.name))
File "E:\Anaconda3\envs\segnet\lib\site-packages\torch\cuda_init
.py", line 618, in type
return super(_CudaBase, self).type(*args, **kwargs) # type: ignore[misc]
File "E:\Anaconda3\envs\segnet\lib\site-packages\torch_utils.py", line 45, in type
return dtype(self.size()).copy
(self, non_blocking)
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.“

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.