Skip to content

Corrected device placement of the tensors in the gaussian model#11

Open
sejja wants to merge 1 commit intowyf0912:mainfrom
sejja:main
Open

Corrected device placement of the tensors in the gaussian model#11
sejja wants to merge 1 commit intowyf0912:mainfrom
sejja:main

Conversation

@sejja
Copy link
Copy Markdown

@sejja sejja commented Jun 27, 2025

In gaussian_model.py, some torch.arange calls do not explicitly specify the device. When these indices are used with tensors already on the GPU , a device mismatch exception is raised.

Changes

  • File: scene/gaussian_model.py
  • Functions Updated:
    • encode_process
    • conduct_decoding
    • multi_scale_generating
  • Modification: In all relevant torch.arange(...) calls, added device=to_code.device to ensure device alignment with to_code.

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