Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent with interface name 'initial_model_url' and environment … #169

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading