goooo
This commit is contained in:
		
							parent
							
								
									3769989f20
								
							
						
					
					
						commit
						cb0414d89b
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -110,11 +110,12 @@ lightning:
 | 
				
			||||||
    image_logger:
 | 
					    image_logger:
 | 
				
			||||||
      target: main.ImageLogger
 | 
					      target: main.ImageLogger
 | 
				
			||||||
      params:
 | 
					      params:
 | 
				
			||||||
        batch_frequency: 50
 | 
					        batch_frequency: 5000
 | 
				
			||||||
        max_images: 4
 | 
					        max_images: 4
 | 
				
			||||||
        increase_log_steps: False
 | 
					        increase_log_steps: False
 | 
				
			||||||
        log_first_step: False
 | 
					        log_first_step: False
 | 
				
			||||||
        log_images_kwargs:
 | 
					        log_images_kwargs:
 | 
				
			||||||
 | 
					          use_ema_scope: False
 | 
				
			||||||
          inpaint: False
 | 
					          inpaint: False
 | 
				
			||||||
          plot_progressive_rows: False
 | 
					          plot_progressive_rows: False
 | 
				
			||||||
          plot_diffusion_rows: False
 | 
					          plot_diffusion_rows: False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1194,7 +1194,9 @@ class LatentDiffusion(DDPM):
 | 
				
			||||||
            if isinstance(xc, dict) or isinstance(xc, list):
 | 
					            if isinstance(xc, dict) or isinstance(xc, list):
 | 
				
			||||||
                c = self.get_learned_conditioning(xc)
 | 
					                c = self.get_learned_conditioning(xc)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                c = self.get_learned_conditioning(xc.to(self.device))
 | 
					                if hasattr(xc, "to"):
 | 
				
			||||||
 | 
					                    xc = xc.to(self.device)
 | 
				
			||||||
 | 
					                c = self.get_learned_conditioning(xc)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            # todo: get null label from cond_stage_model
 | 
					            # todo: get null label from cond_stage_model
 | 
				
			||||||
            raise NotImplementedError()
 | 
					            raise NotImplementedError()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue