Git Product home page Git Product logo

gmfss_fortuna's Introduction

GMFSS_Fortuna

The All-In-One GMFSS: Dedicated for Anime Video Frame Interpolation


2023-06-25: Thanks to AnimeRun's related work, we have updated one of union's fine-tune models.


  • The optimised training process is more stable.
  • We offer several models for inference or as pre-training models for finetuning.

Installation

Our code is developed based on PyTorch 1.13.1, CUDA 11.8 and Python 3.9. Lower version pytorch should also work well.

To install, run the following commands:

git clone https://github.com/98mxr/GMFSS_Fortuna.git
cd GMFSS_Fortuna
pip install -r requirements.txt

Model Zoo

If you want to validate the results then you need the GMFSS model or union model

Or try this new union model using anime optical flow data fine-tune

If you want to train your own model, you can use our pre-trained model to skip the baseline training process

Run Video Frame Interpolation

  • Unzip the downloaded models and place the train_log folder in the root directory. Then run one of the following commands.
  1. Using gmfss mode
python3 inference_video.py --img=demo/ --scale=1.0 --multi=2
  1. Using union mode
python3 inference_video.py --img=demo/ --scale=1.0 --multi=2 --union

Train

  • Unzip the pre-trained models and place the train_log folder as well as dataset in the root directory. Modifying model/dataset.py is necessary to fit other datasets. Run one of the following commands.
  1. Train gmfss with gan optimization
python3 train_pg.py
  1. Train gmfss_union with gan optimization
python3 train_upg.py
  1. Train pre-trained models
python3 train_nb.py

Acknowledgment

This project is supported by SVFI Development Team

gmfss_fortuna's People

Contributors

98mxr avatar justin62628 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gmfss_fortuna's Issues

NameError: name 'Model' is not defined

D:\GMFSS\GMFSS_Fortuna>python inference_video.py --video="D:\GMFSS\GMFSS_Fortuna\demo\1.mp4" --scale=1.0 --multi=2 --union
Please download model from model list or Check if it is a union model
Traceback (most recent call last):
File "D:\GMFSS\GMFSS_Fortuna\inference_video.py", line 102, in
model = Model()
NameError: name 'Model' is not defined

Tried setting the model path with --model="path",got the same error

Models were downloaded and unzipped,with the train_log being placed in the root directory. Not sure what I did wrong. Same result with base/union models.

Error

(fortuna) C:\Users\micro\Downloads\GMFSS_Fortuna>python inference_video.py --img="C:\Users\micro\Downloads\here" --scale=1.0 --multi=2
Loaded model
Traceback (most recent call last):
  File "C:\Users\micro\Downloads\GMFSS_Fortuna\inference_video.py", line 136, in <module>
    lastframe = cv2.imread(os.path.join(args.img, videogen[0]), cv2.IMREAD_UNCHANGED)[:, :, ::-1].copy()
IndexError: list index out of range

this isn't an actual issue, I'm just wondering about something.

basically I want to create a custom anime interpolation program that's based on gmfss fortuna (but custom trained on various anime scenes so the visuals look correct and retain their original forms) and also handles scene changes correctly. I use enhancr for gmfss fortuna but it doesn't let me interpolate to a specified framerate, and topaz video ai's chronos model. I'm hoping you could make this program with me and I could tell you know I want it built. you can close this issue if it's out of line or whatevever, I'm just not sure where to ask this question.

When installing with ComfyUI I get

Error occurred when executing GMFSS Fortuna VFI:

CuPy failed to load nvrtc64_112_0.dll: FileNotFoundError: Could not find module 'nvrtc64_112_0.dll' (or one of its dependencies). Try using the full path with constructor syntax.

and a lot more

free(): corrupted unsorted chunks

I got this error, the output cannot be played
The audio will be merged after interpolation process
96% 3634/3769.0 [4:35:37<10:14, 4.55s/it]
free(): corrupted unsorted chunks

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.