Comments (5)
You need to add the inception library manually, however the link in the readme is dead. I would try the fms-santos branch instead that has added the inception folder already: https://github.com/fms-santos/DeepSolar/
from deepsolar.
You need to add the inception library manually, however the link in the readme is dead. I would try the fms-santos branch instead that has added the inception folder already: https://github.com/fms-santos/DeepSolar/
Thanks @robban ! Using fms-santos repo and it can run train_classification now
Though it leads to another error and I'm not sure what to fix next. Hope you would have a look.
Regards,
Nam
the error
ValueError: Shapes (2, 32, 1) and () are incompatible
in full
namgivu@localhost:~/code/b/deepsonar/zref/fms-santos--DeepSolar
$ ./.venv/bin/python train_classification.py --fine_tune=False
Training set built. Size: 0
Traceback (most recent call last):
File "train_classification.py", line 262, in <module>
train()
File "train_classification.py", line 119, in train
inception.loss(logits, labels, batch_size=BATCH_SIZE)
File "/home/namgivu/code/b/deepsonar/zref/fms-santos--DeepSolar/inception/inception_model.py", line 128, in loss
concated = tf.concat(1, [indices, sparse_labels])
File "/home/namgivu/code/b/deepsonar/zref/fms-santos--DeepSolar/.venv/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1122, in concat
tensor_shape.scalar())
File "/home/namgivu/code/b/deepsonar/zref/fms-santos--DeepSolar/.venv/lib/python2.7/site-packages/tensorflow/python/framework/tensor_shape.py", line 848, in assert_is_compatible_with
raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (2, 32, 1) and () are incompatible
from deepsolar.
No guarantees, but you can try this patch and see if it helps:
patch.diff.txt
from deepsolar.
Hi @robban,
Sorry to reply late.
I tried your patch and get this error when running
python generate_data_list.py
python train_classification.py --fine_tune=False
Hope you may have a look! Thanks a lot.
File "train_classification.py", line 263, in
train()
File "train_classification.py", line 201, in train
restorer.restore(sess, FLAGS.pretrained_model_checkpoint_path)
File "/home/namgivu/code/b/deepsolar/zref/fms-santos--DeepSolar/.venv/lib/python2.7/site-packages/tensorflow/python/platform/flags.py", line 85, in getattr
return wrapped.getattr(name)
File "/home/namgivu/code/b/deepsolar/zref/fms-santos--DeepSolar/.venv/lib/python2.7/site-packages/absl/flags/_flagvalues.py", line 481, in getattr
raise AttributeError(name)
AttributeError: pretrained_model_checkpoint_path
from deepsolar.
Hello @namgivu
I am facing the same issue as you described (shapes ...... are incompatible)
can u tell me how you solved the issue?
Thank you in advance
from deepsolar.
Related Issues (17)
- Dataset release HOT 4
- Segmentation before Classification? HOT 2
- error in test classification script HOT 9
- Low Recall Rate on the test set. HOT 3
- KeyError: 'r '
- TensorFlow SavedModels
- What's the image resolution?
- generating the data list
- Link for inception Library HOT 1
- circles in example image seem a bit off HOT 2
- How must the satellite images look like? HOT 8
- Data Dictionary HOT 2
- License?
- Libraries mismatch : Python / requirements versions ? HOT 10
- Train and Eval Set not available HOT 21
- Access Denied for Training and Evaluation Dataset HOT 1
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 deepsolar.