Rename weights to model.pt; minimize README
Browse files
README.md
CHANGED
|
@@ -7,28 +7,7 @@ tags:
|
|
| 7 |
|
| 8 |
# PartFlow — model weights
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
Inference code: see the PartFlow GitHub repository.
|
| 15 |
-
|
| 16 |
-
## Contents
|
| 17 |
-
|
| 18 |
-
| Path | Stage | Description |
|
| 19 |
-
|---|---|---|
|
| 20 |
-
| `stage1_ss/denoiser_ema0.9999_step0080000.pt` | Stage 1 | Sparse-structure flow model (EMA, step 80k) |
|
| 21 |
-
| `stage1_ss/config.json` | — | Stage 1 model config |
|
| 22 |
-
| `stage2_slat/denoiser_ema0.9999_step0080000.pt` | Stage 2 | Structured-latent (SLAT) flow model (EMA, step 80k) |
|
| 23 |
-
| `stage2_slat/config.json` | — | Stage 2 model config |
|
| 24 |
-
|
| 25 |
-
These are EMA weights (decay 0.9999). The frozen DINOv2 encoder and TRELLIS
|
| 26 |
-
SS/SLAT decoders are not included — PartFlow fetches them from their official
|
| 27 |
-
repos at inference time.
|
| 28 |
-
|
| 29 |
-
## Usage
|
| 30 |
-
|
| 31 |
-
```bash
|
| 32 |
-
python download_weights.py # pulls this repo into ./weights/
|
| 33 |
-
python inference.py --input examples/add_ring_band --output_dir outputs
|
| 34 |
-
```
|
|
|
|
| 7 |
|
| 8 |
# PartFlow — model weights
|
| 9 |
|
| 10 |
+
| Path | Stage |
|
| 11 |
+
|---|---|
|
| 12 |
+
| `stage1_ss/model.pt` | Stage 1 |
|
| 13 |
+
| `stage2_slat/model.pt` | Stage 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stage1_ss/config.json
DELETED
|
@@ -1,87 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"models": {
|
| 3 |
-
"denoiser": {
|
| 4 |
-
"name": "ControlledSparseStructureFlowModel",
|
| 5 |
-
"args": {
|
| 6 |
-
"resolution": 16,
|
| 7 |
-
"in_channels": 8,
|
| 8 |
-
"out_channels": 8,
|
| 9 |
-
"model_channels": 1024,
|
| 10 |
-
"cond_channels": 1024,
|
| 11 |
-
"num_blocks": 24,
|
| 12 |
-
"num_heads": 16,
|
| 13 |
-
"mlp_ratio": 4,
|
| 14 |
-
"patch_size": 1,
|
| 15 |
-
"pe_mode": "ape",
|
| 16 |
-
"qk_rms_norm": true,
|
| 17 |
-
"use_fp16": true
|
| 18 |
-
}
|
| 19 |
-
}
|
| 20 |
-
},
|
| 21 |
-
"dataset": {
|
| 22 |
-
"name": "H3DOriImageSparseStructureLatent",
|
| 23 |
-
"args": {
|
| 24 |
-
"h3d_root_path": "/mnt/zsn/zsn_workspace/PartCraft3D/data/H3D_v1",
|
| 25 |
-
"split": "train",
|
| 26 |
-
"edit_types": [
|
| 27 |
-
"scale",
|
| 28 |
-
"modification",
|
| 29 |
-
"addition",
|
| 30 |
-
"deletion"
|
| 31 |
-
],
|
| 32 |
-
"final_pass_only": false,
|
| 33 |
-
"image_size": 518,
|
| 34 |
-
"mask_sidecar_root": "/mnt/zsn/zsn_workspace/Ori3DEdit_wjw/outputs/mask_sidecars"
|
| 35 |
-
}
|
| 36 |
-
},
|
| 37 |
-
"trainer": {
|
| 38 |
-
"name": "EditingControlNetImageFlowMatchingCFGTrainer",
|
| 39 |
-
"args": {
|
| 40 |
-
"max_steps": 120000,
|
| 41 |
-
"batch_split": 1,
|
| 42 |
-
"optimizer": {
|
| 43 |
-
"name": "AdamW",
|
| 44 |
-
"args": {
|
| 45 |
-
"lr": 0.00012,
|
| 46 |
-
"weight_decay": 0.0
|
| 47 |
-
}
|
| 48 |
-
},
|
| 49 |
-
"ema_rate": [
|
| 50 |
-
0.9999
|
| 51 |
-
],
|
| 52 |
-
"fp16_mode": "inflat_all",
|
| 53 |
-
"fp16_scale_growth": 0.001,
|
| 54 |
-
"grad_clip": {
|
| 55 |
-
"name": "AdaptiveGradClipper",
|
| 56 |
-
"args": {
|
| 57 |
-
"max_norm": 1.0,
|
| 58 |
-
"clip_percentile": 95
|
| 59 |
-
}
|
| 60 |
-
},
|
| 61 |
-
"i_print": 50,
|
| 62 |
-
"i_log": 50,
|
| 63 |
-
"i_sample": 99999,
|
| 64 |
-
"i_save": 5000,
|
| 65 |
-
"p_uncond": 0.1,
|
| 66 |
-
"t_schedule": {
|
| 67 |
-
"name": "logitNormal",
|
| 68 |
-
"args": {
|
| 69 |
-
"mean": 1.0,
|
| 70 |
-
"std": 1.0
|
| 71 |
-
}
|
| 72 |
-
},
|
| 73 |
-
"sigma_min": 1e-05,
|
| 74 |
-
"image_cond_model": "dinov2_vitl14_reg",
|
| 75 |
-
"controlnet_pretrain": "./pretrain/ss_flow_img_dit_L_16l8_fp16.safetensors",
|
| 76 |
-
"batch_size": 16,
|
| 77 |
-
"batch_size_per_gpu": 8,
|
| 78 |
-
"dataloader_num_workers": 2,
|
| 79 |
-
"dataloader_pin_memory": true,
|
| 80 |
-
"dataloader_persistent_workers": true,
|
| 81 |
-
"use_mask_loss": true,
|
| 82 |
-
"use_ss_mask_loss": true,
|
| 83 |
-
"lambda_ss_mask": 6.0,
|
| 84 |
-
"disable_mask_loss_for_global_style": true
|
| 85 |
-
}
|
| 86 |
-
}
|
| 87 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stage1_ss/{denoiser_ema0.9999_step0080000.pt → model.pt}
RENAMED
|
File without changes
|
stage2_slat/config.json
DELETED
|
@@ -1,91 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"models": {
|
| 3 |
-
"denoiser": {
|
| 4 |
-
"name": "ControlledSLatFlowModel",
|
| 5 |
-
"args": {
|
| 6 |
-
"resolution": 64,
|
| 7 |
-
"in_channels": 8,
|
| 8 |
-
"out_channels": 8,
|
| 9 |
-
"model_channels": 1024,
|
| 10 |
-
"cond_channels": 1024,
|
| 11 |
-
"num_blocks": 24,
|
| 12 |
-
"num_heads": 16,
|
| 13 |
-
"mlp_ratio": 4,
|
| 14 |
-
"patch_size": 2,
|
| 15 |
-
"num_io_res_blocks": 2,
|
| 16 |
-
"io_block_channels": [
|
| 17 |
-
128
|
| 18 |
-
],
|
| 19 |
-
"pe_mode": "ape",
|
| 20 |
-
"qk_rms_norm": true,
|
| 21 |
-
"use_fp16": true
|
| 22 |
-
}
|
| 23 |
-
}
|
| 24 |
-
},
|
| 25 |
-
"dataset": {
|
| 26 |
-
"name": "H3DOriSLatImage",
|
| 27 |
-
"args": {
|
| 28 |
-
"h3d_root_path": "/mnt/zsn/zsn_workspace/PartCraft3D/data/H3D_v1",
|
| 29 |
-
"split": "train",
|
| 30 |
-
"edit_types": [
|
| 31 |
-
"scale",
|
| 32 |
-
"modification",
|
| 33 |
-
"addition",
|
| 34 |
-
"deletion"
|
| 35 |
-
],
|
| 36 |
-
"final_pass_only": false,
|
| 37 |
-
"image_size": 518,
|
| 38 |
-
"mask_sidecar_root": "/mnt/zsn/zsn_workspace/Ori3DEdit_wjw/outputs/mask_sidecars"
|
| 39 |
-
}
|
| 40 |
-
},
|
| 41 |
-
"trainer": {
|
| 42 |
-
"name": "EditingControlNetImageSparseFlowMatchingCFGTrainer",
|
| 43 |
-
"args": {
|
| 44 |
-
"max_steps": 100000,
|
| 45 |
-
"batch_split": 2,
|
| 46 |
-
"optimizer": {
|
| 47 |
-
"name": "AdamW",
|
| 48 |
-
"args": {
|
| 49 |
-
"lr": 0.00012,
|
| 50 |
-
"weight_decay": 0.0
|
| 51 |
-
}
|
| 52 |
-
},
|
| 53 |
-
"ema_rate": [
|
| 54 |
-
0.9999
|
| 55 |
-
],
|
| 56 |
-
"fp16_mode": "inflat_all",
|
| 57 |
-
"fp16_scale_growth": 0.001,
|
| 58 |
-
"grad_clip": {
|
| 59 |
-
"name": "AdaptiveGradClipper",
|
| 60 |
-
"args": {
|
| 61 |
-
"max_norm": 1.0,
|
| 62 |
-
"clip_percentile": 95
|
| 63 |
-
}
|
| 64 |
-
},
|
| 65 |
-
"i_print": 50,
|
| 66 |
-
"i_log": 50,
|
| 67 |
-
"i_sample": 99999,
|
| 68 |
-
"i_save": 5000,
|
| 69 |
-
"p_uncond": 0.1,
|
| 70 |
-
"t_schedule": {
|
| 71 |
-
"name": "logitNormal",
|
| 72 |
-
"args": {
|
| 73 |
-
"mean": 1.0,
|
| 74 |
-
"std": 1.0
|
| 75 |
-
}
|
| 76 |
-
},
|
| 77 |
-
"sigma_min": 1e-05,
|
| 78 |
-
"image_cond_model": "dinov2_vitl14_reg",
|
| 79 |
-
"controlnet_pretrain": "./pretrain/slat_flow_img_dit_L_64l8p2_fp16.safetensors",
|
| 80 |
-
"batch_size": 16,
|
| 81 |
-
"batch_size_per_gpu": 8,
|
| 82 |
-
"dataloader_num_workers": 2,
|
| 83 |
-
"dataloader_pin_memory": true,
|
| 84 |
-
"dataloader_persistent_workers": true,
|
| 85 |
-
"use_mask_loss": true,
|
| 86 |
-
"use_slat_mask_loss": true,
|
| 87 |
-
"lambda_slat_mask": 0.3,
|
| 88 |
-
"disable_mask_loss_for_global_style": true
|
| 89 |
-
}
|
| 90 |
-
}
|
| 91 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stage2_slat/{denoiser_ema0.9999_step0080000.pt → model.pt}
RENAMED
|
File without changes
|