소스 검색

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