Coder Social home page Coder Social logo

DAIN inference_dain.py issues . about mvimp HOT 10 CLOSED

cyfeng16 avatar cyfeng16 commented on August 16, 2024
DAIN inference_dain.py issues .

from mvimp.

Comments (10)

Zotikus1001 avatar Zotikus1001 commented on August 16, 2024

The issue here is there is an hidden file ".ipynb_checkpoints" inside the Input folder.

I don't know how that file got there, but when it goes to interpolate, it expects to find only .png images inside the input folder.

It happens to me to when I copy all the files from my google drive folder into the input folder.

from mvimp.

WindyGhost avatar WindyGhost commented on August 16, 2024

When this happened , what i did is that i deleted both the input and output folders , created both the folders , uploaded the video and did it again and it happened again . Idk how to prevent it from making that file or if it gets created , how to delete it or change the location of where the frames gets extracted .

from mvimp.

WindyGhost avatar WindyGhost commented on August 16, 2024

I think i fixed it .
Before running this code

!python3 inference_dain.py --input_video test.mp4 --time_step 0.5 -hr

I ran this code

!rm -r /content/MVIMP/Data/Input/.ipynb_checkpoints

And it worked ...

And if someone faces the problem when the frames gets interpolated , it will show that same error

IsADirectoryError: [Errno 21] Is a directory: '/content/MVIMP/Data/Output/.ipynb_checkpoints'

Use this code

!rm -r /content/MVIMP/Data/Output/.ipynb_checkpoints

from mvimp.

meguerreroa avatar meguerreroa commented on August 16, 2024

Is it somehow related to the GPU type? I think i got that error when Colab gave me a T4 16Gb or K80 8 Gb gpu. But never when it gave me a P100 16Gb. But I could be wrong. Anyway, I'll try what @WindyGhost proposed.

from mvimp.

CyFeng16 avatar CyFeng16 commented on August 16, 2024

I can call an additional check and delete the Jupyter cache file, WIP.

from mvimp.

WindyGhost avatar WindyGhost commented on August 16, 2024

Is it somehow related to the GPU type? I think i got that error when Colab gave me a T4 16Gb or K80 8 Gb gpu. But never when it gave me a P100 16Gb. But I could be wrong.

I did a little research and found out that the hidden file gets created everytime when you save your .ipynb notebook file , it is to revert to the changes you have made like if u did some mistake you undo in your computer by ctrl+z , this is what it is .
And
It is not related to what GPU you have been assigned .

from mvimp.

WindyGhost avatar WindyGhost commented on August 16, 2024

Long story short , if you are confused then this is what i do .

  1. First i download and install the dependencies which is Step 1

  2. Then i upload the video in /content/MVIMP/Data/Input

  3. Then i do this

!rm -r /content/MVIMP/Data/Input/.ipynb_checkpoints
!rm -r /content/MVIMP/Data/Output/.ipynb_checkpoints

  1. And then i do this

!python3 inference_dain.py --input_video whatever.mp4 --time_step 0.5 -hr

And when everything is done , download the final product , i delete the video manually , which is not needed , but i still do it .
And if i want to do it again i do it again from step 2 .

from mvimp.

WindyGhost avatar WindyGhost commented on August 16, 2024

The issue is now closed but i have 1 question .
What do you pass with -hr , because i passed both 'true' and 'store_true' but i get error .
Any suggestions .

from mvimp.

CyFeng16 avatar CyFeng16 commented on August 16, 2024

'store_true' and 'store_false' - These are special cases of 'store_const' using for storing the values True and False respectively. In addition, they create default values of False and True respectively. For example:

parser = argparse.ArgumentParser()
parser.add_argument('--foo', action='store_true')
parser.add_argument('--bar', action='store_false')
parser.add_argument('--baz', action='store_false')
parser.parse_args('--foo --bar'.split())
Namespace(bar=False, baz=True, foo=True)

You can also see argparse for details.

from mvimp.

WindyGhost avatar WindyGhost commented on August 16, 2024

I get it now
So i only have to use -hr and it stores true and if i don't use -hr it won't work

from mvimp.

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.