andreped commited on
Commit
f0851c4
·
1 Parent(s): b9333e5

potential fix for path

Browse files
Files changed (1) hide show
  1. livermask/utils/process.py +2 -1
livermask/utils/process.py CHANGED
@@ -135,7 +135,8 @@ def vessel_segmenter(curr, output, cpu, verbose, multiple_flag, liver_mask, name
135
  unet, xp = load_vessel_model(name_vessel, cpu)
136
 
137
  # read config
138
- config = Config(yaml.safe_load(open("./configs/base.yml")))
 
139
 
140
  log.info("resize back...")
141
  nib_volume = nib.load(curr)
 
135
  unet, xp = load_vessel_model(name_vessel, cpu)
136
 
137
  # read config
138
+ log.info("current file path:")
139
+ config = Config(yaml.safe_load(open(os.path.dirname(os.path.abspath(__file__)) + "/configs/base.yml")))
140
 
141
  log.info("resize back...")
142
  nib_volume = nib.load(curr)