Git Product home page Git Product logo

Comments (15)

ethanhe42 avatar ethanhe42 commented on July 30, 2024

It's just a matter of notation. Using conv makes it easier to prune conv filters

from channel-pruning.

zlheos avatar zlheos commented on July 30, 2024

I don't undstand why not use relu in CR stage , but use relu in VH stage ?

But I want to know whether I should consider relu in CR in single CR / single channel pruning?
thank you very much for your answer!

from channel-pruning.

ethanhe42 avatar ethanhe42 commented on July 30, 2024

I'm not clear what you mean. How to pruning a single channel layer?

from channel-pruning.

zlheos avatar zlheos commented on July 30, 2024

I mean only CR , no VH and ITQ

from channel-pruning.

ethanhe42 avatar ethanhe42 commented on July 30, 2024

I still don't understand

  • consider relu in CR
  • why not use relu in CR stage , but use relu in VH stage

from channel-pruning.

zlheos avatar zlheos commented on July 30, 2024

Debug info:
In CR stage:
Extracting X conv3_1 From Y conv3_2 stride 1
In VH stage:
Extracting X relu3_1 From Y conv3_2 stride 1

I don't understand why don't consider relu3_1 in CR stage ?
my QQ number is : 317378808
Can we communicate with QQ, thank you very much

from channel-pruning.

ethanhe42 avatar ethanhe42 commented on July 30, 2024

Please read 3C approach in 4.1.2, and factorization papers [22,53]

from channel-pruning.

zlheos avatar zlheos commented on July 30, 2024

'''CR''' stage
if conv in pooldic:
X_name = self.bottom_names[convnext][0]
else:
X_name = conv
X_name 不应该全部都采用self.bottom_names[convnext][0]吗?
如果仅仅使用CR,没有 VH 和 ITH;
X_name 应该怎么输入?

from channel-pruning.

ethanhe42 avatar ethanhe42 commented on July 30, 2024

用 self.bottom_names[convnext][0] 是因为conv之间隔了一个pooling

from channel-pruning.

zlheos avatar zlheos commented on July 30, 2024

thank you very much!

from channel-pruning.

zlheos avatar zlheos commented on July 30, 2024

I have sended a message to your edu mailbox
I'm glad you could answer

from channel-pruning.

slothkong avatar slothkong commented on July 30, 2024

@yihui-he, I'm sorry for keep asking, but I don't know Chinese and google's translation is bad.
My question is:

If we only execute the Channel Pruning stage, do we need to extract all ReLU and all Pool Layers from all the CONV layers?

I'm confused because like @zlheos, I also observed that different pruning stages extract different layers, for example:

First Iteration
----------------------------------------------
Extracting X relu1_1 From Y conv1_2 stride 1
spatial_decomposition 90.12070608139038
----------------------------------------------
Extracting conv1_2 (50000, 64) -- samples
channel_decomposition 66.06586813926697
------------------------------------------------
Extracting X pool1 From Y conv2_1 stride 1
channel_pruning 46.22542428970337
------------------------------------------------
Second Iteration
------------------------------------------------
Extracting X pool1 From Y conv2_1 stride 1
spatial_decomposition 81.37090802192688
------------------------------------------------
Extracting conv2_1 (50000, 128) -- samples
channel_decomposition 96.16854739189148
------------------------------------------------
Extracting X conv2_1 From Y conv2_2 stride 1
channel_pruning 63.9356963634491

But the description of extract_XY() says it only supports conv-relu-conv operation:

https://github.com/yihui-he/channel-pruning/blob/3a4614de8c11aeb2ab981ddc619927c0e60a6577/lib/net.py#L532-L539

from channel-pruning.

ethanhe42 avatar ethanhe42 commented on July 30, 2024

yes you need to extract pooling

from channel-pruning.

slothkong avatar slothkong commented on July 30, 2024

@yihui-he but we don't care about ReLU because we already split it in step0, correct?

from channel-pruning.

ethanhe42 avatar ethanhe42 commented on July 30, 2024

from channel-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.