mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 18:44:21 +08:00
More renaming (#590)
This commit is contained in:
1 parent
1f83ad03db
commit
1bb0c88fb5
9 files changed
+115
-101
No files matched your search
@@ -224,7 +224,7 @@ def main(
|
||||
.split("\n")
|
||||
)
|
||||
entry_points = list(
|
||||
# nf-train = "..." ==> nf-train
|
||||
# ns-train = "..." ==> ns-train
|
||||
e.partition("=")[0].strip()
|
||||
for e in entry_points
|
||||
)
|
||||
|
||||
@@ -86,6 +86,11 @@ def run_code_checks(continue_on_fail: bool = False):
|
||||
# run_github_actions_file(filename=".github/workflows/viewer_build_deploy.yml", continue_on_fail=continue_on_fail)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def entrypoint():
|
||||
"""Entrypoint for use with pyproject scripts."""
|
||||
dcargs.extras.set_accent_color("bright_yellow")
|
||||
dcargs.cli(run_code_checks)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
entrypoint()
|
||||
@@ -100,11 +100,11 @@ def main(
|
||||
download_nerfactory(dataset_name)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
# Requires dcargs>=0.3.3.
|
||||
dcargs.extras.set_accent_color("bright_yellow")
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
def entrypoint():
|
||||
"""Entrypoint for use with pyproject scripts."""
|
||||
dcargs.extras.set_accent_color("bright_yellow")
|
||||
dcargs.cli(main)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
entrypoint()
|
||||
Reference in new issue
Block a user