amildravid4292 commited on
Commit
ec1efbd
·
verified ·
1 Parent(s): 6bbb81f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -213,8 +213,12 @@ class main():
213
  for i,t in enumerate(tqdm.tqdm(self.noise_scheduler.timesteps)):
214
  latent_model_input = torch.cat([latents] * 2)
215
  latent_model_input = self.noise_scheduler.scale_model_input(latent_model_input, timestep=t)
216
- print("going into inference 1")
217
  with self.network:
 
 
 
 
 
218
  noise_pred = self.unet(latent_model_input, t, encoder_hidden_states=text_embeddings, timestep_cond= None).sample
219
  #guidance
220
  noise_pred_uncond, noise_pred_text = noise_pred.chunk(2)
 
213
  for i,t in enumerate(tqdm.tqdm(self.noise_scheduler.timesteps)):
214
  latent_model_input = torch.cat([latents] * 2)
215
  latent_model_input = self.noise_scheduler.scale_model_input(latent_model_input, timestep=t)
 
216
  with self.network:
217
+ print(latent_model_input.device)
218
+ print(self.unet.device)
219
+ print(self.text_encoder.device)
220
+ print(self.vae.device)
221
+ print(self.network.proj.device)
222
  noise_pred = self.unet(latent_model_input, t, encoder_hidden_states=text_embeddings, timestep_cond= None).sample
223
  #guidance
224
  noise_pred_uncond, noise_pred_text = noise_pred.chunk(2)