Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.Old code had some deprecated code. Updated the code to address the deprecated code. 2. File download using wget were failing. Added flag --no-check-certificate to fix the issue. #4809

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"## Introduction\n",
"\n",
Expand Down Expand Up @@ -105,7 +107,7 @@
"source": [
"import sys\n",
"\n",
"!{sys.executable} -m pip install opencv-python\n",
"!{sys.executable} -m pip install opencv-python--headless\n",
"!{sys.executable} -m pip install mxnet"
]
},
Expand All @@ -129,7 +131,7 @@
"import sagemaker\n",
"\n",
"bucket = sagemaker.Session().default_bucket()\n",
"prefix = \"DEMO-ObjectDetection-birds\"\n",
"prefix = \"demo-object-detection-birds\"\n",
"\n",
"print(\"s3://{}/{}/\".format(bucket, prefix))"
]
Expand Down Expand Up @@ -405,6 +407,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true,
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -847,6 +850,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true,
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -1089,11 +1093,11 @@
},
"outputs": [],
"source": [
"!wget -q -O multi-goldfinch-1.jpg https://t3.ftcdn.net/jpg/01/44/64/36/500_F_144643697_GJRUBtGc55KYSMpyg1Kucb9yJzvMQooW.jpg\n",
"!wget -q -O northern-flicker-1.jpg https://upload.wikimedia.org/wikipedia/commons/5/5c/Northern_Flicker_%28Red-shafted%29.jpg\n",
"!wget -q -O northern-cardinal-1.jpg https://cdn.pixabay.com/photo/2013/03/19/04/42/bird-94957_960_720.jpg\n",
"!wget -q -O blue-jay-1.jpg https://cdn12.picryl.com/photo/2016/12/31/blue-jay-bird-feather-animals-b8ee04-1024.jpg\n",
"!wget -q -O hummingbird-1.jpg http://res.freestockphotos.biz/pictures/17/17875-hummingbird-close-up-pv.jpg"
"!wget -q --no-check-certificate -O multi-goldfinch-1.jpg https://t3.ftcdn.net/jpg/01/44/64/36/500_F_144643697_GJRUBtGc55KYSMpyg1Kucb9yJzvMQooW.jpg\n",
"!wget -q --no-check-certificate -O northern-flicker-1.jpg https://upload.wikimedia.org/wikipedia/commons/5/5c/Northern_Flicker_%28Red-shafted%29.jpg\n",
"!wget -q --no-check-certificate -O northern-cardinal-1.jpg https://cdn.pixabay.com/photo/2013/03/19/04/42/bird-94957_960_720.jpg\n",
"!wget -q --no-check-certificate -O blue-jay-1.jpg https://cdn12.picryl.com/photo/2016/12/31/blue-jay-bird-feather-animals-b8ee04-1024.jpg\n",
"!wget -q --no-check-certificate -O hummingbird-1.jpg http://res.freestockphotos.biz/pictures/17/17875-hummingbird-close-up-pv.jpg"
]
},
{
Expand Down Expand Up @@ -1283,6 +1287,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true,
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -1960,9 +1965,9 @@
],
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3 (MXNet 1.9 Python 3.8 CPU Optimized)",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-west-2:236514542706:image/mxnet-1.9-cpu-py38-ubuntu20.04-sagemaker-v1.0"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1974,7 +1979,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down