From afdeba7771a0c8f4e8cf48b6571207ef7af6c847 Mon Sep 17 00:00:00 2001 From: Zixu Zhang Date: Tue, 28 Feb 2023 23:30:11 -0500 Subject: [PATCH 1/2] fix bool for np --- scripts/example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/example.py b/scripts/example.py index 8bb08a3..ba66b5d 100644 --- a/scripts/example.py +++ b/scripts/example.py @@ -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 = { @@ -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 }, } From 557a53d7a35acb8ea0a78ca4ea61d45473792c95 Mon Sep 17 00:00:00 2001 From: Zixu Zhang Date: Wed, 1 Mar 2023 22:58:54 -0500 Subject: [PATCH 2/2] update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 10fc461..cae4225 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # Byte-compiled / optimized / DLL files +model __pycache__/ *.py[cod] *$py.class