Giter Club home page Giter Club logo

Comments (2)

antithing avatar antithing commented on June 2, 2024

I have a demo py script, and am running it on a video file, however I get the following error:

[07/07 10:23:03 fvcore.common.checkpoint]: [Checkpointer] Loading from models/OVIS_SwinL_414AP.pth ...
  0%|                                                                                          | 0/161 [00:00<?, ?it/s]d:\matting\vnext\projects\IDOL\idol\models\tracker.py:213: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  mask_new_indices = torch.tensor(indices)[valids].tolist()
  0%|                                                                                          | 0/161 [00:01<?, ?it/s]
Traceback (most recent call last):
  File "D:\Matting\VNext\projects\IDOL\demo_idol.py", line 176, in <module>
    for vis_frame in tqdm.tqdm(demo.run_on_video(video) , total=num_frames ):
  File "C:\Users\B\AppData\Local\Programs\Python\Python39\lib\site-packages\tqdm\std.py", line 1195, in __iter__
    for obj in iterable:
  File "d:\matting\vnext\demo\predictor.py", line 129, in run_on_video
    yield process_predictions(frame, self.predictor(frame))
  File "d:\matting\vnext\detectron2\engine\defaults.py", line 317, in __call__
    predictions = self.model([inputs])[0]
KeyError: 0

What might be happening here?

from vnext.

antithing avatar antithing commented on June 2, 2024

Ah, using this repo:

https://github.com/reno77/VNext

I have it working.

from vnext.

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.