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

How to run convert_bin_to_hdf5.py ? #12

Open
JANGSOONMYUN opened this issue Dec 3, 2020 · 0 comments
Open

How to run convert_bin_to_hdf5.py ? #12

JANGSOONMYUN opened this issue Dec 3, 2020 · 0 comments

Comments

@JANGSOONMYUN
Copy link

Hi, I've finished the pre-processing but there was an error occur after running "python utils/convert_bin_to_hdf5.py"

Traceback (most recent call last):
File "utils/convert_bin_to_hdf5.py", line 66, in
convert_num_to_bitfield(label_data, h, w, npz_name, root_folder, h5_file)
File "utils/convert_bin_to_hdf5.py", line 30, in convert_num_to_bitfield
padded_bit_tensor = torch.cat((torch.zeros(cls_num-actual_len).byte(), bit_tensor.byte()), dim=0)
RuntimeError: $ Torch: invalid memory size -- maybe an overflow? at ..\aten\src\TH\THGeneral.cpp:188

The main reason of the error is that 'cls_num' is smaller than 'actual_len', so 'cls_num-actual'_len value is under 0.

I don't understand what is 'actual_len'. What does the actual length mean?

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

1 participant