Comments (7)
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.
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.
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 aUpSampling1D()
layer.Hope this helps.
Would you be able to show the code on the workaround?
from keras-io.
You can also define a Conv1DTranspose from scratch like @Guitaricet writes here: tensorflow/tensorflow#30309 (comment)
from keras-io.
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.
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.
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)
- Could not find TensorRT HOT 3
- Error occurred in the Named Entity Recognition using Transformers example HOT 6
- Support Distributed Training for Fine-tuning Stable Diffusion Example HOT 5
- kagglecatsanddogs_5340.zip not available to downoad - image_classification_from_scratch.py HOT 4
- Problem with training yolov8 on TPU
- model not converging the sparse categorical accuracy stays same for the whole epochs. HOT 6
- batch out of range & loss value becomes 'nan' when running monocular depth estimation HOT 6
- How to make individual predictions using the FNet example? HOT 4
- Multi-GPU distributed training with PyTorch
- [Movielens Example] Impossibile to save model: Cannot serialize object Ellipsis HOT 4
- TypeError: Sampler.__call__() got an unexpected keyword argument 'end_token_id' HOT 2
- ValueError: The filepath provided must end in `.keras` (Keras model format). Received: filepath=Model_ckpt.h5 HOT 10
- Hardware requirement for examples/rl/deep_q_network_breakout.py? HOT 5
- bayesian_neural_networks failed with Mixed Precision enabled HOT 3
- Would it be possible to make lstm_seq2seq support mixed precision? HOT 1
- Will it be a good Idea to add a tutorial to train a Image Classification suing ViT using CLS token. HOT 2
- Cannot export a slightly customized XLMRoberta model from keras_nlp HOT 1
- tutorial bug in consistency_training HOT 4
- Help runing the lastest version of ".\examples\vision\captcha_ocr.py" HOT 1
- Timeseries Classification Transformer: Last -> First HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras-io.