Coder Social home page Coder Social logo

Comments (6)

linux-devil avatar linux-devil commented on May 11, 2024

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.

mystic123 avatar mystic123 commented on May 11, 2024

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.

linux-devil avatar linux-devil commented on May 11, 2024

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:
graph_large_attrs_key _too_large_attrs limit_attr_size 1024 run 1
There is no node named "detections"

from tensorflow-yolo-v3.

linux-devil avatar linux-devil commented on May 11, 2024

Any thoughts?

from tensorflow-yolo-v3.

mystic123 avatar mystic123 commented on May 11, 2024

@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.

STG284 avatar STG284 commented on May 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.