Closed rbracco closed 5 years ago
You can't directly pass a Pipeline
for item_tfms
and batch_tfms
, just a list of transforms, since it adds other to it (like ToTensor in your example). Just remove the Pipeline
and you should be fine.
Thanks that fixes it.
I pulled the latest code and it breaks the DataBlock in our audio code.
Full stack trace:
%debug shows us what's going on...
funcs contains a single Transform (toTensor) and a pipeline, when it tries to sort them by order...
the order of the single transform is an int, and the pipeline's order is an L and trying to compare them causes the error.
Hope this was clear enough, please let me know if you need any other info.