Skip to content

Commit

Permalink
fix bool for np
Browse files Browse the repository at this point in the history
  • Loading branch information
zzx9636 committed Mar 1, 2023
1 parent ae70a36 commit afdeba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def prepare_prompt(*, prompt: str, prompt_assets: dict, views: list[str]):
}
# add mask
token["mask"] = {
view: np.ones((n_objs_prompt[view],), dtype=np.bool)
view: np.ones((n_objs_prompt[view],), dtype=bool)
for view in views
}
n_objs_to_pad = {
Expand All @@ -353,7 +353,7 @@ def prepare_prompt(*, prompt: str, prompt_assets: dict, views: list[str]):
for view in views
},
"mask": {
view: np.zeros((n_objs_to_pad[view]), dtype=np.bool)
view: np.zeros((n_objs_to_pad[view]), dtype=bool)
for view in views
},
}
Expand Down

0 comments on commit afdeba7

Please sign in to comment.