Giter Club home page Giter Club logo

Comments (4)

Freephi avatar Freephi commented on August 21, 2024

I fixed the error by hardcoding the height and width to the input image size in core/util/downsampler if the extracted height is None. But I don't think that's how it should work...

from unflow.

MAGI-Yang avatar MAGI-Yang commented on August 21, 2024

I also met this problem and I found this guy provide a solution in his fork.
https://github.com/bryanyzhu/UnFlow
It works on me but I am not sure if that should be the right way.

from unflow.

elias-1 avatar elias-1 commented on August 21, 2024

@MAGI-Yang Can you share the solution here? I found the repo is not existing now.
Besides, for the problem, I found tensorflow with version 1.12 could infer the shape of the tensor built by the tf.shape. but the tensorflow with version 1.7 can not do this. I wonder if this is the reason why this error occurs? Strangely, the author could run the code......

from unflow.

elias-1 avatar elias-1 commented on August 21, 2024

with tensorflow v1.7

import tensorflow as tf
a= tf.ones([2,2])
b=tf.shape(a)
b
<tf.Tensor 'Shape:0' shape=(2,) dtype=int32>
c=tf.ones([b[0], b[1]])
c
<tf.Tensor 'ones_1:0' shape=(?, ?) dtype=float32>

with tensorflow v1.12

import tensorflow as tf
a= tf.ones([2,2])
b=tf.shape(a)
c=tf.ones([b[0], b[1]])
c
<tf.Tensor 'ones_1:0' shape=(2, 2) dtype=float32>

from unflow.

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.