Loading Chunked Data Error #2736
-
Hey there, currently loading NSynth dataset via DeepLake I'm trying to load a simple audio file |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
HI @Ikerlandarech , thanks for flagging the issue. Looping in @fayaz-al who will take a look into it. |
Beta Was this translation helpful? Give feedback.
-
Hi @Ikerlandarech! Can you please share the full error traceback? I am able to fetch samples from that chunk so I need to take a closer look. |
Beta Was this translation helpful? Give feedback.
-
Sure thank you for helping me maybe is the problem is that I don't know how to load samples properly here's what I've done. I have loaded my training dataset (Nsynth) directly from deeplake: As we can observe Now here's when I think I don't understand what is happening, what I wanted to do is to play that I will share below the full error traceback, thank you again so very much for helping me out, I really appreciate it :) `ModuleNotFoundError Traceback (most recent call last) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\compression.py:1036, in _open_audio(file) ModuleNotFoundError: No module named 'av' During handling of the above exception, another exception occurred: ModuleNotFoundError Traceback (most recent call last) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\compression.py:1110, in _decompress_audio(file) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\compression.py:1038, in _open_audio(file) ModuleNotFoundError: PyAV is not installed. Please run The above exception was the direct cause of the following exception: SampleDecompressionError Traceback (most recent call last) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\chunk\sample_compressed_chunk.py:138, in SampleCompressedChunk.read_sample(self, local_index, cast, copy, sub_index, stream, decompress, is_tile, to_pil) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\compression.py:310, in decompress_array(buffer, shape, dtype, compression, start_idx, end_idx, step, reverse, to_pil, path) SampleDecompressionError: Could not decompress sample. Either the sample's buffer is corrupted, or it is in an unsupported format. Supported compressions: ['avi', 'bmp', 'dcm', 'dib', 'eps', 'flac', 'fli', 'gif', 'ico', 'im', 'jpeg', 'jpeg2000', 'las', 'lz4', 'mkv', 'mp3', 'mp4', 'mpo', 'msp', 'nii', 'nii.gz', 'pcx', 'ply', 'png', 'ppm', 'sgi', 'tga', 'tiff', 'wav', 'webp', 'wmf', 'xbm', None]. The above exception was the direct cause of the following exception: ReadSampleFromChunkError Traceback (most recent call last) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\chunk_engine.py:1994, in ChunkEngine.read_basic_sample_from_chunk(self, chunk_id, local_sample_index, index, worst_case_header_size, is_tile, decompress) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\chunk\base_chunk.py:642, in catch_chunk_read_error..wrapper(self, *args, **kwargs) ReadSampleFromChunkError: Unable to read sample from chunk 'audios/chunks/2820a70'. The above exception was the direct cause of the following exception: ReadSampleFromChunkError Traceback (most recent call last) Cell In[7], line 31 File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\IPython\lib\display.py:130, in Audio.init(self, data, filename, url, embed, rate, autoplay, normalize, element_id) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\IPython\lib\display.py:152, in Audio._make_wav(data, rate, normalize) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\IPython\lib\display.py:172, in Audio._validate_and_normalize_with_numpy(data, normalize) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\tensor.py:899, in Tensor.array(self, dtype) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\tensor.py:866, in Tensor.numpy(self, aslist, fetch_chunks) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\chunk_engine.py:1910, in ChunkEngine.numpy(self, index, aslist, use_data_cache, fetch_chunks, pad_tensor) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\chunk_engine.py:2341, in ChunkEngine._numpy(self, index, aslist, use_data_cache, fetch_chunks, pad_tensor) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\chunk_engine.py:2289, in ChunkEngine.get_samples(self, index, aslist, pad_tensor) File c:\Users\Usuario\Desktop\Academy Stuff\4t\TFG\INSTALLATIONS\TFG-DDSP\lib\site-packages\deeplake\core\chunk_engine.py:2257, in ChunkEngine._get_samples(self, chunk_id, row, idxs, index, is_polygon, aslist, pad_tensor) ReadSampleFromChunkError: Unable to read sample at index 0 from chunk 'audios/chunks/2820a70' in tensor audios. ` |
Beta Was this translation helpful? Give feedback.
-
@Ikerlandarech Fetching audio and video samples with deeplake requires the PyAV library. Install it using This is actually visible in the traceback but maybe we should do a better job of displaying it :) |
Beta Was this translation helpful? Give feedback.
-
Hey there! Thank you so much for helping out, here's the problem I'm currently facing: When doing the same operation defining:
|
Beta Was this translation helpful? Give feedback.
-
Hey there! Thank you so much everything working I found the problem. When loading for instance sample
Now everything is working fine, thank you so much for helping me out! |
Beta Was this translation helpful? Give feedback.
Solved I just reinstalled
deeplake[audio]
and the problem is no longer there.