GithubHelp home page GithubHelp logo

Comments (11)

0asa avatar 0asa commented on August 19, 2024 1

Hi!

Check the inference_dataset_root directory. I ran into the same issue, it turned out the path was not accessible/correct. In your example, your directory is /../frame_00, it is looking weird, especially the first /. Also, if you are using the docker image, make sure to mount the volume accordingly so your image folder is accessible from within the docker image.

from flownet2-pytorch.

fitsumreda avatar fitsumreda commented on August 19, 2024 1

@bkvie @coderclear this happens when the inference_dataset_root path doesn't exist.

from flownet2-pytorch.

fitsumreda avatar fitsumreda commented on August 19, 2024 1

yes, this likely because the inference_dataset_root point to an empty folder or it doesn't exist

from flownet2-pytorch.

coderclear avatar coderclear commented on August 19, 2024

I also met this issue. Have you solved?In 251 line of main.py define the 'inference_loader'.

from flownet2-pytorch.

coderclear avatar coderclear commented on August 19, 2024

if inference_root is 'main.py --inference --model FlowNet2 --save_flow --inference_dataset MpiSintelClean --inference_dataset_root /../frame_00 --resume ./checkpoints/flownet2'.
i got
NameError: name 'inference_loader' is not defined
if inference_root is 'main.py --inference --model FlowNet2 --save_flow --inference_dataset MpiSintelClean --inference_dataset_root /../training/clean/alley_1 --resume ./checkpoints/flownet2'.
I got
self.frame_size = frame_utils.read_gen(self.image_list[0][0]).shape
IndexError: list index out of range
and
self.size type is <class 'int'>
self.size is 0
[0.000s] Operation failed
@0asa

from flownet2-pytorch.

Estrella1024 avatar Estrella1024 commented on August 19, 2024

Have you solved this problem?

from flownet2-pytorch.

Estrella1024 avatar Estrella1024 commented on August 19, 2024

我也遇到了这个问题。解决了吗?在main.py的251行中定义了'inference_loader'。

How do you define it?

from flownet2-pytorch.

Sidd1609 avatar Sidd1609 commented on August 19, 2024

@fitsumreda I am having this issue despite having a non-empty & existing folder with images that have shape in multiples of 64.

from flownet2-pytorch.

coderclear avatar coderclear commented on August 19, 2024

from flownet2-pytorch.

ruffiann avatar ruffiann commented on August 19, 2024

@fitsumreda I am having this issue despite having a non-empty & existing folder with images that have shape in multiples of 64.

I've noticed that when I process .jpg files it reports a 'list index out of range' error, but works fine when processing .png files. You can try it, hope it helps!

from flownet2-pytorch.

coderclear avatar coderclear commented on August 19, 2024

from flownet2-pytorch.

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.