Skip to content

Commit

Permalink
Inconsistent with interface name 'initial_model_url' and environment …
Browse files Browse the repository at this point in the history
…variable 'base_model_url' kubeedge#14

Signed-off-by: Aryan <[email protected]>
  • Loading branch information
AryanNanda17 committed Jan 2, 2025
1 parent aefdbeb commit e05f776
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _train(self, model, data_index_file, rounds):
os.makedirs(train_output_dir)

os.environ["MODEL_URL"] = train_output_dir
os.environ["BASE_MODEL_URL"] = model
os.environ["INITIAL_MODEL_URL"] = model

job = self.build_paradigm_job(ParadigmType.INCREMENTAL_LEARNING.value)
train_dataset = self.dataset.load_data(data_index_file, "train")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def run(self):

def _inference(self, job, trained_model):
train_dataset = self.dataset.load_data(self.dataset.train_url, "train")
os.environ["BASE_MODEL_URL"] = trained_model
os.environ["INITIAL_MODEL_URL"] = trained_model
inference_dataset = self.dataset.load_data(self.dataset.test_url, "inference")
inference_output_dir = os.path.join(self.workspace, "output/inference/")
os.environ["RESULT_SAVED_URL"] = inference_output_dir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _compress(self, trained_model):

def _train(self, job, initial_model):
train_output_dir = os.path.join(self.workspace, "output/train/")
os.environ["BASE_MODEL_URL"] = initial_model
os.environ["INITIAL_MODEL_URL"] = initial_model

train_dataset = self.dataset.load_data(self.dataset.train_url, "train")
job.train(train_dataset)
Expand Down

0 comments on commit e05f776

Please sign in to comment.