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

problem with Area1 hallway6 #284

Open
youssef962 opened this issue Jul 30, 2021 · 0 comments
Open

problem with Area1 hallway6 #284

youssef962 opened this issue Jul 30, 2021 · 0 comments

Comments

@youssef962
Copy link

I'm preparing the raw s3dis for training, after I converted the data to .npy files I want to convert it to hdf5 so I must run the 'gen_indoor3d_h5.py'. the first trial it showed me error with line 125 in 'indoor3d_util' as we adding cannot be done so I removed the + and put a comma instead it showed me error as I'm returning three values and I should return only two and I don't know which to remove the range(N) or the list(sample). when removing any of them it showed me another error of the dimensions of the array, any help please!
1st trial:

    else:
        sample = np.random.choice(N, num_sample-N)
        dup_data = data[sample, ...]
        return np.concatenate([data, dup_data], 0), range(N)+list(sample)

the error:

return np.concatenate([data, dup_data], 0), range(N)+list(sample)
TypeError: unsupported operand type(s) for +: 'range' and 'list'

2nd trial:

    else:
        sample = np.random.choice(N, num_sample-N)
        dup_data = data[sample, ...]
        return np.concatenate([data, dup_data], 0), range(N), list(sample)

the error:

new_data, sample_indices = sample_data(data, num_sample)
ValueError: too many values to unpack (expected 2)

3rd trial:

    else:
        sample = np.random.choice(N, num_sample-N)
        dup_data = data[sample, ...]
        return np.concatenate([data, dup_data], 0), list(sample)

the error

File "<__array_function__ internals>", line 5, in concatenateValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 4096 and the array at index 5 has size 3778```
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