Skip to content

Commit

Permalink
Merge branch 'f/adjust_path_dresden_capsule' into 'main'
Browse files Browse the repository at this point in the history
F/adjust path dresden capsule

See merge request es/ai/hannah/hannah!391
  • Loading branch information
cgerum committed Jun 10, 2024
2 parents b9965d7 + a6287f3 commit 0029169
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hannah/conf/dataset/dresden_capsule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ dataset: dresden_capsule
sampler: random
weighted_loss: false

task: sections # Check splits folder for other task options.
task: section # Check splits folder for other task options.
split: split_0

downsampling:
enabled: true
enabled: false
ratio:
binary: 1 # ratio normal : anomaly
# Proportions of each class that should be used.
Expand Down
4 changes: 2 additions & 2 deletions hannah/datasets/vision/dresden_capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def prepare(cls, config):

@classmethod
def splits(cls, config):
data_folder = pathlib.Path(config["data_folder"]) / "dresden-capsule"
data_folder = pathlib.Path(config["data_folder"]) / "galar"
study_folder = data_folder / "images"
split_folder = data_folder / "splits_tuebingen" / config.task
split_folder = data_folder / "splits_publication" / config.task

test_data = pd.read_csv(split_folder / "test.csv")
val_data = pd.read_csv(split_folder / config.split / "val.csv")
Expand Down

0 comments on commit 0029169

Please sign in to comment.