Giter VIP home page Giter VIP logo

Comments (6)

hellochick avatar hellochick commented on July 28, 2024

Hey @Sudhir11292rt , can you tell me how you run the evaluation code? You can refer to this issue #4 first. May you calculate the time including model initialization

from icnet-tensorflow.

skrya avatar skrya commented on July 28, 2024

Thanks for the response @hellochick. I have looked at the #4 . But still I am getting an 'average inference time: 2.80006708418'. In evaluate.py I have changed

  1. DATA_DIRECTORY, DATA_LIST_PATH to point my local cityscapes dataset and cityscapes_val_lists.txt.
    2)I have downloaded your provided 'icnet_cityscapes_train_30k.npy' pretrained weights and correspondingly changed model_train30k.
    Then, ran python evaluate.py --model train --measure-time.

Thanks,
Sudhir

from icnet-tensorflow.

hellochick avatar hellochick commented on July 28, 2024

@Sudhir11292rt , can you try inference.py and calculate time ?

for i in range(5):
    start = time.time()
    preds = sess.run(pred)
    print(time.time() - start)

from icnet-tensorflow.

skrya avatar skrya commented on July 28, 2024

@hellochick Here is the output for command 'python inference.py --model train --img-path ~/aachen_000087_000019_leftImg8bit.png'
3.84351301193
2.9684278965
3.43640303612
3.59244203568
3.2074649334

I am not sure, if I am making mistake somewhere?

from icnet-tensorflow.

hellochick avatar hellochick commented on July 28, 2024

@Sudhir11292rt , I have no idea for this situation. Did there any warnings occur when you run the code? Such as OutOfMemory, etc.

from icnet-tensorflow.

seovchinnikov avatar seovchinnikov commented on July 28, 2024

Yeah, it seems like its warming issue, ~2s on 1st inference, 0.04 on the second one and others (1080 Ti)

from icnet-tensorflow.

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.