Comments (1)
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)
- Error Train bisenet on My Own Data
- Query about the FPS HOT 3
- Different infer sizes HOT 2
- overfitting in this model? HOT 4
- How to start multi-gpu training to accelerate the training process? HOT 7
- About speed of your model HOT 1
- pretrained xception39 model
- How do you train cityscapes data sets HOT 4
- How to freeze a pb model?
- Hardware requirements
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 bisenet-tensorflow.