Closed Willtl closed 1 year ago
Hi @Willtl, I'm not sure I understand what you want to do? CutMix1d is available as a callback in tsai. You can pass it to any Learner (tslearner, TSClassifier, etc). You just need to add cbs=CutMix1d(). The callback will apply CutMix to every batch during training. Does this answer your question?
Hello @oguiza, I appreciate your response!
My objective is to incorporate CutMix1d into my training loop. Specifically, I want to use it on each batch of series and targets to obtain the CutMix1d output. However, it appears that CutMix1d can only be used as a callback from a Leaner.
In essence, my goal is to use CutMix1d from the tsai library in my PyTorch project without relying on other components such as the Learner.
Is there a way that I can use mixed augmentations on my batch, as in the code below?