diff --git a/notebooks/getting_started_instance_segmentation.ipynb b/notebooks/getting_started_instance_segmentation.ipynb index 823ae5f56..e8bda880b 100644 --- a/notebooks/getting_started_instance_segmentation.ipynb +++ b/notebooks/getting_started_instance_segmentation.ipynb @@ -125,6 +125,19 @@ "from icevision.all import *" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Alternative option of importing icevision\n", + "\n", + "In some environments wildcard imports are not allowed (eg: Kubeflow Pipelines & distributed environment that rely on pickling). \n", + "\n", + "In that case you can call `import icevision.all as iv` instead of `from icevision.all import *`\n", + "\n", + "In that case you should reference icevision objects with the `iv.` prefix, so for instance one would do `iv.Dataset` instead of the regular approach of just doing `Dataset`, same for any other icevision object (eg: `iv.tfms.A.Adapter` instead of `tfms.A.Adapter` etc)." + ] + }, { "cell_type": "markdown", "metadata": { diff --git a/notebooks/getting_started_keypoint_detection.ipynb b/notebooks/getting_started_keypoint_detection.ipynb index 317d5549a..02fd65ecf 100644 --- a/notebooks/getting_started_keypoint_detection.ipynb +++ b/notebooks/getting_started_keypoint_detection.ipynb @@ -116,6 +116,19 @@ "from icevision.all import *" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Alternative option of importing icevision\n", + "\n", + "In some environments wildcard imports are not allowed (eg: Kubeflow Pipelines & distributed environment that rely on pickling). \n", + "\n", + "In that case you can call `import icevision.all as iv` instead of `from icevision.all import *`\n", + "\n", + "In that case you should reference icevision objects with the `iv.` prefix, so for instance one would do `iv.Dataset` instead of the regular approach of just doing `Dataset`, same for any other icevision object (eg: `iv.tfms.A.Adapter` instead of `tfms.A.Adapter` etc)." + ] + }, { "cell_type": "markdown", "metadata": { diff --git a/notebooks/getting_started_object_detection.ipynb b/notebooks/getting_started_object_detection.ipynb index 5061ba449..a13ff347e 100644 --- a/notebooks/getting_started_object_detection.ipynb +++ b/notebooks/getting_started_object_detection.ipynb @@ -143,6 +143,19 @@ "from icevision.all import *" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Alternative option of importing icevision\n", + "\n", + "In some environments wildcard imports are not allowed (eg: Kubeflow Pipelines & distributed environment that rely on pickling). \n", + "\n", + "In that case you can call `import icevision.all as iv` instead of `from icevision.all import *`\n", + "\n", + "In that case you should reference icevision objects with the `iv.` prefix, so for instance one would do `iv.Dataset` instead of the regular approach of just doing `Dataset`, same for any other icevision object (eg: `iv.tfms.A.Adapter` instead of `tfms.A.Adapter` etc)." + ] + }, { "cell_type": "markdown", "metadata": { diff --git a/notebooks/getting_started_semantic_segmentation.ipynb b/notebooks/getting_started_semantic_segmentation.ipynb index ff944619d..36dd5e519 100644 --- a/notebooks/getting_started_semantic_segmentation.ipynb +++ b/notebooks/getting_started_semantic_segmentation.ipynb @@ -148,6 +148,20 @@ "from icevision.all import *" ] }, + { + "cell_type": "markdown", + "id": "13d6ff3e", + "metadata": {}, + "source": [ + "### Alternative option of importing icevision\n", + "\n", + "In some environments wildcard imports are not allowed (eg: Kubeflow Pipelines & distributed environment that rely on pickling). \n", + "\n", + "In that case you can call `import icevision.all as iv` instead of `from icevision.all import *`\n", + "\n", + "In that case you should reference icevision objects with the `iv.` prefix, so for instance one would do `iv.Dataset` instead of the regular approach of just doing `Dataset`, same for any other icevision object (eg: `iv.tfms.A.Adapter` instead of `tfms.A.Adapter` etc)." + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -581,11 +595,9 @@ } ], "metadata": { - "interpreter": { - "hash": "fe738d56747ed9c8891b1c97864a5c22a0f14bdf3b7e6db02ccceae30cfa1132" - }, "kernelspec": { - "display_name": "Python 3.8.12 64-bit", + "display_name": "Python 3.10.4 64-bit", + "language": "python", "name": "python3" }, "language_info": { @@ -598,7 +610,12 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.12" + "version": "3.10.4" + }, + "vscode": { + "interpreter": { + "hash": "916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1" + } } }, "nbformat": 4,