jadechoghari commited on
Commit
39d3fd5
·
verified ·
1 Parent(s): de1c669

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -0
pipeline.py CHANGED
@@ -84,6 +84,7 @@ class MARModel(DiffusionPipeline):
84
  cfg_schedule = kwargs.get("cfg_schedule", "constant")
85
  temperature = kwargs.get("temperature", 1.0)
86
  class_labels = kwargs.get("class_labels", [207, 360, 388, 113, 355, 980, 323, 979])
 
87
 
88
  # generate the tokens and images
89
  with torch.cuda.amp.autocast():
 
84
  cfg_schedule = kwargs.get("cfg_schedule", "constant")
85
  temperature = kwargs.get("temperature", 1.0)
86
  class_labels = kwargs.get("class_labels", [207, 360, 388, 113, 355, 980, 323, 979])
87
+ class_labels.to(device)
88
 
89
  # generate the tokens and images
90
  with torch.cuda.amp.autocast():