Lesson 2 In-Class Discussion

Could @jeremy go over the cycle_len and cycle_mult once again

3 Likes

For differential learning rates, do all three defined rates decrease at same rate?

So does cycle_mult=2 basically mean run 2x more epochs than the previous β€œcycle”?

2 Likes

Is there any way to visualize differences in datasets the way that Jeremy is drawing? I know that image data is highly dimensional and not 2d, but is there a way to know the generalizability or quality of the minima that the model is converging to?

Would something akin to TTA help in inference ? By giving different augmentations of test data, we may get some of them to be found by the model thereby increasing the chances of better predictions.

Can we do TTA on the actual test data set and not validation data set to get better prediction on the test data?

2 Likes

https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html

1 Like

Instead of taking the average of the TTA samples, could we instead weight it by the prediction confidence?

4 Likes

Yes, you can do it on test data.

2 Likes

@ravivijay Sorry what is TTA ? I must have missed it in lesson.

Keras to Tensorflow == Fastai to Pytorch :upside_down_face:

11 Likes

Test Time Augmentation.

So this is what stops us from using augmentation

learn = ConvLearner.pretrained(arch, data, precompute=True)

What if data pointed at an augmented set of data, rather than the un-augmented originals? Would there be harm in precomputing activations on the augmented set? Is it not worth the additional compute required?

The short answer is that it is not worth.

1 Like

Would we also eventually peel back fastai gradually, and see how things are done directly on PyTorch itself? Which would be useful for custom implementations, etc that may not exist in the fastai library

4 Likes

Can the pytorch models be used in mobile, in an Android and/or iOS app? Or, do we have to use something like Keras/TF?

@yinterian For the goup selection, what do since I am not attending physically today? I was group 5 on Monday but I am not able to attend in person today but I would like to be part of a group.

Tensorflow is a bit more mature in terms of mobile support, but I think PyTorch is getting around to it with recent introduction of ONNX format and ability to transfer it to Cafe2. This may be a useful resource: http://pytorch.org/tutorials/advanced/super_resolution_with_caffe2.html

2 Likes

TTA needs to be run everytime when we move this model to production right?

Probably not something possible yet but you can keep track on https://github.com/ysh329/deep-learning-model-convertor

1 Like