Code Monkey home page Code Monkey logo

Comments (7)

alxfmpl avatar alxfmpl commented on July 19, 2024 1

Sure, note that I adjusted the layers a little but the general notion should be clear:

model = keras.Sequential(
    [
        layers.Input(shape=(x_train.shape[1], x_train.shape[2])),
        layers.Conv1D(
            filters=32, kernel_size=8, padding="same", strides=3, activation="relu"
        ),
        layers.Dropout(rate=0.2),
        layers.Conv1D(
            filters=16, kernel_size=8, padding="same", strides=3, activation="relu"
        ),
        layers.Dropout(rate=0.2),
        layers.Conv1D(
            filters=8, kernel_size=8, padding="same", strides=3, activation="relu"
        ),
        layers.Conv1D(filters=8, kernel_size=8, padding="same", activation="relu"),
        layers.UpSampling1D(size=3),
        layers.Dropout(rate=0.2),        
        layers.Conv1D(filters=16, kernel_size=8, padding="same", activation="relu"),
        layers.UpSampling1D(size=3),
        layers.Dropout(rate=0.2),
        layers.Conv1D(filters=32, kernel_size=8, padding="same", activation="relu"),
        layers.UpSampling1D(size=3),
        layers.Conv1D(filters=1, kernel_size=8, padding="same"),
    ]
)

from keras-io.

alxfmpl avatar alxfmpl commented on July 19, 2024

Hi,

I had the same problem, turns out that a Conv1DTranspose() layer, if I understood it correctly, is very similar to a
Conv1D() layer followed by a UpSampling1D() layer.

Hope this helps.

from keras-io.

jonathan-goh avatar jonathan-goh commented on July 19, 2024

Hi,

I had the same problem, turns out that a Conv1DTranspose() layer, if I understood it correctly, is very similar to a
Conv1D() layer followed by a UpSampling1D() layer.

Hope this helps.

Would you be able to show the code on the workaround?

from keras-io.

cwestby1 avatar cwestby1 commented on July 19, 2024

You can also define a Conv1DTranspose from scratch like @Guitaricet writes here: tensorflow/tensorflow#30309 (comment)

from keras-io.

SuryanarayanaY avatar SuryanarayanaY commented on July 19, 2024

Hi @CanK93 ,

We are in the process of going through backlogs. I found this is not an issue now. I have tried executing the Tutorial with TF2.12v and executes fine with Conv1DTranspose layer also.Please refer the attached gist.

Please cross check and feel free to close the issue. Thanks!

from keras-io.

github-actions avatar github-actions commented on July 19, 2024

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.

from keras-io.

github-actions avatar github-actions commented on July 19, 2024

This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further.

from keras-io.

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.