瀏覽代碼

Use absolute paths, update readme

bkerbl 2 年之前
父節點
當前提交
4268e86b79
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 1 2
      README.md
  2. 6 0
      arguments/__init__.py

文件差異過大導致無法顯示
+ 1 - 2
README.md


+ 6 - 0
arguments/__init__.py

@@ -55,6 +55,12 @@ class ModelParams(ParamGroup):
         self.eval = False
         super().__init__(parser, "Loading Parameters", sentinel)
 
+    def extract(self, args):
+        g = super().extract(args)
+        g.model_path = os.path.abspath(g.model_path)
+        g.source_path = os.path.abspath(g.source_path)
+        return g
+
 class PipelineParams(ParamGroup):
     def __init__(self, parser):
         self.convert_SHs_python = False