GithubHelp home page GithubHelp logo

Comments (1)

HienTran1997 avatar HienTran1997 commented on August 20, 2024

Ok I Just find the way to fix this predict.py on google colab
Step1: Just choose the Tensorflow 1.x
%tensorflow_version 1.x
Step 2: Edit code on predict.py like that (because colab cannot use cv2.imshow)
from matplotlib import pyplot as plt

predict = sess.run(predict, feed_dict={model.images_feed: img})
predict = cv2.cvtColor(predict, cv2.COLOR_RGB2BGR)
max=np.max(predict)
final=predict/max
plt.title("Image")
plt.imshow(final)
#cv2.waitKey(0)
plt.imsave('./example/1.png', final)

from bisenet-tensorflow.

Related Issues (11)

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.