Skip to content

Conversation

@JanNiklasWeder
Copy link

Hello,
I tried using CataPro on my Notebook without using a GPU. When doing so, the code crashed because there are initializations of objects that occur independently of the defined device on a CUDA device.

I am referring to the act_model.py file, lines 53 and 54. Adding device = device in those initialisation fixes this and makes CataPro runnable in a only-cpu environment.

Best regards
Jan

Two of the models were always initialized on the GPU, even when 'CPU' was selected. Now they are initialized on the CPU, and thus the crash is prevented if PyTorch was installed only for the CPU.
@yvfan4
Copy link

yvfan4 commented Oct 11, 2025

I just advise you to use an NVIDIA GPU with more than 8 GB VRAM, which is easy to obtain.

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.

2 participants