Giter VIP home page Giter VIP logo

Comments (5)

robban avatar robban commented on July 17, 2024 1

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.

namgivu avatar namgivu commented on July 17, 2024

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.

robban avatar robban commented on July 17, 2024

No guarantees, but you can try this patch and see if it helps:
patch.diff.txt

from deepsolar.

namgivu avatar namgivu commented on July 17, 2024

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.

bsedighi avatar bsedighi commented on July 17, 2024

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)

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.