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

data preproccessing : mask = to_tensor #859

Open
raidanis opened this issue Mar 9, 2024 · 4 comments
Open

data preproccessing : mask = to_tensor #859

raidanis opened this issue Mar 9, 2024 · 4 comments

Comments

@raidanis
Copy link

raidanis commented Mar 9, 2024

my masks shape is (512, 512), when i start the fitting i get an error of miss matching axes , i think the problem is here :

**def to_tensor(x, **kwargs):

return x.transpose(2, 0, 1).astype('float32')**

the function expect input of 3 dimentions not 2 , any one can help ??

Copy link

github-actions bot commented May 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label May 9, 2024
@qubvel
Copy link
Owner

qubvel commented May 9, 2024

Hi, you can just expand the last dim, x[..., None]

@raidanis
Copy link
Author

raidanis commented May 9, 2024 via email

@qubvel
Copy link
Owner

qubvel commented May 9, 2024

You can ask a question, if I have an answer I will help :)

@github-actions github-actions bot removed the Stale label May 10, 2024
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

2 participants