Giter Club home page Giter Club logo

Comments (4)

markurtz avatar markurtz commented on May 23, 2024

Hi @vixadd, thank you for raising this issue. Could you point us towards a specific open-sourced model or implementation we could look at further? Additionally, what was the method you used for conversion to ONNX? We can then go through and verify the issue from our side to work on a specific fix for this issue.

Thanks,
Mark

from sparseml.

vixadd avatar vixadd commented on May 23, 2024

Hi @markurtz

  • Thank you for the reply. Unfortunately, the implementation of the model itself is something I cannot share, however, I can share a general overview of what it is/does.
  • I use tf2onnx to convert the keras model to an onnx model in my build.
  • The model takes multiple Conv 2D layers and pulls in MaxPooling2D to downsample.
  • I've indexed each of the conv2d layers. You can see a 3_1 after the identifier. For some reason sparseml is not pulling the other layers, it keeps trying to re-calculate index 3_1 in the list of Convolutions that take place.

from sparseml.

vixadd avatar vixadd commented on May 23, 2024

Since this has gone a little stale, I'll put up an example, and just leave it at that.

import tensorflow.keras as tfk

def build_encoder():
    layers = []
    for l in rang(0, 10):

        layer = []
        for b in range(0, 5):
            layer.append( tfk.layers.Conv2D(16, 8, 64, use_bias=False, name=f"encoder/conv2d_{l}_{b}" )

        layers += [layer]

Building something like that into your model will cause this error.

from sparseml.

markurtz avatar markurtz commented on May 23, 2024

Hi @vixadd, thank you for putting up that pull request! The code has been merged in now and will be going out with our 0.8 release. It will be available on nightly starting tonight, so I'm going to close this out for now. If any issues come up feel free to reopen.

Thanks,
Mark

from sparseml.

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.