Questions tagged [encoder-decoder]
184 questions
1
vote
1 answer
RNN encoder-decoder model keeps overfitting
i've trainning a machine translation model (from english to vietnamese) with RNN, LSTM with 25000 example pairs (for training set -> 20000, test set -> 5000) the model i used like below but val_acc always reach to ~0,37 and does not increment…

An Lưu Công
- 241
- 1
- 2
- 6
1
vote
0 answers
Re-encoding a context vector after every step of decoding?
I am currently working on a sequence model which aims to predict the head orientation of somebody watching VR for an arbitrary amount of frames in the future.
Using an encoder-decoder paradigm, a person's previous 100 frames of head orientation and…

Paul Mikulskis
- 71
- 7
1
vote
2 answers
Getting graph disconnected error when trying to build encoder-decoder model in Keras
I am trying to implement, in Keras, a simplified version of the encoder-decoder model based on the one in the image below (source: https://arxiv.org/pdf/1805.07685.pdf). Note there is only one encoder and decoder in this model, they have been rolled…

Physbox
- 385
- 4
- 14
1
vote
0 answers
Can not convert a LuongAttention into a Tensor or Operation
I try to implement an encoder-decoder model in tensorflow following the tutorial https://www.tensorflow.org/tutorials/seq2seq
I done a simple encoder-decoder model
from __future__ import print_function
import numpy as np
import tensorflow as…

Antonina
- 604
- 1
- 5
- 16
1
vote
2 answers
Base64.Decoder returning foreign characters
I am building a small application to turn the text in a text file to Base64 then back to normal. The decoded text always returns some Chinese characters in the beginning of the first line.
public EncryptionEngine(File appFile){
this.appFile=…

K.Milli
- 81
- 2
- 10
1
vote
0 answers
I am using rnn_decoder and getting error that inputs are not iterable
I am getting this error and not able to fix it:
~.conda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py
in iter(self)
394 if context.in_graph_mode():
395 raise TypeError(
396 …

MRM
- 1,099
- 2
- 12
- 29
1
vote
1 answer
How to build a decoder using dynamic rnn in Tensorflow?
I know how to build an encoder using dynamic rnn in Tensorflow, but my question is how can we use it for decoder?
Because in decoder at each time step we should feed the prediction of previous time step.
Thanks in advance!

MRM
- 1,099
- 2
- 12
- 29
1
vote
1 answer
Error trying to decode 4K video using NVDEC
I am trying to convert a 4K HEVC MKV file of 70GB into another HECV file but with less size. I am using FFmpeg with Nvidia acceleration but when I execute the following command an error appears:
ffmpeg -y -vsync 0 -hwaccel_device 0 -hwaccel cuvid…

Nestoraj
- 722
- 2
- 6
- 19
1
vote
0 answers
Attention mechanism in spelling correction model
I'm trying to test attention mechanism in this code (based on the work of MajorTal):
def generate_model(output_len, chars=None):
"""Generate the model"""
print('Build model...')
chars = chars or CHARS
model = Sequential()
#…
1
vote
0 answers
Decoder PNG image in C#
I the web server must be written in C#, which will come through http image with format PNG. The program must impose a filter on these images. The server will be multithreaded, it's van speed of processing.
In .NET is a System.Drawing.Bitmap class,…

Kirill Podsuhin
- 19
- 4
1
vote
0 answers
How do I read a json file with Python3 with chunks of data different codecs?
I have a json file that I have to push into MongoDB. There are segments of data that are differently encoded. Like
{
"Type":"File",
"Start_Time":"2017-08-07T22:15:16.147Z",
"Finish_Time":"2017-08-07T22:15:16.147Z",
…

Shalini
- 19
- 4
0
votes
1 answer
Does UTF-8 content could be malformed in Java
I am trying to create a test case in java to test
decoder.onMalformedInput(CodingErrorAction.REPLACE);
decoder.onUnmappableCharacter(CodingErrorAction.REPLACE);
I need some character in UTF_8 Charset which are able to test them.

Kevin Patel
- 15
- 1
0
votes
1 answer
with torch.no_grad() Changes Sequence Length During Evaluation Mode
I built a TransformerEncoder model, and it changes the output's sequence length if I use "with torch.no_grad()" during the evaluation mode.
My model details:
class TransEnc(nn.Module):
def __init__(self,ntoken: int,encoder_embedding_dim:…

Leon
- 73
- 1
- 1
- 7
0
votes
0 answers
How to perform inference for sequence 2 sequence models in tensorflow?
I am trying to build a sequence-to-sequence model in TensorFlow from scratch for English to German translation. After training the model when I try to do inference using a sentence it doesn't predict anything else other than token. I just need a…

Na462
- 11
- 2