Wolfram Computation Meets Knowledge

Inception V1 Trained on Places365 Data

Identify the scene type of an image

Released in 2016 by the MIT Computer Science and Artificial Intelligence Laboratory as a pre-trained model for the launch of the Places365 dataset (a subset of the Places2 dataset). The model is based on the Inception V1 architecture.

Number of layers: 147 | Parameter count: 6,347,677 | Trained size: 26 MB

Training Set Information

Performance

Examples

Resource retrieval

Retrieve the resource object:

In[1]:=
ResourceObject["Inception V1 Trained on Places365 Data"]
Out[1]=

Get the pre-trained net:

In[2]:=
NetModel["Inception V1 Trained on Places365 Data"]
Out[2]=

Basic usage

Find the type of scene of an image:

In[3]:=
CloudGet["https://www.wolframcloud.com/objects/14b25c9c-d45c-4125-9fa9-5b8631c2fa2e"] (* Evaluate this cell to copy the example input from a cloud object *)
Out[3]=

Obtain the probabilities of the most likely scenes:

In[4]:=
CloudGet["https://www.wolframcloud.com/objects/104a1688-b271-4e64-8d99-a44aea316ba7"] (* Evaluate this cell to copy the example input from a cloud object *)
Out[4]=

Net information

Inspect the number of parameters of all arrays in the net:

In[5]:=
NetInformation[
 NetModel["Inception V1 Trained on Places365 Data"], \
"ArraysElementCounts"]
Out[5]=

Obtain the total number of parameters:

In[6]:=
NetInformation[
 NetModel["Inception V1 Trained on Places365 Data"], \
"ArraysTotalElementCount"]
Out[6]=

Obtain the layer type counts:

In[7]:=
NetInformation[
 NetModel["Inception V1 Trained on Places365 Data"], \
"LayerTypeCounts"]
Out[7]=

Display the summary graphic:

In[8]:=
NetInformation[
 NetModel["Inception V1 Trained on Places365 Data"], "SummaryGraphic"]
Out[8]=

Export to MXNet

Export the net into a format that can be opened in MXNet:

In[9]:=
jsonPath = 
 Export[FileNameJoin[{$TemporaryDirectory, "net.json"}], 
  NetModel["Inception V1 Trained on Places365 Data"], "MXNet"]
Out[9]=

Export also creates a net.params file containing parameters:

In[10]:=
paramPath = FileNameJoin[{DirectoryName[jsonPath], "net.params"}]
Out[10]=

Get the size of the parameter file:

In[11]:=
FileByteCount[paramPath]
Out[11]=

The size is similar to the byte count of the resource object:

In[12]:=
ResourceObject["Inception V1 Trained on Places365 Data"]["ByteCount"]
Out[12]=

Represent the MXNet net as a graph:

In[13]:=
Import[jsonPath, {"MXNet", "NodeGraphPlot"}]
Out[13]=

Requirements

Wolfram Language 11.1 (March 2017) or above

Reference