Giter VIP home page Giter VIP logo

tfswin's People

Contributors

shkarupa-alex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tfswin's Issues

Colab TPU compatibility

Hi and thank you for this amazing work. I was wondering if the models are compatible with Colab TPU since the training fails with error " Socket closed".

Evaluation code result is accuracy=0.001: how to use this model?

I am trying to use this repo and tried Evaluation code(https://github.com/shkarupa-alex/tfswin#evaluation), written on readme, for 1st step. However, the result returns accuracy=0.001 as follows.

1250/1250 [==============================] - 172s 127ms/step - loss: nan - accuracy: 0.0010 - sparse_top_k_categorical_accuracy: 0.0000e+00
[nan, 0.0010000000474974513, 0.0]

I read model.py and find "load wights" so I thought that Evaluation code returns around 70% acc., like table attached on Evaluation section. And I found imagenet_v2 download is success, I can see some jpeg img on imagenet_V2 dir, created by Evaluation code.

imagenet2 = tfds.load('imagenet_v2', split='test', shuffle_files=True)

My question is, how to get the result like the table on evaluation section? (and what is the point I was wrong with getting acc=0.001? )

Here is a Dockerfile I created and used for this repo (sry idk how to attach Dockerfile so it change to txt file)
Dockerfile_tfswin.txt

docker run \ --gpus all \ -it -e \ TF_FORCE_GPU_ALLOW_GROWTH=true \ -v $MOUNT_DATA:/root/data \ -v $MOUNT_DIR:/root/scripts \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -p 6060:6060 \ --env="DISPLAY" \ --name tfswin \ --rm tfswin \ bash

and Evaluation code I used (copy&paste from evaluation section on readme, and just change model name) (for same reason with Dockerfile, I change py to txt)
test_tfswin.txt

Thank you!

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.