Skip to content
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

train.hdf5 without error, test.hdf5 comes with error #12

Open
ttkrpink opened this issue Mar 19, 2022 · 8 comments
Open

train.hdf5 without error, test.hdf5 comes with error #12

ttkrpink opened this issue Mar 19, 2022 · 8 comments

Comments

@ttkrpink
Copy link

Python 3.6.8,
numpy 1.16.0
Other files are the same.

data.py with train set works fine.
It seems the test set has the following error.

100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 40/40 [30:42<00:00, 48.46s/it]
12%|████████████████▉ | 1/8 [00:42<04:55, 42.26s/it]Traceback (most recent call last):█████████████████████████████████████████████████████████████████████████████████████████████████████| 3626/3626 [00:42<00:00, 47.51it/s]
File "src/data.py", line 136, in
main(config)
File "src/data.py", line 132, in main
return preprocess(config.split)
File "src/data.py", line 114, in preprocess
dataSaver(testset, 'dataset/test.hdf5', 'dataset/testlabel.hdf5')
File "src/data.py", line 92, in dataSaver
dataprocess()
File "src/data.py", line 60, in dataprocess
record = rdrecord('dataset/'+ num, smooth_frames= True)
File "F:\PyThon\virtual\36\lib\site-packages\wfdb\io\record.py", line 1232, in rdrecord
ignore_skew)
File "F:\PyThon\virtual\36\lib\site-packages\wfdb\io_signal.py", line 876, in _rd_segment
smooth_frames)[:, r_w_channel[fn]]
File "F:\PyThon\virtual\36\lib\site-packages\wfdb\io_signal.py", line 974, in _rd_dat_signals
sig_data = _blocks_to_samples(sig_data, total_process_samples, fmt)
File "F:\PyThon\virtual\36\lib\site-packages\wfdb\io_signal.py", line 1269, in _blocks_to_samples
sig[0::2] = sig_data[0::3] + 256 * np.bitwise_and(sig_data[1::3], 0x0f)
ValueError: could not broadcast input array from shape (283885) into shape (650000)
Exception ignored in: <bound method tqdm.del of 12%|████████████████▉ | 1/8 [00:42<04:55, 42.26s/it]>
Traceback (most recent call last):
File "F:\PyThon\virtual\36\lib\site-packages\tqdm_tqdm.py", line 931, in del
self.close()
File "F:\PyThon\virtual\36\lib\site-packages\tqdm_tqdm.py", line 1133, in close
self._decr_instances(self)
File "F:\PyThon\virtual\36\lib\site-packages\tqdm_tqdm.py", line 496, in _decr_instances
cls.monitor.exit()
File "F:\PyThon\virtual\36\lib\site-packages\tqdm_monitor.py", line 52, in exit
self.join()
File "F:\PyThon\3.6.8\lib\threading.py", line 1053, in join
raise RuntimeError("cannot join current thread")
RuntimeError: cannot join current thread

@wkzqn
Copy link

wkzqn commented Mar 19, 2022 via email

@Shasmita
Copy link

Were you able to solve the above issue and run the application successfully?

@wkzqn
Copy link

wkzqn commented Sep 28, 2022 via email

@sg4395
Copy link

sg4395 commented Feb 8, 2023

Hi were you able to work this out?

@physhik
Copy link
Owner

physhik commented Feb 9, 2023

I have never experienced such an error before. I will check out

@sg4395
Copy link

sg4395 commented Feb 9, 2023 via email

@sg4395
Copy link

sg4395 commented Feb 12, 2023 via email

@sg4395
Copy link

sg4395 commented Feb 19, 2023

I have never experienced such an error before. I will check out

Hi Namshik,
were you able to get it working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants