try using vroid skeleton
Browse files
app.py
CHANGED
|
@@ -112,10 +112,10 @@ def run_inference_python(
|
|
| 112 |
|
| 113 |
# Load task and model configurations based on inference type
|
| 114 |
if inference_type == "skeleton":
|
| 115 |
-
task_config_path = "configs/task/
|
| 116 |
transform_config_path = "configs/transform/inference_ar_transform.yaml"
|
| 117 |
model_config_path = "configs/model/unirig_ar_350m_1024_81920_float32.yaml"
|
| 118 |
-
system_config_path = "configs/system/
|
| 119 |
tokenizer_config_path = "configs/tokenizer/tokenizer_parts_articulationxl_256.yaml"
|
| 120 |
data_name = "raw_data.npz"
|
| 121 |
else: # skin
|
|
|
|
| 112 |
|
| 113 |
# Load task and model configurations based on inference type
|
| 114 |
if inference_type == "skeleton":
|
| 115 |
+
task_config_path = "configs/task/quick_inference_skeleton_vroid_ar_256.yaml"
|
| 116 |
transform_config_path = "configs/transform/inference_ar_transform.yaml"
|
| 117 |
model_config_path = "configs/model/unirig_ar_350m_1024_81920_float32.yaml"
|
| 118 |
+
system_config_path = "configs/system/ar_inference_vroid.yaml"
|
| 119 |
tokenizer_config_path = "configs/tokenizer/tokenizer_parts_articulationxl_256.yaml"
|
| 120 |
data_name = "raw_data.npz"
|
| 121 |
else: # skin
|
configs/system/ar_inference_vroid.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__target__: ar
|
| 2 |
+
val_interval: 1
|
| 3 |
+
generate_kwargs:
|
| 4 |
+
max_new_tokens: 2048
|
| 5 |
+
num_return_sequences: 1
|
| 6 |
+
num_beams: 15
|
| 7 |
+
do_sample: True
|
| 8 |
+
top_k: 5
|
| 9 |
+
top_p: 0.95
|
| 10 |
+
repetition_penalty: 3.0
|
| 11 |
+
temperature: 1.5 # must be a float
|
| 12 |
+
no_cls: False
|
| 13 |
+
assign_cls: vroid
|
| 14 |
+
use_dir_cls: False
|
configs/task/quick_inference_skeleton_vroid_ar_256.yaml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mode: predict
|
| 2 |
+
debug: False
|
| 3 |
+
experiment_name: quick_inference_skeleton_vroid_ar_256
|
| 4 |
+
resume_from_checkpoint: experiments/skeleton/articulation-xl_quantization_256/model.ckpt
|
| 5 |
+
|
| 6 |
+
components:
|
| 7 |
+
data: quick_inference
|
| 8 |
+
tokenizer: tokenizer_parts_articulationxl_256
|
| 9 |
+
transform: inference_ar_transform
|
| 10 |
+
model: unirig_ar_350m_1024_81920_float32
|
| 11 |
+
system: ar_inference_vroid
|
| 12 |
+
data_name: raw_data.npz
|
| 13 |
+
|
| 14 |
+
writer:
|
| 15 |
+
__target__: ar
|
| 16 |
+
output_dir: ~ # export results into the same input folder
|
| 17 |
+
add_num: False
|
| 18 |
+
repeat: 1
|
| 19 |
+
export_npz: predict_skeleton
|
| 20 |
+
export_obj: skeleton
|
| 21 |
+
export_fbx: skeleton
|
| 22 |
+
# export_pc: pc
|
| 23 |
+
|
| 24 |
+
trainer:
|
| 25 |
+
max_epochs: 1
|
| 26 |
+
num_nodes: 1
|
| 27 |
+
devices: 1
|
| 28 |
+
precision: bf16-mixed
|
| 29 |
+
accelerator: gpu
|
| 30 |
+
strategy: auto
|