import io def sample_loader(raw: dict) -> dict: """ Load the sample from the raw data. Example content of wds data: - Example of wds data 100_100.img 100_100.json 100_100.synthesized_683016ff-bb67-4a12-a873-a7e5d4132903.wav.flac 100_100.synthesized_6a7b3a1c-05a9-4720-b7e6-f7028415dc71.wav.flac 100_100.synthesized_7c4b39ba-20ef-4319-bd94-291c94ad362a.wav.flac 100_100.synthesized_932f067b-2b9a-425d-b8e6-f74ca83335a2.wav.flac Content of 100_100.json: { "num_image": 7, "length": 2049, "label_length": 157, "conversations": [ { "from": "human", "value": "