Spaces:
Runtime error
Runtime error
update
Browse files- infer_api.py +3 -1
infer_api.py
CHANGED
|
@@ -767,9 +767,11 @@ infer_multiview_device = torch.device("cuda:0" if torch.cuda.is_available() else
|
|
| 767 |
infer_multiview_pipeline = StableUnCLIPImg2ImgPipeline.from_pretrained(
|
| 768 |
infer_multiview_cfg.pretrained_path,
|
| 769 |
torch_dtype=torch.float16,)
|
| 770 |
-
infer_multiview_pipeline.unet.enable_xformers_memory_efficient_attention()
|
| 771 |
if torch.cuda.is_available():
|
| 772 |
infer_multiview_pipeline.to(device)
|
|
|
|
|
|
|
|
|
|
| 773 |
infer_multiview_results = {}
|
| 774 |
|
| 775 |
infer_multiview_image_transforms = [transforms.Resize(int(max(infer_multiview_cfg.height, infer_multiview_cfg.width))),
|
|
|
|
| 767 |
infer_multiview_pipeline = StableUnCLIPImg2ImgPipeline.from_pretrained(
|
| 768 |
infer_multiview_cfg.pretrained_path,
|
| 769 |
torch_dtype=torch.float16,)
|
|
|
|
| 770 |
if torch.cuda.is_available():
|
| 771 |
infer_multiview_pipeline.to(device)
|
| 772 |
+
infer_multiview_pipeline.unet.enable_xformers_memory_efficient_attention()
|
| 773 |
+
print(f"Era3D Using device!!!!!!!!!!!!: {device}", file=sys.stderr)
|
| 774 |
+
|
| 775 |
infer_multiview_results = {}
|
| 776 |
|
| 777 |
infer_multiview_image_transforms = [transforms.Resize(int(max(infer_multiview_cfg.height, infer_multiview_cfg.width))),
|