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
I am still working on the reproduction of the u-sleep model using these commands :). I started everything from scratch, cloned the repository, and created a conda environment u-sleep. Thereafter, first I downloaded and prepared the dataset, then, I started training the model.
Here I get the following error, there are also log files that I shared with you below this error window.
/home/aharun/miniconda3/envs/u-sleep/lib/python3.10/site-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: TensorflowAddonssupportsusingPythonopsforallTensorflowversionsaboveorequalto2.6.0andstrictlybelow2.9.0 (nightlyversionsarenotsupported).
TheversionsofTensorFlowyouarecurrentlyusingis2.9.0andisnotsupported.
Somethingsmightwork, somethingsmightnot.
Ifyouweretoencounterabug, donotfileanissue.
Ifyouwanttomakesureyou're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons'sversion.
YoucanfindthecompatibilitymatrixinTensorFlowAddon'sreadme:
https://github.com/tensorflow/addonswarnings.warn(
Parentdirectoryofthe'utime'packageisnotagitrepositoryorGitisnotinstalled. Gitinformationwillnotbeaddedtothishyperparameterfile.
Traceback (mostrecentcalllast):
File"/home/aharun/miniconda3/envs/u-sleep/bin/ut", line8, in<module>sys.exit(entry_func())
File"/home/aharun/miniconda3/envs/u-sleep/lib/python3.10/site-packages/utime/bin/ut.py", line103, inentry_funcmod.entry_func(script_args+help_agrs)
File"/home/aharun/miniconda3/envs/u-sleep/lib/python3.10/site-packages/utime/bin/train.py", line296, inentry_funcrun(args=args)
File"/home/aharun/miniconda3/envs/u-sleep/lib/python3.10/site-packages/utime/bin/train.py", line239, inruntrain_seq, val_seq=get_generators(train_datasets_queues,
File"/home/aharun/miniconda3/envs/u-sleep/lib/python3.10/site-packages/utime/utils/scriptutils/train.py", line178, inget_generatorstrain_seqs= [get_batch_sequence(dataset_queue=d,
File"/home/aharun/miniconda3/envs/u-sleep/lib/python3.10/site-packages/utime/utils/scriptutils/train.py", line178, in<listcomp>train_seqs= [get_batch_sequence(dataset_queue=d,
File"/home/aharun/miniconda3/envs/u-sleep/lib/python3.10/site-packages/utime/sequences/utils.py", line85, inget_batch_sequencedata_per_epoch, n_channels=infer_dpe_and_chans(dataset_queue)
File"/home/aharun/miniconda3/envs/u-sleep/lib/python3.10/site-packages/utime/sequences/utils.py", line59, ininfer_dpe_and_chanswithdataset_queue.get_random_study() assleep_study:
AttributeError: 'list'objecthasnoattribute'get_random_study'
Here is the content of a log file under /logs/training_log, which is the only log file under /logs directory
INFO | 2022/05/17 07:39:41 | train:run:196 | Args dump: {'num_gpus': 1, 'force_gpus': '', 'continue_training': False, 'initialize_from': None, 'overwrite': True, 'log_file': 'training_log', 'datasets': None, 'just': None, 'no_val': False, 'max_val_studies_per_dataset': 20, 'max_train_samples_per_epoch': 500000.0, 'n_epochs': None, 'channels': None, 'train_queue_type': 'eager', 'val_queue_type': 'lazy', 'max_loaded_per_dataset': 40, 'num_access_before_reload': 32, 'preprocessed': False, 'final_weights_file_name': 'model_weights.h5', 'train_on_val': False}
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/TRAIN] SleepStudyDataset(identifier: dataset_1/TRAIN, N pairs: 91, N loaded: 0)
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/VAL] SleepStudyDataset(identifier: dataset_1/VAL, N pairs: 32, N loaded: 0)
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/TRAIN] Setting select channels: ['EEG Fpz-Cz']
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/VAL] Setting select channels: ['EEG Fpz-Cz']
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/TRAIN] Setting sample rate of 128 Hz
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/VAL] Setting sample rate of 128 Hz
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/TRAIN] Setting 'drop_class' strip function with parameters {'class_int': 5}...
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/VAL] Setting 'drop_class' strip function with parameters {'class_int': 5}...
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/TRAIN] Setting 'zero_out_noisy_epochs' quality control function with parameters {'max_times_global_iqr': 20}...
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/VAL] Setting 'zero_out_noisy_epochs' quality control function with parameters {'max_times_global_iqr': 20}...
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/TRAIN] Setting 'RobustScaler' scaler...
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/VAL] Setting 'RobustScaler' scaler...
INFO | 2022/05/17 07:39:41 | utils:get_data_queues:33 | Using data queue type: EagerQueue
INFO | 2022/05/17 07:39:41 | abc_sleep_study_dataset:log:59 | [Dataset: dataset_1/TRAIN] Loading 91/91 SleepStudy objects...
INFO | 2022/05/17 07:41:17 | utils:get_data_queues:33 | Using data queue type: LazyQueue
Is there anything I can do to fix this bug?
thanks in advance
-adnan
The text was updated successfully, but these errors were encountered:
Hi mathias,
I am still working on the reproduction of the u-sleep model using these commands :). I started everything from scratch, cloned the repository, and created a conda environment
u-sleep
. Thereafter, first I downloaded and prepared the dataset, then, I started training the model.Here I get the following error, there are also log files that I shared with you below this error window.
Here is the content of a log file under /logs/training_log, which is the only log file under /logs directory
Is there anything I can do to fix this bug?
thanks in advance
-adnan
The text was updated successfully, but these errors were encountered: