Skip to content

Commit

Permalink
change mlflow host location, remove dataset limit
Browse files Browse the repository at this point in the history
  • Loading branch information
cwmeijer committed Oct 22, 2024
1 parent 8f1e93d commit de7bb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/segmentmytiff/utils/unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ def dice_coefficient(prediction, target, epsilon=1e-07):


def main(root_path):
mlflow.set_tracking_uri(uri="http://127.0.0.1:5000")
mlflow.set_tracking_uri(uri="http://127.0.0.1:80")

mlflow.set_experiment("MLflow Quickstart")
with mlflow.start_run():
mlflow.set_tag("Training Info", "Segmentation model for ortho photos.")
train_val_dataset = MonochromeFlairDataset(root_path, limit=5)
train_val_dataset = MonochromeFlairDataset(root_path)
test_dataset = MonochromeFlairDataset(root_path, split="test")
generator = torch.Generator().manual_seed(0)
train_dataset, validation_dataset = random_split(train_val_dataset, [0.8, 0.2], generator=generator)
Expand Down

0 comments on commit de7bb56

Please sign in to comment.