Spaces:
				
			
			
	
			
			
		Configuration error
		
	
	
	
			
			
	
	
	
	
		
		
		Configuration error
		
	Create train_stage2_aggregator.sh
Browse files
    	
        functions/train_stage2_aggregator.sh
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            # Stage 2: train aggregator
         | 
| 2 | 
            +
            accelerate launch --num_processes <num_of_gpus> train_stage2_aggregator.py \
         | 
| 3 | 
            +
                --output_dir <your/output/path> \
         | 
| 4 | 
            +
                --train_data_dir <your/data/path> \
         | 
| 5 | 
            +
                --logging_dir <your/logging/path> \
         | 
| 6 | 
            +
                --pretrained_model_name_or_path <your/sdxl/path> \
         | 
| 7 | 
            +
                --feature_extractor_path <your/dinov2/path> \
         | 
| 8 | 
            +
                --pretrained_adapter_model_path <your/dcp/path> \
         | 
| 9 | 
            +
                --pretrained_lcm_lora_path <your/previewer_lora/path> \
         | 
| 10 | 
            +
                --losses_config_path config_files/losses.yaml \
         | 
| 11 | 
            +
                --data_config_path config_files/IR_dataset.yaml \
         | 
| 12 | 
            +
                --image_drop_rate 0.0 \
         | 
| 13 | 
            +
                --text_drop_rate 0.85 \
         | 
| 14 | 
            +
                --cond_drop_rate 0.15 \
         | 
| 15 | 
            +
                --save_only_adapter \
         | 
| 16 | 
            +
                --gradient_checkpointing \
         | 
| 17 | 
            +
                --mixed_precision fp16 \
         | 
| 18 | 
            +
                --train_batch_size 6 \
         | 
| 19 | 
            +
                --gradient_accumulation_steps 2 \
         | 
| 20 | 
            +
                --learning_rate 1e-4 \
         | 
| 21 | 
            +
                --lr_warmup_steps 1000 \
         | 
| 22 | 
            +
                --lr_scheduler cosine \
         | 
| 23 | 
            +
                --lr_num_cycles 1 \
         | 
| 24 | 
            +
                --resume_from_checkpoint latest
         |