Update to latest fastai
This commit is contained in:
@@ -734,7 +734,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"dls.valid.show_batch(max_n=4, rows=1)"
|
||||
"dls.valid.show_batch(max_n=4, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -765,7 +765,7 @@
|
||||
"source": [
|
||||
"bears = bears.new(item_tfms=Resize(128, ResizeMethod.Squish))\n",
|
||||
"dls = bears.dataloaders(path)\n",
|
||||
"dls.valid.show_batch(max_n=4, rows=1)"
|
||||
"dls.valid.show_batch(max_n=4, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -789,7 +789,7 @@
|
||||
"source": [
|
||||
"bears = bears.new(item_tfms=Resize(128, ResizeMethod.Pad, pad_mode='zeros'))\n",
|
||||
"dls = bears.dataloaders(path)\n",
|
||||
"dls.valid.show_batch(max_n=4, rows=1)"
|
||||
"dls.valid.show_batch(max_n=4, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -825,7 +825,7 @@
|
||||
"bears = bears.new(item_tfms=RandomResizedCrop(128, min_scale=0.3))\n",
|
||||
"dls = bears.dataloaders(path)\n",
|
||||
"dls.train.get_idxs = lambda: Inf.ones\n",
|
||||
"dls.train.show_batch(max_n=4, rows=1)"
|
||||
"dls.train.show_batch(max_n=4, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -880,7 +880,7 @@
|
||||
"bears = bears.new(item_tfms=Resize(128), batch_tfms=aug_transforms(mult=2))\n",
|
||||
"dls = bears.dataloaders(path)\n",
|
||||
"dls.train.get_idxs = lambda: Inf.ones\n",
|
||||
"dls.train.show_batch(max_n=8, rows=2)"
|
||||
"dls.train.show_batch(max_n=8, nrows=2)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1089,7 +1089,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"interp.plot_top_losses(5, rows=1)"
|
||||
"interp.plot_top_losses(5, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1929,10 +1929,25 @@
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"jupytext": {
|
||||
"split_at_heading": true
|
||||
},
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.7.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -362,7 +362,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"dls.show_batch(rows=1, cols=3)"
|
||||
"dls.show_batch(nrows=1, ncols=3)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -2525,10 +2525,25 @@
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"jupytext": {
|
||||
"split_at_heading": true
|
||||
},
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.7.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -653,7 +653,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"dls.show_batch(rows=1, cols=3)"
|
||||
"dls.show_batch(nrows=1, ncols=3)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -332,7 +332,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"dls.valid.show_batch(max_n=4, rows=1)"
|
||||
"dls.valid.show_batch(max_n=4, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -356,7 +356,7 @@
|
||||
"source": [
|
||||
"bears = bears.new(item_tfms=Resize(128, ResizeMethod.Squish))\n",
|
||||
"dls = bears.dataloaders(path)\n",
|
||||
"dls.valid.show_batch(max_n=4, rows=1)"
|
||||
"dls.valid.show_batch(max_n=4, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -380,7 +380,7 @@
|
||||
"source": [
|
||||
"bears = bears.new(item_tfms=Resize(128, ResizeMethod.Pad, pad_mode='zeros'))\n",
|
||||
"dls = bears.dataloaders(path)\n",
|
||||
"dls.valid.show_batch(max_n=4, rows=1)"
|
||||
"dls.valid.show_batch(max_n=4, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -405,7 +405,7 @@
|
||||
"bears = bears.new(item_tfms=RandomResizedCrop(128, min_scale=0.3))\n",
|
||||
"dls = bears.dataloaders(path)\n",
|
||||
"dls.train.get_idxs = lambda: Inf.ones\n",
|
||||
"dls.train.show_batch(max_n=4, rows=1)"
|
||||
"dls.train.show_batch(max_n=4, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -437,7 +437,7 @@
|
||||
"bears = bears.new(item_tfms=Resize(128), batch_tfms=aug_transforms(mult=2))\n",
|
||||
"dls = bears.dataloaders(path)\n",
|
||||
"dls.train.get_idxs = lambda: Inf.ones\n",
|
||||
"dls.train.show_batch(max_n=8, rows=2)"
|
||||
"dls.train.show_batch(max_n=8, nrows=2)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -605,7 +605,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"interp.plot_top_losses(5, rows=1)"
|
||||
"interp.plot_top_losses(5, nrows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1046,10 +1046,25 @@
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"jupytext": {
|
||||
"split_at_heading": true
|
||||
},
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.7.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -204,7 +204,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"dls.show_batch(rows=1, cols=3)"
|
||||
"dls.show_batch(nrows=1, ncols=3)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1743,10 +1743,25 @@
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"jupytext": {
|
||||
"split_at_heading": true
|
||||
},
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.7.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -439,7 +439,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"dls.show_batch(rows=1, cols=3)"
|
||||
"dls.show_batch(nrows=1, ncols=3)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user