JiantaoLin
		
	commited on
		
		
					Commit 
							
							Β·
						
						7fe2742
	
1
								Parent(s):
							
							c6de8f2
								
new
Browse files
    	
        pipeline/kiss3d_wrapper.py
    CHANGED
    
    | @@ -69,7 +69,7 @@ def init_wrapper_from_config(config_path): | |
| 69 | 
             
                # flux_lora_pth = config_['flux'].get('lora', None)
         | 
| 70 | 
             
                flux_lora_pth = hf_hub_download(repo_id="LTT/Kiss3DGen", filename="rgb_normal_large.safetensors", repo_type="model", token=access_token)
         | 
| 71 | 
             
                flux_redux_pth = config_['flux'].get('redux', None)
         | 
| 72 | 
            -
                taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype= | 
| 73 | 
             
                if flux_base_model_pth.endswith('safetensors'):
         | 
| 74 | 
             
                    flux_pipe = FluxImg2ImgPipeline.from_single_file(flux_base_model_pth, torch_dtype=dtype_[flux_dtype], token=access_token)
         | 
| 75 | 
             
                else:
         | 
|  | |
| 69 | 
             
                # flux_lora_pth = config_['flux'].get('lora', None)
         | 
| 70 | 
             
                flux_lora_pth = hf_hub_download(repo_id="LTT/Kiss3DGen", filename="rgb_normal_large.safetensors", repo_type="model", token=access_token)
         | 
| 71 | 
             
                flux_redux_pth = config_['flux'].get('redux', None)
         | 
| 72 | 
            +
                taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype_[flux_dtype]).to(device)
         | 
| 73 | 
             
                if flux_base_model_pth.endswith('safetensors'):
         | 
| 74 | 
             
                    flux_pipe = FluxImg2ImgPipeline.from_single_file(flux_base_model_pth, torch_dtype=dtype_[flux_dtype], token=access_token)
         | 
| 75 | 
             
                else:
         |