MCPcopy Index your code
hub / github.com/Tian-one/tps-inbetween

github.com/Tian-one/tps-inbetween @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
223 symbols 552 edges 21 files 33 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Thin-Plate Spline-based Interpolation for Animation Line Inbetweening

Tianyi Zhu, Wei Shang, Dongwei Ren*, Wangmeng Zuo

This repository is the official PyTorch implementation of "Thin-Plate Spline-based Interpolation for Animation Line Inbetweening".

✨ News/TODO

  • [x] Examples on MixiamoLine240 of TPS-Inbetween.
  • [x] Source code of inference demo and pretrained weight.
  • [ ] Source code of mannual matching demo.

🖼️ Resluts

Input starting frame Input ending frame Inbetweening results

📖 Overview

model architecture

An overview of the pipeline.

⚙️ Run inference demo

1) Download the Gluestick weights and put them in './model/resources'. 2) Download the TPS-Inbetween pretrained weights here and then put it in the './ckpt' directory. 3) Run the following command to get inbetweening results.

python demo.py --image1 'assets/input1_0.png' --image2 'assets/input1_1.png' --xN 30 --save_path './output' 

You can change 'xN' to get arbitrary frame rates results. The reuslts are saved in the folder './output'.

Core symbols most depended-on inside this repo

warp
called by 14
model/warplayer.py
conv
called by 12
model/IFNet.py
plot_images
called by 8
model/gluestick/drawing.py
get_model
called by 6
model/gluestick/__init__.py
batch_dog
called by 6
util/utils.py
batch_edt
called by 6
util/metrics.py
rgb2gray
called by 6
util/metrics.py
save
called by 5
logger/logger.py

Shape

Method 100
Function 91
Class 31
Route 1

Languages

Python100%

Modules by API surface

model/gluestick/models/gluestick.py36 symbols
util/metrics.py34 symbols
util/utils.py18 symbols
model/tpsinbet.py17 symbols
model/IFNet.py17 symbols
model/gluestick/models/base_model.py12 symbols
logger/logger.py11 symbols
model/gluestick/models/superpoint.py10 symbols
model/gluestick/models/two_view_pipeline.py9 symbols
model/gluestick/geometry.py9 symbols
datasets/ml240.py9 symbols
model/gluestick/models/wireframe.py8 symbols

For agents

$ claude mcp add tps-inbetween \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact