Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
ad4c142b
Commit
ad4c142b
authored
Oct 03, 2018
by
Alexander Pivovarov
Committed by
Tianqi Chen
Oct 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change cat image extension to png to match its download URL (#1800)
parent
31bb62bc
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
7 deletions
+8
-7
.gitignore
+1
-0
nnvm/tests/python/frontend/coreml/model_zoo/__init__.py
+1
-1
tutorials/nnvm/deploy_model_on_mali_gpu.py
+1
-1
tutorials/nnvm/deploy_model_on_rasp.py
+1
-1
tutorials/nnvm/from_keras.py
+2
-2
tutorials/nnvm/from_mxnet.py
+1
-1
tutorials/nnvm/from_mxnet_to_webgl.py
+1
-1
No files found.
.gitignore
View file @
ad4c142b
...
...
@@ -179,6 +179,7 @@ perf
*.h5
synset.txt
cat.jpg
cat.png
docs.tgz
cat.png
*.mlmodel
...
...
nnvm/tests/python/frontend/coreml/model_zoo/__init__.py
View file @
ad4c142b
...
...
@@ -25,7 +25,7 @@ def get_resnet50():
def
get_cat_image
():
url
=
'https://gist.githubusercontent.com/zhreshold/bcda4716699ac97ea44f791c24310193/raw/fa7ef0e9c9a5daea686d6473a62aacd1a5885849/cat.png'
dst
=
'cat.
jp
g'
dst
=
'cat.
pn
g'
real_dst
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
dst
))
download
(
url
,
real_dst
)
img
=
Image
.
open
(
real_dst
)
.
resize
((
224
,
224
))
...
...
tutorials/nnvm/deploy_model_on_mali_gpu.py
View file @
ad4c142b
...
...
@@ -91,7 +91,7 @@ block = get_model('resnet18_v1', pretrained=True)
######################################################################
# In order to test our model, here we download an image of cat and
# transform its format.
img_name
=
'cat.
jp
g'
img_name
=
'cat.
pn
g'
download
(
'https://github.com/dmlc/mxnet.js/blob/master/data/cat.png?raw=true'
,
img_name
)
image
=
Image
.
open
(
img_name
)
.
resize
((
224
,
224
))
...
...
tutorials/nnvm/deploy_model_on_rasp.py
View file @
ad4c142b
...
...
@@ -88,7 +88,7 @@ block = get_model('resnet18_v1', pretrained=True)
######################################################################
# In order to test our model, here we download an image of cat and
# transform its format.
img_name
=
'cat.
jp
g'
img_name
=
'cat.
pn
g'
download
(
'https://github.com/dmlc/mxnet.js/blob/master/data/cat.png?raw=true'
,
img_name
)
image
=
Image
.
open
(
img_name
)
.
resize
((
224
,
224
))
...
...
tutorials/nnvm/from_keras.py
View file @
ad4c142b
...
...
@@ -56,8 +56,8 @@ from PIL import Image
from
matplotlib
import
pyplot
as
plt
from
keras.applications.resnet50
import
preprocess_input
img_url
=
'https://github.com/dmlc/mxnet.js/blob/master/data/cat.png?raw=true'
download
(
img_url
,
'cat.
jp
g'
)
img
=
Image
.
open
(
'cat.
jp
g'
)
.
resize
((
224
,
224
))
download
(
img_url
,
'cat.
pn
g'
)
img
=
Image
.
open
(
'cat.
pn
g'
)
.
resize
((
224
,
224
))
plt
.
imshow
(
img
)
plt
.
show
()
# input preprocess
...
...
tutorials/nnvm/from_mxnet.py
View file @
ad4c142b
...
...
@@ -33,7 +33,7 @@ from mxnet.gluon.utils import download
from
PIL
import
Image
from
matplotlib
import
pyplot
as
plt
block
=
get_model
(
'resnet18_v1'
,
pretrained
=
True
)
img_name
=
'cat.
jp
g'
img_name
=
'cat.
pn
g'
synset_url
=
''
.
join
([
'https://gist.githubusercontent.com/zhreshold/'
,
'4d0b62f3d01426887599d4f7ede23ee5/raw/'
,
'596b27d23537e5a1b5751d2b0481ef172f58b539/'
,
...
...
tutorials/nnvm/from_mxnet_to_webgl.py
View file @
ad4c142b
...
...
@@ -148,7 +148,7 @@ def download_image():
from
PIL
import
Image
url
=
"https://github.com/dmlc/mxnet.js/blob/master/data/cat.png?raw=true"
img_name
=
"cat.
jp
g"
img_name
=
"cat.
pn
g"
gluon
.
utils
.
download
(
url
,
img_name
)
image
=
Image
.
open
(
img_name
)
.
resize
((
224
,
224
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment