Upload weights, notebooks, sample images
Browse files
configs/pretrained_config.yaml
DELETED
|
@@ -1,56 +0,0 @@
|
|
| 1 |
-
### BASELINE: CONVERGES AFTER LONG
|
| 2 |
-
|
| 3 |
-
parameters:
|
| 4 |
-
|
| 5 |
-
### MODEL ARCHITECTURE
|
| 6 |
-
MODEL:
|
| 7 |
-
value:
|
| 8 |
-
MODEL_CLASS: "UnReflect_Model_TokenInpainter" # Main model class name (must match class in models.py)
|
| 9 |
-
MODEL_MODULE: "models" # Module name to import model classes from (default: "models")
|
| 10 |
-
RGB_ENCODER:
|
| 11 |
-
ENCODER: "facebook/dinov3-vitl16-pretrain-lvd1689m" # DINOv3 encoder model name (HuggingFace format)
|
| 12 |
-
IMAGE_SIZE: 896 # Input image size (height and width in pixels)
|
| 13 |
-
RETURN_SELECTED_LAYERS: [3, 6, 9 , 12] # Transformer layer indices to extract features from (0-indexed)
|
| 14 |
-
RGB_ENCODER_LR: 0.0 # Learning rate for RGB encoder (0.0 = frozen, must be explicitly set)
|
| 15 |
-
DECODERS:
|
| 16 |
-
diffuse:
|
| 17 |
-
FEATURE_DIM: 1024 # Feature dimension for decoder (should match encoder output)
|
| 18 |
-
REASSEMBLE_OUT_CHANNELS: [768,1024,1536,2048] # Output channels for each decoder stage (DPT-style reassembly)
|
| 19 |
-
REASSEMBLE_FACTORS: [4.0, 2.0, 1.0, 0.5] # Spatial upsampling factors for each stage
|
| 20 |
-
READOUT_TYPE: "ignore" # Readout type for DPT decoder ("ignore", "project", etc.)
|
| 21 |
-
# FROM_PRETRAINED: "diffuse_decoder.pt" # Path to pretrained decoder weights (optional)
|
| 22 |
-
USE_BN: False # Use batch normalization in decoder
|
| 23 |
-
DROPOUT: 0.1 # Dropout rate in decoder layers
|
| 24 |
-
OUTPUT_IMAGE_SIZE: [896,896] # Output image resolution [height, width]
|
| 25 |
-
OUTPUT_CHANNELS: 3 # Number of output channels (3 for RGB diffuse image)
|
| 26 |
-
DECODER_LR: 0.0 # Custom learning rate for decoder (0.0 = frozen, 1.0 = same as base LR)
|
| 27 |
-
NUM_FUSION_BLOCKS_TRAINABLE: 1 # Number of fusion blocks to train (0-4, null = train all if DECODER_LR != 0)
|
| 28 |
-
TRAIN_RGB_HEAD: True # Whether to train RGB head (true/false, null = train if DECODER_LR != 0)
|
| 29 |
-
highlight:
|
| 30 |
-
FEATURE_DIM: 1024 # Feature dimension for highlight decoder
|
| 31 |
-
REASSEMBLE_OUT_CHANNELS: [96,192,384,768] # Output channels for each decoder stage
|
| 32 |
-
REASSEMBLE_FACTORS: [4.0, 2.0, 1.0, 0.5] # Spatial upsampling factors for each stage
|
| 33 |
-
READOUT_TYPE: "ignore" # Readout type for DPT decoder
|
| 34 |
-
# FROM_PRETRAINED: "highlight_decoder.pt" # Path to pretrained decoder weights (optional)
|
| 35 |
-
USE_BN: False # Use batch normalization in decoder
|
| 36 |
-
DROPOUT: 0.1 # Dropout rate in decoder layers
|
| 37 |
-
OUTPUT_IMAGE_SIZE: [896,896] # Output image resolution [height, width]
|
| 38 |
-
OUTPUT_CHANNELS: 1 # Number of output channels (1 for highlight mask)
|
| 39 |
-
DECODER_LR: 5.0e-4 # Custom learning rate for decoder (0.0 = frozen, 1.0 = same as base LR)
|
| 40 |
-
NUM_FUSION_BLOCKS_TRAINABLE: null # Number of fusion blocks to train (0-4, null = train all if DECODER_LR != 0)
|
| 41 |
-
TOKEN_INPAINTER:
|
| 42 |
-
TOKEN_INPAINTER_CLASS: "TokenInpainter_Prior" # Token inpainter class name
|
| 43 |
-
TOKEN_INPAINTER_MODULE: "token_inpainters" # Module name to import token inpainter from
|
| 44 |
-
# FROM_PRETRAINED: "token_inpainter.pth" # Path to pretrained token inpainter weights (optional)
|
| 45 |
-
TOKEN_INPAINTER_LR: 1.0e-4 # Learning rate for token inpainter (can differ from base LR)
|
| 46 |
-
DEPTH: 6 # Number of transformer blocks
|
| 47 |
-
HEADS: 16 # Number of attention heads
|
| 48 |
-
DROP: 0.05 # Dropout rate
|
| 49 |
-
USE_POSITIONAL_ENCODING: True # Enable 2D sinusoidal positional encodings
|
| 50 |
-
USE_FINAL_NORM: True # Enable final LayerNorm before output projection
|
| 51 |
-
USE_LOCAL_PRIOR: True # Blend local mean prior for masked seeds
|
| 52 |
-
LOCAL_PRIOR_WEIGHT: 0.5 # Weight for local prior blending (1.0 = only mask_token, 0.0 = only local mean)
|
| 53 |
-
LOCAL_PRIOR_KERNEL: 5 # Kernel size for local prior blending (> 1)
|
| 54 |
-
SEED_NOISE_STD: 0.02 # Standard deviation of noise added to masked seeds during training
|
| 55 |
-
INPAINT_MASK_DILATION:
|
| 56 |
-
value: 3 # Dilation kernel size (pixels) for inpaint mask - Must be odd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|