Toma0916 / GlobalWheatDetection

3 stars 0 forks source link

mlflow相対パスで #89

Closed Toma0916 closed 4 years ago

Toma0916 commented 4 years ago
def initialize_mlflow(self, config):
        mlflow.set_tracking_uri('./mlruns')
        if not bool(mlflow.get_experiment_by_name(self.experiment_name)):
            mlflow.create_experiment(self.experiment_name, artifact_location=None)
        mlflow.set_experiment(self.experiment_name)
        mlflow.start_run(run_name='%s_%s' % (self.experiment_name, randomname(4)))
        mlflow.log_params(params_to_mlflow_format(config))
        mlflow.log_artifact(str(self.save_dir/"config.json"))

これが主な変更

kminoda commented 4 years ago

すばらしい