Open rg314 opened 3 years ago
It looks like the install of the latest version hasn't worked since the new code should read as followed:
@staticmethod
def _config_yaml(config, E, min_window_size, s, meshsize, scaling_factor):
with open(config, 'r') as f:
config = yaml.load(f, Loader=yaml.FullLoader)
config['tfm']['E'] = E,
config['tfm']['pix_per_mu'] = scaling_factor
config['piv']['min_window_size'] = min_window_size if min_window_size is not None else config['piv']['min_window_size']
config['tfm']['s'] = s if s is not None else config['tfm']['s']
config['tfm']['meshsize'] = meshsize if meshsize is not None else config['tfm']['meshsize']
return config
Try uninstalling and reinstalling. Make sure you pull the latest changes as well :)
i.e. something like this:
cd GitHub/pytraction
git pull
conda actviate [your pytraction env]
pip uninstall pytraction
pip install .
@l-kaplan any luck?
Well the reinstall did help to get it to run, but I am still getting the artifacts.. Mh maybe I’m missing something.
I just realized that I pushed with non default configs!
Please make sure that crop_aligned_slice
is set to True
settings:
bead_channel: 0
cell_channel: 1
segment: False
device: cpu
crop_aligned_slice: True
Yes! This did the trick, thanks for the troubleshoot. I'll go on and process the rest of the images then!
@rg314 updating needs to be added to the docs
Do I need to make any changes in the config.yaml? I am getting following error:
Originally posted by @l-kaplan in https://github.com/rg314/pytraction/issues/44#issuecomment-891628783