You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rank 1 inferred the following `['str', 'pickle', 'pickle']` data format.
But expect:
Rank 1 inferred the following `['str', 'tif', 'tif']` data format.
The script generates the same number of chunk files for both train and test, although train has significantly more tifs..
litdata==0.2.19
Reproducible example:
fromlitdata.streaming.serializersimport_SERIALIZERSimage_path='/teamspace/studios/this_studio/dataset/test/T10VDK_20200519T193911_tile_0_7.tif'defevaluate_serializer(filename: str) ->str:
""" Evaluate which serializer would be used for a given filename. Args: filename: The name of the file to evaluate. Returns: The name of the selected serializer. """# Iterate through serializers in the order defined in _SERIALIZERSforserializer_name, serializerin_SERIALIZERS.items():
ifserializer.can_serialize(filename):
returnserializer_name# If no serializer can handle the file, raise an exceptionraiseValueError(f"No suitable serializer found for filename: {filename}")
assertevaluate_serializer(image_path) =='pickle'
The text was updated successfully, but these errors were encountered:
🐛 Bug
Returning paths to tifs, but they are inferred as pickle:
Logs
But expect:
The script generates the same number of chunk files for both train and test, although train has significantly more tifs..
litdata==0.2.19
Reproducible example:
The text was updated successfully, but these errors were encountered: