| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
We propose TimeFormer, a Transformer module that implicitly models the motion pattern via Temporal Attention from a learning perspective (right). TimeFormer is plug-and-play to existing deformable 3D Gaussian reconstruction methods and enhances reconstruction results (left and middle) without affecting their original inference speed.
The Framework of Deformable 3D Gaussians Reconstruction with TimeFormer. Existing deformable 3D Gaussians framework usually includes the canonical space and the deformation field (first row), we incorporate TimeFormer to capture cross-time relationships and explore motion patterns implicitly (second row). We share weights of two deformation fields to transfer the learned motion knowledge. This allows us to exclude this Auxiliary Training Module during inference.
Note: TimeFormer can be easily plug-and-play to all existing and future deformable 3D Gaussian framework!
All you need include:
- Copy TimeFormer.py
- Add TimeFormer branch and its loss
- Add backpropagation of TimeFormer
git clone https://github.com/PatrickDDj/TimeFormer-Code.git --recursive
cd TimeFormer-Code
pip install torch torchvision
pip install -r requirements.txtmkdir data
cd data
wget https://github.com/google/hypernerf/releases/download/v0.1/interp_cut-lemon.zip
unzip interp_cut-lemon.zip
mv cut-lemon1 interp_cut-lemon1 # make sure the folder name begins with interp_ or vrig_ ...We provide the training script for TimeFormer, here we use Deformable-3D-Gaussians as the backbone.
# Training with TimeFormer
python train_timeformer.py -s data/interp_cut-lemon1 -m output/interp_cut-lemon1 \
--eval --iterations 20000 \
--n_layer 4 --weight_reg 0.0001 --weight_t 0.8 --batch 4
# Rendering
python render.py -m output/interp_cut-lemon1_batch_4_trans_0.8_reg_0.0001_layer_4_random \
--mode render --eval --skip_train
# Evaluation
python metrics.py -m output/interp_cut-lemon1_batch_4_trans_0.8_reg_0.0001_layer_4_random| Back | FazBrowse Home | New Git URL |