add blender app

This commit is contained in:
hofee
2024-09-05 01:32:50 +08:00
parent 129bcb872e
commit da00ecca90
183 changed files with 4241 additions and 3 deletions

18
runners/view_generator.py Normal file
View File

@@ -0,0 +1,18 @@
import subprocess
from PytorchBoot.runners.runner import Runner
import PytorchBoot.stereotype as stereotype
@stereotype.runner("view_generator")
class ViewGenerator(Runner):
def __init__(self, config_path):
super().__init__(config_path)
self.config_path = config_path
def run(self):
subprocess.run(['blender', '-b', '-P', './blender/run_blender.py', '--', self.config_path])
def create_experiment(self, backup_name=None):
return super().create_experiment(backup_name)
def load_experiment(self, backup_name=None):
super().load_experiment(backup_name)