You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Google Colab when you start the set up environment you get the following error:
#@title Set up environment
#@markdown Please run this cell to get started (~1 minute)
from IPython.display import clear_output, HTML
!pip install -Uqq deepflash2
#!pip install git+https://github.com/matjesg/deepflash2.git@master
import deepflash2
from deepflash2.gui import GUI, _connect_to_drive
clear_output(wait=True)
display(HTML(f'Using deepflash2 version {deepflash2.version}'))
path=_connect_to_drive()
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}'))
Hi @AscheJan , thanks for raising the issue. The error was due to some version mismatches in the dependencies and should be fixed in the current master.
I currently cannot update the deepflash2 version on pypi, but the notebook is now changed to use the gitub master instead of the pypi version.
In Google Colab when you start the set up environment you get the following error:
#@title Set up environment
#@markdown Please run this cell to get started (~1 minute)
from IPython.display import clear_output, HTML
!pip install -Uqq deepflash2
#!pip install git+https://github.com/matjesg/deepflash2.git@master
import deepflash2
from deepflash2.gui import GUI, _connect_to_drive
clear_output(wait=True)
display(HTML(f'Using deepflash2 version {deepflash2.version}'))
path=_connect_to_drive()
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'
How can the error be fixed?
![Bildschirmfoto vom 2024-06-03 18-43-21](https://private-user-images.githubusercontent.com/67650687/336156984-090e48d6-03c8-44f5-97a6-9cbb51d9cfc7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MjE0NDQsIm5iZiI6MTczODgyMTE0NCwicGF0aCI6Ii82NzY1MDY4Ny8zMzYxNTY5ODQtMDkwZTQ4ZDYtMDNjOC00NGY1LTk3YTYtOWNiYjUxZDljZmM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDA1NTIyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2OTAwYmMxMTBjYWFiOWUzZjE5MDE5YThiMzI3OGFmN2U4NzViMTkwZDZhZDY1NGRmM2M4ZWNkYjFlYThjYTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.h9H1_wIPYjJFxBeyx6JhyjfGbLS8wUZzvhVIlFmRr0w)
The text was updated successfully, but these errors were encountered: