matjesg / deepflash2

A deep-learning pipeline for segmentation of ambiguous microscopic images.
https://matjesg.github.io/deepflash2/
Apache License 2.0
58 stars 11 forks source link

Setup environment issue #56

Closed Random5747 closed 4 months ago

Random5747 commented 5 months ago

I currently cannot setup the environment due to an issue regarding a missing attribute for an object.

AttributeError Traceback (most recent call last) in <cell line: 7>() 5 #!pip install git+https://github.com/matjesg/deepflash2.git@master 6 import deepflash2 ----> 7 from deepflash2.gui import GUI, _connect_to_drive 8 clear_output(wait=True) 9 display(HTML(f'Using deepflash2 version {deepflash2.version}'))

3 frames /usr/local/lib/python3.10/dist-packages/deepflash2/data.py in RandomTileDataset() 427 n_inp = 1 428 def init(self, *args, sample_mult=None, flip=True, rotation_range_deg=(0, 360), scale_range=(0, 0), --> 429 albumentations_tfms=[A.RandomGamma()], min_length=400, *kwargs): 430 super().init(args, **kwargs) 431 store_attr('sample_mult, flip, rotation_range_deg, scale_range, albumentations_tfms')

AttributeError: 'functools.partial' object has no attribute 'RandomGamma'