612 questions
2
votes
1
answer
116
views
Saving embeddings from encoder efficiently with fast random access
I have embeddings (about 160 Million) that I created with a BERT-based encoder model.
Right now they are in a .pt format and takes about 500GB in the disk.
I want 2 things:
To save them in an ...
0
votes
0
answers
27
views
Netty. What may be a reson second processing the same frame?
I have a pipeline definition. My server correctly decodes the frame and generates the appropriate response using the encoder. However, after this, the decoders are run a second time with the same ...
-1
votes
1
answer
138
views
synthesizable encoder (non-priority) using system verilog for loop
I have a table of 16 entries where each entry is 4 bits wide. There is a 4 bit input search vector that i have to find in the table and then return the row number of the matched entry. The entries are ...
0
votes
0
answers
270
views
from encoder import inference as encoder ModuleNotFoundError: No module named 'encoder'. Trying to install Voice-Cloning with pip
I'm trying to install the Voice-Cloning Library with pip.
Reference: https://pypi.org/project/Voice-Cloning/
And I get the error in this line: from voice_cloning.generation import *
I get this error: ...
1
vote
0
answers
38
views
How to use Encoder predictions for additional loss and gradient calculations (Tensorflow)
Problem
I'm having troubles correctly adding physics-informed losses to my training code for my neural network.
Background
I have an encoder that takes an input curve, X(w), where w is an independent ...
0
votes
0
answers
29
views
STM32 Nucleo-F446RE Encoder Count only printing 0
I am trying to read the output of an encoder using CubeIDE. I have a DC motor with a magnetic encoder attached. When the encoders are measured using a multi-meter the outputs are ranging between 0 to ...
0
votes
1
answer
1k
views
What are the inputs of the first decoder in the transformer architecture
In the transformer architecture from the original paper, I referred many texts but I couldn't solve this insight.
Lets start with input sentence, "The cat jumped."
My understanding is, each ...
1
vote
1
answer
75
views
controlling solid state relay by rotary encoder error
I am making this project for my school: a whole fridge using Arduino. I used a ds18b20 temperature sensor, tm1637 to display the current temperature inside and a solid state relay to start the motor ...
0
votes
1
answer
86
views
Android mediacodec avc/h264 encoder always produces 1MB output buffer size
I am trying to use the hardware encoder for AVC encoding on android OMX.qcom.video.encoder.avc
My format settings look like
AMediaFormat_setString(avc_format, AMEDIAFORMAT_KEY_MIME, "video/avc&...
2
votes
0
answers
248
views
Spark Encoders.bean not working for generic class
I have a generic Java class
public class Person<T> {
private String name;
private List<T> attributes;
}
public class AttributeOne {
// some fields
}
public class AttributeTwo ...
1
vote
1
answer
280
views
Android media codec: Mismatch between encoder and decoder buffer sizes
I'm trying to implement a transcoding pipeline in Android using mediacodec library in cpp. I have a h265 decoder that is running in surface mode. I changed this to buffer mode by removing the surface ...
0
votes
1
answer
116
views
How can I define this RSC code using poly2trellis in matlab (or python)?
RSC Definition
I'm attempting to declare this RSC defined in this diagram using the poly2trellis function. After consulting the documentation for poly2trellis, I initially thought the correct approach ...
1
vote
1
answer
46
views
train row encoder and column encoder in Tensorflow
I am trying to create a custom neural network that has 2 encoders and one decoder. The row encoder takes in the input of size eg: 30x40 and the column encoder is supposed to take the same data in ...
3
votes
1
answer
1k
views
Annotated Transformer - Why x + DropOut(Sublayer(LayerNorm(x)))?
Please clarify if the Annotated Transformer Encoder LayerNorm implementation is correct.
Transformer paper says the output of the sub layer is LayerNorm(x + Dropout(SubLayer(x))).
LayerNorm should ...
1
vote
1
answer
301
views
ColumnTransformer output columns order
I am experiencing an issue with the columns order after applying ColumnTransformer. If you run the following code:
from sklearn.compose import ColumnTransformer
from sklearn.preprocessing import ...
1
vote
0
answers
131
views
Implementing Kalman Filter for Improved Measurement Accuracy in Autonomous Two-Wheeled Robot with Encoders
So i am a beginner in the field of robotics, and I have successfully created an autonomous two-wheeled robot equipped with two encoders. I've implemented a PI regulation on speed, and while the robot ...
0
votes
2
answers
310
views
Control the PWM duty cycle with a rotary encoder in C
I am currently working on a project where I am designing an embedded AVR system using ATmega88 as the controller.
I am trying to output a PWM signal and I want to control its duty cycle with a rotary ...
1
vote
1
answer
329
views
How do I get codec list supported by android device with react-native?
I'm making a video converter app using react-native and want to compress videos problem arrives, like video downloaded from youtube in 4k are av1 encoded the device that does not have av1 hardware ...
0
votes
0
answers
150
views
STM32 Timer triggers unwanted interrupts in encoder mode
I'm using STM32f446RET6 and have configured TIM5 in encoder mode.I want the interrupt of TIM5 be triggered every time the period of timer overflows and goes to 0. Bellow is my code. When I watch the ...
-3
votes
1
answer
320
views
Get a shorter encoded characters of an encrypted link using Java [duplicate]
I need to get a shorter characters using my encrypted link. This is is the encoded characters Im currently getting using my code: data=xvXTyQe6cthuC0GdQcOvCR5PKSlFiMqLBt7tM0zbxHs%3D. I want to achieve ...
0
votes
0
answers
54
views
batch_size, graph_size, input_dim = h.size() # input_dim=embed_dim ValueError: not enough values to unpack (expected 3, got 2)
I want an attention model for HCVRP problem:
import torch
import torch.nn.functional as F
import numpy as np
from torch import nn
import math
class SkipConnection(nn.Module):
def __init__(self, ...
1
vote
2
answers
165
views
Windows Media Player doesn't reproduce audio from file that was created with mp4box library
I am using the mp4box library to create a media file that includes video and audio tracks. I have set up my audio encoder output callback using the following code:
if (encodingAudioTrack === null) {
...
0
votes
1
answer
268
views
Decoder with LMIC and Chirpstack
I'm having a problem with the decoder I'm using. Using my ESP32 I'm encoding my value with the following code:
float Energia;
int sensorValue = Energia *100;
Serial.println("Reading is:" );
...
0
votes
1
answer
70
views
How to make an encoding dict from password
I am trying to make an encoder that does not have a predefined encoding/decoding dictionary in Python.
My plan is that it would use the string library to get all the things, then shuffle the ...
1
vote
1
answer
38
views
LSTM encoder model input
When I want to use the LSTM-encoder model for anomaly detection, can I input both normal data and anomaly data while training the LSTM-encoder model? Or is only the normal data needed to be used for ...
-1
votes
1
answer
38
views
ValueError: Input 0 of layer "CAE_Model" is incompatible with the layer: expected shape=(None, 576, 704, 3), found shape=(32, 704, 3)
error while model.fit
second screenshot
Tried reshaping, and give on the param out_put shape, BTW it doesn't exist
Help, second day trying to fix that`
0
votes
1
answer
70
views
encoder output features different from same wav file
I am passing a audio file through the Wav2Vec2FeatureEncoder. It passes through the 7 convolutional layer, the params being
conv_dim=(512,512,512,512,512,512,512)
feat_extract_norm="layer".
...
1
vote
0
answers
170
views
Adding special tokens in a text tokenization function or model
I'm trying to make a chatbot model using Tensorflow Javascript and I want to tokenize the text such that I can separate the context, the past messages and the current prompt to output a reply. So I ...
0
votes
1
answer
1k
views
Which loss function to choose for my encoder-decoder in PyTorch?
I am trying to create an encoder-decoder-model, which encodes an 10x10 list and should decode it to an 3x8x8 array/list. Which loss function should I choose to achieve this? I know that the shapes of ...
0
votes
2
answers
1k
views
I am using org.owasp.esapi in a project and I want to change the ESAPI.properties file such that it can whitelist '&' in the encoder, Can you help me
I am using org.owasp.esapi in a java project. I am using the ESAPI.encoder().forHTML() method for encoding the user input but this method encodes the '&' to "&" but I do not want to ...
0
votes
0
answers
48
views
comunication losses in encoders with can open protocol
Recently adquired two encoders RM7012 from IFM with CanOpen comunitacion, I have problems with the sychronization of these, I have comunication losses, when these encoders are working both at the same ...
1
vote
1
answer
625
views
Accuracy score for sklearn not returning a value
I have a dataset and have one hot encoded the target column (5 different strings throughout the entire column) using pd.get_dummies. I have then used sklearn's train_test_split function to create the ...
1
vote
0
answers
110
views
Encode image sequence to video stream and send it through network
I can get plenty of images of desktop capture, but I want to encode them with some video encoder, then send the video data through network. The another application (Data receiver) will get that data ...
1
vote
2
answers
186
views
How to implement Text2Image with CNNs and Transposed CNNs
I wanna implement text2image neural networks like the image below: Please see the image
using CNNs and Transposed CNNs with Embedding layer
import torch
from torch import nn
Input text :
text = &...
1
vote
0
answers
272
views
Django download a file with a wrong utf-8 encoder
I trying to make an api to download file from server folder but have some problem with encoder. This is my code:
@login_required(redirect_field_name="next",login_url='login_form')
def ...
0
votes
1
answer
562
views
How do I get the Latent Space Representation from an LSTM based Autoencoder?
I'm trying to construct an encoder to get the latent space in order to plot it. I don't really know if I can get it from the RepeatVector or if I have to add a Dense layer.
Here is my code:
model = ...
1
vote
1
answer
356
views
Encoding Decoding a field with any datatype assigned with value None in Scala
I am writing to write encoder/decoder for Any.
So suppose my class is
case class Demo(
field1: Any
)
and then I try to encoder it via
val myDemo=Demo(field1=None)
print(myDemo.asJson+"\n")
...
0
votes
0
answers
47
views
Call a C/C++ program with WiringPi in Python - Raspberry
I am creating a mobile robot at my work using a Raspberry 3b+ as microcontroller. To determine the robot displacement I am using a motor with encoder sensors.
The problem is: I need to read the ...
1
vote
1
answer
8k
views
Determining the original recording date of a video file
I received a video file that I am trying to determine when the video was originally recorded. The file is a .mov video that is muxed with an audio file. The EXIF data shows multiple creation/...
1
vote
1
answer
262
views
Ordinal Encoder causing issues during testing Machine Learning Model
I have the model with Accuracy of 97% and I am using Ordinal Encoder to fit and transform the data to numeric value. Saving both objects to .pkl. I am using Random Forest Classifier.
OrdinalEncoder(...
0
votes
1
answer
347
views
Is there any way to encode Non Numeric values in a dataframe column
I have a dataframe which includes both numeric and non numeric values (It includes some special characters like -, space etc). I want to encode that Non Numeric value to run corr(). Non numeric Column ...
0
votes
1
answer
549
views
Pandas incorrectly reading csv file
I was trying to read one csv file using;
df= pd.read_csv('Diff_Report.csv',on_bad_lines='skip',encoding='cp1252',index_col=None)
Input Example
But the code outputs as in the following screenshot. Why ...
0
votes
0
answers
909
views
Setting up Pulse per revolution value for RPM calculation with incremental encoder
This question is based on the following thread: Arduino RPM code with Quadrature Encoder 600ppr
Code:
const int encoder_a = 3; // Pin 3
const int encoder_b = 5; // Pin 5
long encoder_pulse_counter = 0;...
1
vote
1
answer
221
views
ksuid genration return string in go
I am using below function to generate ksuid in byte format but i need it to return ksuid in string format.
I tried returning id.string() value but i am getting below error
error:
cannot use id.String()...
3
votes
1
answer
12k
views
ValueError: The following `model_kwargs` are not used by the model: ['encoder_outputs'] (note: typos in the generate arguments will also show up
When I try to run my code for Donut for DocVQA model, I got the following error
"""Test"""
from donut import DonutModel
from PIL import Image
import torch
model = ...
0
votes
0
answers
360
views
Setting number of encoding slices to 1 using ffmpeg libs (libavcodec, libavutil, libavformat)
I implemented video encoder in C using libav libs. I could not seem to figure out how to set encoding slices to 1.
Here is what I'm doing while initializing encoder:
avcodec_register_all();
enc->...
0
votes
2
answers
3k
views
After Effects Add To Media Encoder Not Working
I'm trying to use the after effect and i try to use Media Encoder to eksport composition to mp4
but always show error like this
here i solution i had try
https://community.adobe.com/t5/adobe-media-...
0
votes
0
answers
71
views
audio streamming over ip one encoder multiple decoder
My radio stations are each in a city. I want to connect them via the Internet and manage them from one place. Is there any device that can be used other than a computer?
That is, like an encoder and ...
1
vote
1
answer
444
views
is H. 264 a codec (software used to encode/decode) or standard/format?
I am confused on, is H. 264 a codec (software used to encode/decode) or standard/format given; and there are software codecs that uses H.264 to encode/decode.
0
votes
1
answer
553
views
ffmpeg decoding on a encoded stream (coming as buffer)
I am getting enocded data in a uin8_t* buffer with the buffer size, can I use ffmpeg decoder to decode this data ?
If so How can I convert uint8_t* encoded_data to the AvPacket required by ffmpeg?
do ...