Happy new years
This commit is contained in:
1 parent
8c4865effb
commit
5eb304186a
2 files changed
+29
-41
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
# Audio2Expression
|
# Audio2Motion
|
||||||
|
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
@@ -6,53 +6,45 @@
|
|||||||
- pytorch
|
- pytorch
|
||||||
- opencv-python
|
- opencv-python
|
||||||
- libsora
|
- libsora
|
||||||
|
- transformers
|
||||||
|
- moviepy
|
||||||
|
|
||||||
|
### Folder
|
||||||
|
|---- data (training data)
|
||||||
|
|
||||||
|
|---- experiments
|
||||||
|
|
||||||
|
|---- scripts (processing code for each dataset)
|
||||||
|
|
||||||
|
|---- src (code)
|
||||||
|
|
||||||
|
|---- train.py
|
||||||
|
|
||||||
|
|---- infer_one_live.py
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Data
|
||||||
|
- LuoXData processing code: `scripts/LuoXData/*`
|
||||||
|
- LuoXData training data: `data/LuoXData-raw-deca-8h`
|
||||||
|
|
||||||
|
|
||||||
### Train
|
### Train
|
||||||
```
|
```
|
||||||
python train.py --opt experiments/train-atc-GRID-with-auto-regression-geo-weight.yaml
|
python train.py --opt experiments/audio2motion/train_audio2motionV_CN_20220207_2.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
- set model
|
> visdom
|
||||||
- MODEL.name = "audio2exp" # audio2exp_model.py
|
http://localhost:9000/
|
||||||
- MODEL.name_netAE = "ATC_REC" # ATC network with autoregression
|
|
||||||
- dim_input: 0 # 68*2
|
|
||||||
- dim_output: 79 # 68*2
|
|
||||||
- dim_latent: 32
|
|
||||||
|
|
||||||
- set pretrain
|
|
||||||
- MODEL.pretrain = True
|
|
||||||
- MODEL.path_pretrained: "/mnt/data/CODE/Audio2Expression/experiments/ATC/GRID/train-atc-GRID-with-auto-regression-geo-weight/20201211-16H02M39S"
|
|
||||||
- MODEL.load_epoch = 3000
|
|
||||||
|
|
||||||
- set resume:
|
|
||||||
- MODEL.resume = True
|
|
||||||
- MODEL.epoch_begin = 0
|
|
||||||
- MODEL.epoch_end = 10000
|
|
||||||
|
|
||||||
- set loss
|
|
||||||
- lambda_rec: 10
|
|
||||||
- lambda_geo: 1
|
|
||||||
- lambda_smooth_rec: 0
|
|
||||||
- lambda_smooth_geo: 0
|
|
||||||
|
|
||||||
|
|
||||||
### Test
|
|
||||||
|
### Infer
|
||||||
```
|
```
|
||||||
# processing data
|
|
||||||
python scripts/Test/run-10-processing.py
|
|
||||||
|
|
||||||
# infer coeff
|
# infer coeff
|
||||||
python infer.py --opt experiments/infer-atc-GRID-with-auto-regression.yaml
|
python infer_one_live.py --opt experiments/audio2motion/infer_audio2motionV_CN_20220127.yaml
|
||||||
|
|
||||||
# render and output video
|
|
||||||
python scripts/frames-to-video.py
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Evaluation
|
|
||||||
```
|
|
||||||
python infer_paper2.py --opt experiments/MotionGlow/train_MotionWavaFlow22.yaml
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
+1
-5
@@ -7,16 +7,12 @@ import torch.nn.functional as F
|
|||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torchaudio
|
import torchaudio
|
||||||
import librosa
|
|
||||||
|
|
||||||
from src.models import create_model, calculate_model_params
|
from src.models import create_model
|
||||||
from src.config import config as opt
|
from src.config import config as opt
|
||||||
from src.config import update_config
|
from src.config import update_config
|
||||||
|
|
||||||
from common.vis.visualizer import Visualizer
|
|
||||||
from common.logger import Logger
|
from common.logger import Logger
|
||||||
from common.animation import save_images_with_audio
|
|
||||||
|
|
||||||
from transformers import Wav2Vec2FeatureExtractor, Wav2Vec2Model
|
from transformers import Wav2Vec2FeatureExtractor, Wav2Vec2Model
|
||||||
|
|
||||||
torch.autograd.set_detect_anomaly(True)
|
torch.autograd.set_detect_anomaly(True)
|
||||||
|
|||||||
Reference in new issue
Block a user