Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -72,11 +72,11 @@ pipe.load_lora_weights( | |
| 72 |  | 
| 73 |  | 
| 74 |  | 
| 75 | 
            -
            pipe.set_adapters([" | 
| 76 | 
             
            # 修改了lora_scale
         | 
| 77 | 
            -
            pipe.fuse_lora(adapter_names=[" | 
| 78 | 
             
            # 修改了lora_scale
         | 
| 79 | 
            -
            pipe.fuse_lora(adapter_names=[" | 
| 80 | 
             
            pipe.unload_lora_weights()
         | 
| 81 | 
             
            # ##
         | 
| 82 | 
             
            # ## TEST LORA ENDS
         | 
|  | |
| 72 |  | 
| 73 |  | 
| 74 |  | 
| 75 | 
            +
            pipe.set_adapters(["high_noise_lora", "low_noise_lora"], adapter_weights=[ 1., 1.])
         | 
| 76 | 
             
            # 修改了lora_scale
         | 
| 77 | 
            +
            pipe.fuse_lora(adapter_names=["high_noise_lora"], lora_scales=[3.0], components=["transformer"])
         | 
| 78 | 
             
            # 修改了lora_scale
         | 
| 79 | 
            +
            pipe.fuse_lora(adapter_names=["low_noise_lora"], lora_scales=[1.0], components=["transformer_2"])
         | 
| 80 | 
             
            pipe.unload_lora_weights()
         | 
| 81 | 
             
            # ##
         | 
| 82 | 
             
            # ## TEST LORA ENDS
         | 
 
			
