Skip to content

Fix data type#26

Merged
heyufan1995 merged 2 commits intovista3dfrom
fix_data_type
Jul 15, 2024
Merged

Fix data type#26
heyufan1995 merged 2 commits intovista3dfrom
fix_data_type

Conversation

@mingxueg-nv
Copy link
Copy Markdown
Contributor

Fixes # da ta type error

Description

File "/localhome/local-mingxueg/VISTA/scripts/utils/trans_utils.py", line 352, in call
pred[pred == frac] = data["label_prompt"][i - 1].to(pred.dtype)
AttributeError: 'int' object has no attribute 'to'

Types of changes

pred[pred == frac] = torch.tensor(data["label_prompt"][i - 1]).to(pred.dtype)

@mingxueg-nv mingxueg-nv changed the base branch from main to vista3d July 13, 2024 02:15
@heyufan1995 heyufan1995 merged commit 5aa1472 into vista3d Jul 15, 2024
@heyufan1995 heyufan1995 deleted the fix_data_type branch July 15, 2024 14:20
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