-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when extracting data #12
Comments
Which Python version are you using? |
python in /usr/lib/python2.7/lib-dynload (2.7.14) |
Can you re-download the data again using the script provided in the |
ok ill download it again, but what's the difference? i got this when downloading the data, there are some 0% of data download , is it right? SC4101E0-PSG.edf 0%[ ] 320.00K 295KB/s SC4101E0-PSG.edf 100%[===================>] 47.32M 226KB/s in 2m 59s 2018-05-15 02:49:39 (271 KB/s) - ‘SC4101E0-PSG.edf’ saved [49614848/49614848] |
The reason for re-downloading is to make sure your downloaded files are not corrupted. I am trying to find the root cause because I cannot reproduce the errors that you got. Can you run "pip list" and show me your installed packages? |
many of data size is only 4-7kb?
absl-py 0.2.0 |
I'm getting the same error! |
hey, i just found the error, just change |
hey there is another error when start pre training Network (layers=19) [2018-05-19 23:17:53.482137] Start pre-training ... ========== [Fold-0] ========== Load training set: can you help? |
My guess is that there have been some updates to the Can you have a try with the following version:
and let me know? Thanks |
hey, i just have an assignment from my class about deeplearning, i choose your topic for my assignment. I have done the way in the readme file, but there is an error when extracting the EEG data.
I use google colab for simulation your code.
!python2 drive/deepsleepnet-master/prepare_physionet.py --data_dir drive/deepsleepnet-master/data --output_dir drive/deepsleepnet-master/data/eeg_fpz_cz --select_ch 'EEG Fpz-Cz' !python2 drive/deepsleepnet-master/prepare_physionet.py --data_dir drive/deepsleepnet-master/data --output_dir drive/deepsleepnet-master/data/eeg_pz_oz --select_ch 'EEG Pz-Oz'
the error is
Extracting EDF parameters from drive/deepsleepnet-master/data/SC4001E0-PSG.edf...
EDF file detected
Setting channel info structure...
Creating raw.info structure...
Reading 0 ... 7949999 = 0.000 ... 79499.990 secs...
Traceback (most recent call last):
File "drive/deepsleepnet-master/prepare_physionet.py", line 217, in
main()
File "drive/deepsleepnet-master/prepare_physionet.py", line 95, in main
raw_ch_df = raw.to_data_frame(scale_time=100)[select_ch]
TypeError: to_data_frame() got an unexpected keyword argument 'scale_time'
Extracting EDF parameters from drive/deepsleepnet-master/data/SC4001E0-PSG.edf...
EDF file detected
Setting channel info structure...
Creating raw.info structure...
Reading 0 ... 7949999 = 0.000 ... 79499.990 secs...
Traceback (most recent call last):
File "drive/deepsleepnet-master/prepare_physionet.py", line 217, in
main()
File "drive/deepsleepnet-master/prepare_physionet.py", line 95, in main
raw_ch_df = raw.to_data_frame(scale_time=100)[select_ch]
TypeError: to_data_frame() got an unexpected keyword argument 'scale_time
when i removed the scale time, the code can working but another error like this happen.
..........................
Include onset:50550.0, duration:480.0, label:4 (Sleep stage R)
Include onset:51030.0, duration:33030.0, label:0 (Sleep stage W)
Remove onset:84060.0, duration:2340.0, label:5 (Sleep stage ?)
before remove unwanted: (675000,)
after remove unwanted: (675000,)
before intersect label: (675000,)
after intersect label: (675000,)
before remove extra labels: (675000,), (2802,)
after remove extra labels: (0,), (0,)
Traceback (most recent call last):
File "drive/deepsleepnet-master/prepare_physionet.py", line 217, in
main()
File "drive/deepsleepnet-master/prepare_physionet.py", line 183, in main
x = np.asarray(np.split(raw_ch, n_epochs)).astype(np.float32)
File "/usr/local/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 557, in split
if N % sections:
ZeroDivisionError: float modulo
can you explain why?
sorry im new in AI or deeplearning topics :)
thank you.
The text was updated successfully, but these errors were encountered: