Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Byte-compiled / optimized / DLL files
model
__pycache__/
*.py[cod]
*$py.class
Expand Down
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