-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
92 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Megvii Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Real-Time Intermediate Flow Estimation for Video Frame Interpolation | ||
|
||
## Input | ||
|
||
<img src="imgs/000001.png" width="240"><img src="imgs/000002.png" width="240"> | ||
|
||
(Image from https://drive.google.com/file/d/1i3xlKb7ax7Y70khcTcuePi6E7crO_dFc/view?usp=sharing) | ||
|
||
## Output | ||
|
||
<img src="imgs_results/output_001.png" width="240"> | ||
|
||
## Usage | ||
|
||
Automatically downloads the onnx and prototxt files on the first run. | ||
It is necessary to be connected to the Internet while downloading. | ||
|
||
For the sample images, | ||
```bash | ||
$ python3 rife.py | ||
``` | ||
|
||
If you want to specify the input image, put the first image path after the `--input` option, and the next image path after the `--input2` option. | ||
You can use `--savepath` option to change the name of the output file to save. | ||
```bash | ||
$ python3 rife.py --input IMAGE_PATH1 --input2 IMAGE_PATH2 --savepath SAVE_IMAGE_PATH | ||
``` | ||
|
||
The `--input` option can also specify the directory path where the images are located. | ||
```bash | ||
$ film rife.py --input DIR_PATH | ||
``` | ||
|
||
By adding the `--video` option, you can input the video. | ||
If you pass `0` as an argument to VIDEO_PATH, you can use the webcam input instead of the video file. | ||
```bash | ||
$ python3 rife.py --video VIDEO_PATH --savepath SAVE_VIDEO_PATH | ||
``` | ||
|
||
for 4X interpolation. | ||
```bash | ||
$ python3 rife.py --exp 2 | ||
``` | ||
|
||
## Reference | ||
|
||
- [ECCV2022-RIFE](https://github.com/megvii-research/ECCV2022-RIFE) | ||
|
||
## Framework | ||
|
||
Pytorch | ||
|
||
## Model Format | ||
|
||
ONNX opset=16 | ||
|
||
## Netron | ||
|
||
[RIFE_HDv3.onnx.prototxt](https://netron.app/?url=https://storage.googleapis.com/ailia-models/rife/RIFE_HDv3.onnx.prototxt) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters