Comments (6)
I am trying to generate and free the graph for same operations I need input node and output node.
Based on graph visualization on tensorboard seems like input node is Placeholder and output node is concat_1
from tensorflow-yolo-v3.
In commit dd09029 I named detections node, so now output node is 'detections'. The input node is the placeholder defined in demo.py
from tensorflow-yolo-v3.
I am using latest commit, I made changes to save session using saver.save(sess,export_dir)
Further I use save_freeze.py to freeze graph which takes output node as parameter and it fails while running it using "detections"
you can find save_freeze.py here :
https://github.com/linux-devil/lstm_practice/blob/master/save_freeze.py
command :
python save_freeze.py --model_dir "/xxxx/yolov3_checkpoint" --output_node_names "detections"
Following is the graph as visualized on tensorboard:
There is no node named "detections"
from tensorflow-yolo-v3.
Any thoughts?
from tensorflow-yolo-v3.
@linux-devil, there should be node named '<scope>/yolo-v3/detections'. Check this code:
import tensorflow as tf
import numpy as np
from yolo_v3 import yolo_v3, load_weights, detections_boxes
inputs = tf.placeholder(tf.float32, [1, 416, 416, 3])
with tf.variable_scope('detector'):
detections = yolo_v3(inputs, 80)
t = tf.get_default_graph().get_tensor_by_name('detector/yolo-v3/detections:0')
print(t)
from tensorflow-yolo-v3.
while running in android using .pb file, I am getting no node "detections"
: -
java.lang.RuntimeException: Node 'detections' does not exist in model 'file:///android_asset/tiny_graph.pb'
So indeed there is no node detections. What to do?
from tensorflow-yolo-v3.
Related Issues (20)
- Optimize TensorFlow-yolov3 weight with TF-TRT
- Issue in RECURRENT NEURAL NETWORK using Tensorflow 2.0
- How to run inference with Tiny YoloV3 HOT 1
- Unable to convert model with rectangular shape
- yolov4
- yolo
- ValueError: cannot reshape array of size 3122147 into shape (1024,512,3,3) HOT 1
- incorrect input bounding box HOT 1
- Doesn't work with TF 2
- NotImplementedError: Cannot convert a symbolic Tensor (detector/yolo-v3/meshgrid/Size_1:0) to a numpy array. HOT 1
- Bounding box generated is not fit with the object HOT 1
- Convert .pb to .tflite file HOT 5
- 请问大佬如何实现多gpu训练
- Unable to customize the layers for .weights to .pb conversion HOT 1
- cannot reshape array of size 501 into shape (85) HOT 5
- data format in yolo_v3.py
- yolov3_tiny_3l support! HOT 9
- yolov3 with changed .cfg convert HOT 2
- AttributeError: module 'tensorflow' has no attribute 'contrib' HOT 1
- how to get the predictions from the output_details
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow-yolo-v3.