Update inference_manager.py
Browse files- inference_manager.py +1 -1
inference_manager.py
CHANGED
@@ -508,7 +508,7 @@ class ModelManager:
|
|
508 |
seed = seed or int(randomize_seed_fn(seed, randomize_seed))
|
509 |
p = remove_child_related_content(p)
|
510 |
prompt_str = cfg.get("prompt", "{prompt}").replace("{prompt}", p)
|
511 |
-
generator = torch.Generator(
|
512 |
print(f"generate: p={p}, np={np}, steps={steps}, guidance_scale={guidance_scale}, size={width},{height}, seed={seed}")
|
513 |
images = ip_model.generate(
|
514 |
prompt=prompt_str,
|
|
|
508 |
seed = seed or int(randomize_seed_fn(seed, randomize_seed))
|
509 |
p = remove_child_related_content(p)
|
510 |
prompt_str = cfg.get("prompt", "{prompt}").replace("{prompt}", p)
|
511 |
+
generator = torch.Generator(model.base_model_pipeline.device).manual_seed(seed)
|
512 |
print(f"generate: p={p}, np={np}, steps={steps}, guidance_scale={guidance_scale}, size={width},{height}, seed={seed}")
|
513 |
images = ip_model.generate(
|
514 |
prompt=prompt_str,
|