Kaynağa Gözat

Use absolute paths, update readme

bkerbl 2 yıl önce
ebeveyn
işleme
4268e86b79
2 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. 1 2
      README.md
  2. 6 0
      arguments/__init__.py

Dosya farkı çok büyük olduğundan ihmal edildi
+ 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