Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

111
Visualizações
Alternative to pickle for javascript

I'm working on a deep learning project and I got stucked: I have a jupiter notebook that processes a dataset of images and returns a list of tensors in python, which I pickle with pickle.dump(). Before, I was unpickling the list in pyhon, and then using it to train my model, so I had no issues... But now I need those pickled data loaded also in the browser (to be able to use them with tensorflow js). Do you know any good alternative to pickle? Obviously I could save my data in a different format in python, so that after I'd be able to load them in js... I just don't know which format is the best (JSON?).

To be clearer on the type of data, this is my data before pickling/after unpickling it in python:

tf.Tensor(
[[[[ 31.741358  36.196915  36.969135]
   [ 31.762732  40.762733  39.762733]
   [ 28.562115  38.562115  37.562115]
   ...
   [ 21.795372  27.795372  27.795372]
   [ 29.314323  33.314323  32.314323]
   [ 25.28419   29.28419   28.28419 ]]

  [[ 33.765278  39.765278  39.765278]
   [ 31.849304  40.849304  39.849304]
   [ 29.36111   39.36111   38.36111 ]
   ...

Thank you in advance!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda