QHL067 commited on
Commit
c7007dc
·
1 Parent(s): d7fb68d
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -108,11 +108,11 @@ MAX_IMAGE_SIZE = 1024 # Currently not used.
108
  # Load the main diffusion model.
109
  repo_id = "QHL067/CrossFlow"
110
  filename = "pretrained_models/t2i_512px_clip_dimr.pth"
111
- checkpoint_path = hf_hub_download(repo_id=repo_id, filename=filename)
112
  nnet = utils.get_nnet(**config.nnet)
113
  nnet = nnet.to(device)
114
- state_dict = torch.load(checkpoint_path, map_location=device)
115
- nnet.load_state_dict(state_dict)
116
  nnet.eval()
117
 
118
  # Initialize text model.
 
108
  # Load the main diffusion model.
109
  repo_id = "QHL067/CrossFlow"
110
  filename = "pretrained_models/t2i_512px_clip_dimr.pth"
111
+ # checkpoint_path = hf_hub_download(repo_id=repo_id, filename=filename)
112
  nnet = utils.get_nnet(**config.nnet)
113
  nnet = nnet.to(device)
114
+ # state_dict = torch.load(checkpoint_path, map_location=device)
115
+ # nnet.load_state_dict(state_dict)
116
  nnet.eval()
117
 
118
  # Initialize text model.