mirror of
https://github.com/fastai/fastbook.git
synced 2025-04-05 02:10:48 +00:00
Error in the The operator 'aten::_linalg_solve_ex.result' in the aug_transforms function in the Data Augmentation
Fixes #588
This commit is contained in:
parent
f6e40a805d
commit
ac14ac7bb9
@ -926,7 +926,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"bears = bears.new(item_tfms=Resize(128), batch_tfms=aug_transforms(mult=2))\n",
|
"custom_aug_transforms = [RandomResizedCrop(128, min_scale=0.35), Flip(), Brightness(), Contrast(), Rotate(max_deg=10.0)]\n",
|
||||||
|
"bears = bears.new(item_tfms=Resize(128), batch_tfms=custom_aug_transforms)\n",
|
||||||
"dls = bears.dataloaders(path)\n",
|
"dls = bears.dataloaders(path)\n",
|
||||||
"dls.train.show_batch(max_n=8, nrows=2, unique=True)"
|
"dls.train.show_batch(max_n=8, nrows=2, unique=True)"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user