Giter Club home page Giter Club logo

Comments (6)

dbolya avatar dbolya commented on August 18, 2024

Hmm that is pretty weird indeed. I do most of my testing on Win10 so it's probably not solely a Windows issue. Not to mention, importing Yolact should not instantiate any tensors, so changing the default tensor type before importing should have no effect (key word I guess there is should). Maybe it has to do with your environment?

What's your Pytorch, CUDA, and Python versions? Are you on the latest commit? And when you say "run the eval.py says cuda unkown error, the error locates at...", do you mean line 975 in eval.py?

from yolact.

zhuqiang00099 avatar zhuqiang00099 commented on August 18, 2024

@dbolya

  • try both pytorch cu90-1.0.1 and cu90-1.1.0. by the way, I would like to try cu100-1.1.0,but failed when install...
  • python version is 3.6.
  • clone the project today...
  • run the eval.py in two ways
    1. use cmd, like
      python eval.py --video 'test.mp4' ......
    2. use pycharm, edit the default args' value, then right click,then run..

from yolact.

zhuqiang00099 avatar zhuqiang00099 commented on August 18, 2024

haha... try another way, edit the yolact.py as follows to make jit disable, then works.

use_jit = torch.cuda.device_count() <= 1
if not use_jit:
    print('Multiple GPUs detected! Turning off JIT.')
use_jit = False
ScriptModuleWrapper = torch.jit.ScriptModule if use_jit else nn.Module
script_method_wrapper = torch.jit.script_method if use_jit else lambda fn, _rcn=None: fn

from yolact.

dbolya avatar dbolya commented on August 18, 2024

Okay it looks like this is a known Pytorch issue (pytorch/pytorch#17108) on windows with some Nvidia drivers for Pytorch 1.0.1 and above.

I think the problem is actually with that piece of code there, which would be affected by the above issue. Can you revert your changes and pull my latest commit to see if that workaround fixed this?

from yolact.

zhuqiang00099 avatar zhuqiang00099 commented on August 18, 2024

@dbolya it works...hahah you're pretty good... thanks a lot.. xiexie dashen

from yolact.

dbolya avatar dbolya commented on August 18, 2024

Good to hear! Yeah Pytorch doesn't test as much as it potentially should on Windows.

from yolact.

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.