Comments (5)
@ritwik12
As of now, 2.7.2 is working fine.
I converted the code in retrain.py
to TensorFlow 2.x and I was then able to resolve the error that @jkfran mentioned in the original comment by disabling eager execution as is suggested in this post.
I was also able to retrain and test the model successfully.
I've pushed the updated files to my fork of this repo.
from celestial-bodies-detection.
@jkfran
my TensorFlow version is 2.6.2, facing the very same issue, you mentioned in the beginning.
you said you updated the script using tf_upgrade_v2 can you tell me what is that , how to do it.? i visited the link , but didn't understood properly!!
from celestial-bodies-detection.
@SSahas
I'm not the OP, but here's how I managed to upgrade retrain.py to TF 2:
- Installed requirements through requirements.txt
- Ran
tf_upgrade_v2 --infile hub/examples/image_retraining/retrain.py --inplace
. This gave an error which I was able to fix by following Solution 1 in this post. - Made changes in the requirements.txt file according to the linked text for a more permanent fix, and installed the correct protobuf version.
- Ran the full tf_upgrade_v2 command again.
I validated the change by looking at the py file and the report.txt that gets generated. They look good to me.
Running the retrain script, however, gives a different error which I have not been able to resolve. You can find the latest code on my fork of this repo.
from celestial-bodies-detection.
@jkfran @SSahas @Rohan-Datta Looks like an issue with @dependabot updates for tensorflow. I have not tried the latest versions. can you please check this with older versions as mentioned in this?
Let me know which latest version works and we can open a PR for it.
from celestial-bodies-detection.
Thank you @Rohan-Datta for telling me how to upgrade retarin.py and the solution for @jkfran mentioned.
Now I am able to train the model successfully.
from celestial-bodies-detection.
Related Issues (20)
- add .gitignore HOT 2
- Update the README.md HOT 1
- Moon HOT 1
- Add Training Data HOT 9
- Change Training data filenames HOT 14
- Classifying Celestial-bodies HOT 8
- Classify Satellites HOT 14
- Classify Meteor and Meteorites HOT 10
- Classify Asteroids HOT 13
- Supress tensorflow warnings HOT 5
- Change Test data files names HOT 4
- Create GUI HOT 15
- Setup CI build Travis HOT 12
- Add test cases HOT 13
- Refine information displayed about the identified celestial bodies HOT 2
- Update Readme for Moon and Asteroids HOT 3
- Deploy current webapp to project site HOT 3
- Improve GUI (WebApp) HOT 5
- Add Pluto and other Dwarf planets HOT 9
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 celestial-bodies-detection.