question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with TFRecord from URL

See original GitHub issue

I’m building a plugin for CML using TFRecord files. When I point the MultiURL method at https://storage.ecmwf.europeanweather.cloud/MAELSTROM_AP3/TFR/TripCloud0.0.tfrecord the file is successfully downloaded and loaded. When I point it at https://storage.ecmwf.europeanweather.cloud/MAELSTROM_AP3/TFR/TripCloud0.1.tfrecord the call to cml.load_source(…) fails with

Unknown file type /hugetmp/tmp-climetlab/url-63428528b56eb9c50418511287b38d1c7c53e6e203671861fb71faf86e6cbb72.man (b'PP\x00\x00\x00\x00\x00\x00'), ignoring

Examining the cache directory, the first file has been downloaded as a .tfrecord file and the second has been downloaded as a .man file. Thanks. Mat

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
floriankrbcommented, Jul 22, 2021

Works out-of-the box with version 0.8.9. No need for the “extension” argument.

1reaction
floriankrbcommented, Jul 21, 2021

This issue definitely comes from the http server, but we can try some workarounds.

we could add an argument “extension” to load_source for urls. This would work as:

t = cml.load_source(
    "url",
    "https://storage.ecmwf.europeanweather.cloud/MAELSTROM_AP3/TFR/TripCloud0.1.tfrecord",
    extension="tfrecord",
)
t.to_tfdataset()

This would be experimental and may not work in future release (we will keep the functionaly if it is needed)

Read more comments on GitHub >

github_iconTop Results From Across the Web

issue while generating tf.record #31 - GitHub
i solved this issue by rename correctly the xml file (inside of it) and the image file. both have to be in same...
Read more >
tensorflow: what's wrong with my .tfrecords file? - Stack Overflow
The problem here is that, thanks to your decoded image in the tfrecord file, every example you have is rather big in size....
Read more >
TFRecord and tf.train.Example | TensorFlow Core
A TFRecord file contains a sequence of records. The file can only be read sequentially. Each record contains a byte-string, for the data-payload,...
Read more >
TFRecords: Learn to Use TensorFlow # 1 Helpful File Format
Because working with TFRecords is not very user-friendly! In this tutorial, you will learn: How to write your data into the TFRecord file...
Read more >
Tensorflow Records? What they are and how to use them
In this post I will explain the components required to structure and write a TFRecord file, and explain in detail how to write...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found