"megatron/git@developer.sourcefind.cn:OpenDAS/megatron-lm.git" did not exist on "6be75e2a98fc10ff7212f30b81202f2dd6ecafd7"
Commit c961e92d authored by Hui Hui's avatar Hui Hui
Browse files

Revert changes that override the Github PR.

parent a17394cc
...@@ -294,13 +294,13 @@ ...@@ -294,13 +294,13 @@
" try:\n", " try:\n",
" f = urllib.request.urlopen(url)\n", " f = urllib.request.urlopen(url)\n",
" jpeg_str = f.read()\n", " jpeg_str = f.read()\n",
" orignal_im = Image.open(BytesIO(jpeg_str))\n", " original_im = Image.open(BytesIO(jpeg_str))\n",
" except IOError:\n", " except IOError:\n",
" print('Cannot retrieve image. Please check url: ' + url)\n", " print('Cannot retrieve image. Please check url: ' + url)\n",
" return\n", " return\n",
"\n", "\n",
" print('running deeplab on image %s...' % url)\n", " print('running deeplab on image %s...' % url)\n",
" resized_im, seg_map = MODEL.run(orignal_im)\n", " resized_im, seg_map = MODEL.run(original_im)\n",
"\n", "\n",
" vis_segmentation(resized_im, seg_map)\n", " vis_segmentation(resized_im, seg_map)\n",
"\n", "\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment