Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Original vggish vs this.. #18

Open
rohan1561 opened this issue Aug 25, 2020 · 2 comments
Open

Original vggish vs this.. #18

rohan1561 opened this issue Aug 25, 2020 · 2 comments

Comments

@rohan1561
Copy link

Hey doesn't the original tf implementation have only four convolution layers and two fc layers? this one has 6, 3...why the difference? How could the embeddings be identical then?

@KAISER1997
Copy link

@rohan1561 Could you find something?. I had a similar doubt.

@eatsleepraverepeat
Copy link

eatsleepraverepeat commented Nov 2, 2021

@rohan1561 @KAISER1997

this implementation is equal to the one placed In tensorflow/models, and there are, indeed - 6 convolution layers and 3 fully connected ones

here's a list of layers from tf 1.x vggish checkpoint, check the scopes

[
    ('vggish/conv1/biases', [64]),
    ('vggish/conv1/weights', [3, 3, 1, 64]),
    ('vggish/conv2/biases', [128]),
    ('vggish/conv2/weights', [3, 3, 64, 128]),
    ('vggish/conv3/conv3_1/biases', [256]),
    ('vggish/conv3/conv3_1/weights', [3, 3, 128, 256]),
    ('vggish/conv3/conv3_2/biases', [256]),
    ('vggish/conv3/conv3_2/weights', [3, 3, 256, 256]),
    ('vggish/conv4/conv4_1/biases', [512]),
    ('vggish/conv4/conv4_1/weights', [3, 3, 256, 512]),
    ('vggish/conv4/conv4_2/biases', [512]),
    ('vggish/conv4/conv4_2/weights', [3, 3, 512, 512]),
    ('vggish/fc1/fc1_1/biases', [4096]),
    ('vggish/fc1/fc1_1/weights', [12288, 4096]),
    ('vggish/fc1/fc1_2/biases', [4096]),
    ('vggish/fc1/fc1_2/weights', [4096, 4096]),
    ('vggish/fc2/biases', [128]),
    ('vggish/fc2/weights', [4096, 128]),
    ('vggish/logits/biases', [4923]),
    ('vggish/logits/weights', [128, 4923])
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants