Skip to content

Commit

Permalink
fix network name in imagenet-camera status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Nov 20, 2018
1 parent 5f62e35 commit 9181361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imageNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ imageNet::imageNet() : tensorNet()
{
mCustomClasses = 0;
mOutputClasses = 0;

mNetworkType = CUSTOM;
}


Expand All @@ -56,6 +58,7 @@ imageNet* imageNet::Create( imageNet::NetworkType networkType, uint32_t maxBatch
return NULL;
}

net->mNetworkType = networkType;
return net;
}

Expand Down Expand Up @@ -90,6 +93,8 @@ bool imageNet::init( imageNet::NetworkType networkType, uint32_t maxBatchSize,
return init( "networks/googlenet.prototxt", "networks/bvlc_googlenet.caffemodel", NULL, "networks/ilsvrc12_synset_words.txt", IMAGENET_DEFAULT_INPUT, IMAGENET_DEFAULT_OUTPUT, maxBatchSize, precision, device, allowGPUFallback );
else if( networkType == imageNet::GOOGLENET_12 )
return init( "networks/GoogleNet-ILSVRC12-subset/deploy.prototxt", "networks/GoogleNet-ILSVRC12-subset/snapshot_iter_184080.caffemodel", NULL, "networks/GoogleNet-ILSVRC12-subset/labels.txt", IMAGENET_DEFAULT_INPUT, "softmax", maxBatchSize, precision, device, allowGPUFallback );
else
return NULL;
}


Expand Down
1 change: 1 addition & 0 deletions imageNet.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class imageNet : public tensorNet
*/
enum NetworkType
{
CUSTOM,
ALEXNET, /**< 1000-class ILSVR12 */
GOOGLENET, /**< 1000-class ILSVR12 */
GOOGLENET_12 /**< 12-class subset of ImageNet ILSVR12 from the tutorial */
Expand Down

0 comments on commit 9181361

Please sign in to comment.