Skip to content

Commit c3a6ab0

Browse files
davnov134facebook-github-bot
authored andcommitted
Bug-fix visualize reconstruction
Summary: Addresses the following issue: #1345 (comment) I.e., when installed from conda, `pytorch3d_implicitron_visualizer` crashes since it invokes `main()` while `main` requires a single positional arg `argv`. Reviewed By: shapovalov Differential Revision: D41533497 fbshipit-source-id: e53a923eb8b2f0f9c0e92e9c0866d9cb310c4799
1 parent 60ab1cd commit c3a6ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/implicitron_trainer/visualize_reconstruction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _get_config_from_experiment_directory(experiment_directory) -> DictConfig:
141141
return OmegaConf.merge(get_default_args(Experiment), config)
142142

143143

144-
def main(argv) -> None:
144+
def main(argv=sys.argv) -> None:
145145
# automatically parses arguments of visualize_reconstruction
146146
cfg = OmegaConf.create(get_default_args(visualize_reconstruction))
147147
cfg.update(OmegaConf.from_cli(argv))
@@ -150,4 +150,4 @@ def main(argv) -> None:
150150

151151

152152
if __name__ == "__main__":
153-
main(sys.argv)
153+
main()

0 commit comments

Comments
 (0)