Using Densenet or etc

learn = cnn_learner(data, models.resnet50, metrics=error_rate)

There is my code and ı want to use Densenet or different source models etc. How can ı use them ? .

is there something like line of code
learn = cnn_learner(data, models.Densenet121, metrics=error_rate)


Yes you can. Infact, if you hit tab after

learn = cnn_learner(data, models.

You’ll get a list of all possible architectures you can use with the fastai library.