Giter Club home page Giter Club logo

Comments (9)

Takudzwamz avatar Takudzwamz commented on April 28, 2024 1

@pkgoogle I downgraded to 2.15 and it worked, thanks.

from tensorflow.

Aloqeely avatar Aloqeely commented on April 28, 2024
    model = Sequential([
        data_augmentation,
        # layers.Rescaling(1./255, input_shape=(img_height, img_width, 3)),
        # layers.Conv2D(16, 3, padding='same', activation=activation1),
        # layers.MaxPooling2D(),
        layers.Conv2D(32, 3, padding='same', activation=activation1),
        layers.MaxPooling2D(),
        layers.Conv2D(48, 3, padding='same', activation=activation2),
        layers.MaxPooling2D(),
        layers.Conv2D(64, 3, padding='same', activation=activation1),
        layers.MaxPooling2D(),
        layers.Dropout(0.15),
        layers.Flatten(),
        layers.Dense(128, activation=activation2),
        layers.Dense(num_classes)
    ])

Sequential here might be imported from something other than tf.keras. Please take a look at #39001

from tensorflow.

LakshmiKalaKadali avatar LakshmiKalaKadali commented on April 28, 2024

Hi @schwefeljm,

I am trying to reproduce the code meanwhile I encountered some other error. Is it `args = argparser(). Please provide complete reproducible code/link to debug the issue.

Thank You

from tensorflow.

schwefeljm avatar schwefeljm commented on April 28, 2024

Hi @schwefeljm,

I am trying to reproduce the code meanwhile I encountered some other error. Is it `args = argparser(). Please provide complete reproducible code/link to debug the issue.

Thank You
Hi @LakshmiKalaKadali ,

I updated to code to remove the depency on 'argsparser()'

The dataset I used is from: https://www.kaggle.com/datasets/gpiosenka/100-bird-species Though, I expect it work on any dataset.

Jason

from tensorflow.

schwefeljm avatar schwefeljm commented on April 28, 2024
    model = Sequential([
        data_augmentation,
        # layers.Rescaling(1./255, input_shape=(img_height, img_width, 3)),
        # layers.Conv2D(16, 3, padding='same', activation=activation1),
        # layers.MaxPooling2D(),
        layers.Conv2D(32, 3, padding='same', activation=activation1),
        layers.MaxPooling2D(),
        layers.Conv2D(48, 3, padding='same', activation=activation2),
        layers.MaxPooling2D(),
        layers.Conv2D(64, 3, padding='same', activation=activation1),
        layers.MaxPooling2D(),
        layers.Dropout(0.15),
        layers.Flatten(),
        layers.Dense(128, activation=activation2),
        layers.Dense(num_classes)
    ])

Sequential here might be imported from something other than tf.keras. Please take a look at #39001
@Aloqeely

I went through and forced 'tf.keras.models.Sequential' and it had no effect. Thank you for the suggestions, though.

Jason

from tensorflow.

pkgoogle avatar pkgoogle commented on April 28, 2024

I was able to replicate on tf-nightly as well as 2.16.1. gist, I reduced the reproducible sample to what mattered i.e. the training process is actually irrelevant. This appears to happen when using Keras with the TFLite converter in 2.16.1 onward.

Hi @haozha111, can you please take a look?

from tensorflow.

Takudzwamz avatar Takudzwamz commented on April 28, 2024

I'm experiencing the same error here

converter = tf.lite.TFLiteConverter.from_keras_model(model)
tfmodel = converter.convert()
open ("mobilenetv2_finetuned.tflite" , "wb") .write(tfmodel)

Is it gonna help if I downgrade to an older version of Tensorflow?

from tensorflow.

schwefeljm avatar schwefeljm commented on April 28, 2024

I'm experiencing the same error here

converter = tf.lite.TFLiteConverter.from_keras_model(model)
tfmodel = converter.convert()
open ("mobilenetv2_finetuned.tflite" , "wb") .write(tfmodel)

Is it gonna help if I downgrade to an older version of Tensorflow?

@Takudzwamz

For me it did.

from tensorflow.

pkgoogle avatar pkgoogle commented on April 28, 2024

Hi @Takudzwamz, it seems like 2.15 does not exhibit this behavior currently.

from tensorflow.

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.