deepdetect | Deep Learning API and Server in C++14 support for Caffe | Machine Learning library
kandi X-RAY | deepdetect Summary
kandi X-RAY | deepdetect Summary
Deep Learning API and Server in C++14 support for Caffe, PyTorch,TensorRT, Dlib, NCNN, Tensorflow, XGBoost and TSNE
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of deepdetect
deepdetect Key Features
deepdetect Examples and Code Snippets
Community Discussions
Trending Discussions on deepdetect
QUESTION
I am trying to adapt the example retrain script ( https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/image_retraining/retrain.py ) to use the Inception V4 model.
The script already supports the retraining of Inception V3 (2015) as well as different versions of Mobilenets.
What I've done so far:
Since the script uses protobuf (.pb) files and not checkpoints (.ckpt), I downloaded the inception_v4.pb
from here: https://deepdetect.com/models/tf/inception_v4.pb. As far as I understand, one could also have loaded the checkpoint and used the freeze graph tool to obtain the same file.
Then, I viewed the graph in tensorboard using the tensorflow python tool import_pb_to_tensorboard.py
which can be found in the tensorflow github repository.
From there (correct me if I am not wrong) I found that the resized_input_tensor_name
is called InputImage
whereas the bottleneck_tensor_name
is InceptionV4/Logits/Logits/MatMul
with bottleneck_tensor_size
is 1001
.
Having this information I tried to adapt the create_model_info(architecture)
function of the retrain script by adding:
ANSWER
Answered 2019-Jul-23 at 19:48I'm working through the same thing currently.
Try to add :0
to the end of your bottleneck_tensor_name
and your resized_input_tensor_name
.
If you'll notice in retrain.py
, Google also uses this :0
nomenclature.
My suspicion is that, for you, InceptionV4/Logits/Logits/MatMul
is just an operation, which you're not trying to get for this script, while InceptionV4/Logits/Logits/MatMul:0
is the first tensor instantiated from that operation, which you are trying to get for this script.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install deepdetect
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page