Skip to content

Update inference.py#7

Open
Shaheer66 wants to merge 1 commit into
sjtuplayer:masterfrom
Shaheer66:master
Open

Update inference.py#7
Shaheer66 wants to merge 1 commit into
sjtuplayer:masterfrom
Shaheer66:master

Conversation

@Shaheer66
Copy link
Copy Markdown

@Shaheer66 Shaheer66 commented May 22, 2026

Solved the issue#6
#6
By adding the chunk, so before finalizing the CPU or GPU compiled version of diffvg first it checks the available one

import torch
import pydiffvg

try:
pydiffvg.set_use_gpu(torch.cuda.is_available())
except Exception:
pydiffvg.set_use_gpu(False)

Solve the **RuntimeError: diffvg not compiled with GPU**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant