Giter VIP home page Giter VIP logo

Comments (6)

xiaohk avatar xiaohk commented on May 4, 2024

Hello @ScorpLee, I just tested to run tiny-vgg.py on 758064d on macOS, and I couldn't reproduce the error.

Could you please copy the commands you have run and the error log here? It can help us better troubleshoot it 😃

from cnn-explainer.

ScorpLee avatar ScorpLee commented on May 4, 2024

from cnn-explainer.

xiaohk avatar xiaohk commented on May 4, 2024

Oops, the screenshot didn't show up in the thread. Maybe you can try to upload it through the GitHub issue website?

from cnn-explainer.

ScorpLee avatar ScorpLee commented on May 4, 2024

Hi,
I think it has something to do with the system. Maybe I didn't set up the environment properly. I noticed the environment.yaml only has mac-os and windows version. I ran it on windows, too and it was fine. Just wondering if the trained test accuracy is around 67.2000 and test loss 1.1124? I'm not 100% confident.

The command was: python tiny-vgg.py.

ValueError: in converted code:

tiny-vgg.py:223 train_step *
    predictions = tiny_vgg(image_batch)
/usr/local/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py:586 __call__
    self.name)
/usr/local/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/engine/input_spec.py:111 assert_input_compatibility
    layer_name + ' is incompatible with the layer: '

ValueError: Input 0 of layer sequential is incompatible with the layer: its rank is undefined, but the layer requires a defined rank.

from cnn-explainer.

xiaohk avatar xiaohk commented on May 4, 2024

Thanks! Yes, the test accuracy and loss look correct :)

I just tested tiny-vgg.py on Ubuntu 16.04.3 and it worked fine. Could you please double check you are using the latest environment.yaml? I have updated it on the master branch few weeks ago. This environment file should work across different operating systems.

from cnn-explainer.

xiaohk avatar xiaohk commented on May 4, 2024

Hey @ScorpLee , I will close the issue for now. Let me know if #21 (comment) didn't help you fix the issue.

from cnn-explainer.

Related Issues (20)

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.