Comments (10)
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.
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.
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.
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.
I can call an additional check and delete the Jupyter cache file, WIP.
from mvimp.
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.
Long story short , if you are confused then this is what i do .
-
First i download and install the dependencies which is Step 1
-
Then i upload the video in /content/MVIMP/Data/Input
-
Then i do this
!rm -r /content/MVIMP/Data/Input/.ipynb_checkpoints
!rm -r /content/MVIMP/Data/Output/.ipynb_checkpoints
- 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.
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.
'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.
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)
- Colab inference_dain error HOT 5
- Future Features HOT 22
- Unable to git clone Waifu2x HOT 9
- Possibly unnecessary compilation of waifu2x HOT 3
- Need feedback for test branch HOT 3
- Filename set to test.mp4 HOT 2
- /content/MVIMP/Data/Input/%10d.png: No such file or directory HOT 8
- Interpolated Frames turn out Pixelated HOT 1
- ImportError: DLL load failed: The specified module could not be found HOT 1
- DAIN: "no kernel image is available for execution on the device" HOT 6
- waifu2x don't work on tpu HOT 1
- DAIN IsADirectoryError: [Errno 21] Is a directory: '/content/MVIMP/Data/Input/.ipynb_checkpoints' HOT 1
- Anime DAIN and 2/3-dupe HOT 4
- colab DAIN THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument HOT 1
- error in correlation_forward_cuda_kernel: no kernel image is available for execution on the device HOT 3
- MVIMP-Photo3D-Demo missing Loader???
- Resizing problem in DAIN? HOT 13
- Is waifu2x the right choice? HOT 9
- Regarding Compiling DAIN on Tesla V100 and RTX line HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mvimp.