Coder Social home page Coder Social logo

yyang181 / cvpr2023_ntire_video_colorization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from piddnad/cvpr2023_ntire_video_colorization

0.0 0.0 0.0 63.7 MB

Baseline model and evaluation code for CVPR 2023 NTIRE workshop Video Colorization challenge

Home Page: https://modelscope.cn/models/damo/CVPR2023_NTIRE_Video_Colorization/summary

License: Apache License 2.0

Shell 0.12% JavaScript 0.01% C++ 0.27% Python 99.31% Cuda 0.28% Makefile 0.01% Dockerfile 0.01% Vim Script 0.01%

cvpr2023_ntire_video_colorization's Introduction

PyPI

license open issues GitHub pull-requests GitHub latest commit Leaderboard

NTIRE 2023 Video Colorization Model and Dataset

This project provides the baseline model and evaluation code for track1 and track2 for CVPR 2023 NTIRE workshop Video Colorization Challenge.

Installation

conda create -n video_colorization python=3.7
conda activate video_colorization

pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu116

git clone https://github.com/piddnad/CVPR2023_NTIRE_Video_Colorization.git

cd CVPR2023_NTIRE_Video_Colorization
pip install -r requirements/tests.txt
pip install -r requirements/framework.txt
pip install -r requirements/cv.txt

Download Dataset (Optional)

You can Run the code below to download the validation set:

from modelscope.msdatasets import MsDataset
from modelscope.utils.constant import DownloadMode


# Set dataset download path
cache_dir = './datasets' 

# Download validation set
val_set = MsDataset.load('ntire23_video_colorization', namespace='damo', subset_name='val_frames', split='validation', cache_dir=cache_dir, download_mode=DownloadMode.FORCE_REDOWNLOAD)
print(next(iter(val_set)))

Baseline Evaluation on Validation Set

This step will automatically download the validation set.

cd CVPR2023_NTIRE_Video_Colorization
CUDA_VISIBLE_DEVICES=0  PYTHONPATH=. python ntire23_scripts/baseline_evaluation.py

# Then you might get output similar to:
# FID evaluation time: xxxx
# CDC evaluation time: xxxx
# Total evaluation time: xxxx
# FID: 47.15574537543114, CDC: 0.003475072230336491

Evaluation on Your Results

First modify the res_dir in user_result_evaluation.py, and then run:

python ntire23_scripts/user_result_evaluation.py

About ModelScope



ModelScope is built upon the notion of “Model-as-a-Service” (MaaS). It seeks to bring together most advanced machine learning models from the AI community, and streamlines the process of leveraging AI models in real-world applications. The core ModelScope library open-sourced in this repository provides the interfaces and implementations that allow developers to perform model inference, training and evaluation.

In particular, with rich layers of API-abstraction, the ModelScope library offers unified experience to explore state-of-the-art models spanning across domains such as CV, NLP, Speech, Multi-Modality, and Scientific-computation. Model contributors of different areas can integrate models into the ModelScope ecosystem through the layered-APIs, allowing easy and unified access to their models. Once integrated, model inference, fine-tuning, and evaluations can be done with only a few lines of codes. In the meantime, flexibilities are also provided so that different components in the model applications can be customized wherever necessary.

Apart from harboring implementations of a wide range of different models, ModelScope library also enables the necessary interactions with ModelScope backend services, particularly with the Model-Hub and Dataset-Hub. Such interactions facilitate management of various entities (models and datasets) to be performed seamlessly under-the-hood, including entity lookup, version control, cache management, and many others.

License

This project is licensed under the Apache License (Version 2.0).

cvpr2023_ntire_video_colorization's People

Contributors

wenmengzhou avatar tastelikefeet avatar firmament-cyou avatar bincard avatar wangxingjun778 avatar cathy0908 avatar jiangyuxzy avatar yingdachen avatar huangshenno1 avatar ganjinzero avatar shuaigezhu avatar he350181 avatar pengzhendong avatar xianzhexu avatar co63oc avatar afalf avatar zhanninggao avatar lyblsgo avatar siyang1992 avatar jxst539246 avatar biwen147 avatar dingkun-ldk avatar xu-wenqing avatar gxd1994 avatar jhuang1207 avatar piddnad avatar ttcoding avatar roleone123 avatar shenweichaoswc avatar robertsheng avatar

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.