-
Notifications
You must be signed in to change notification settings - Fork 5
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 loading error in 2 channel input to 1 channel output labelfree #374
Comments
Yeah! If your image is 96x96, spatial_dims should be 2 and dimension_order_out should be CYX. One way to test whether aicsimageio is loading your images correctly would be
Based on this output, you can choose the order of dimensions that need to be loaded (e.g. the metadata could have z and y switched or something like that). |
This is the output for still getting this error: I'm using a patch_shape of [32,32] |
This is with loading both images as "CYX"? |
This was CYX just with the source column: when I do both, this is the error:
|
Can you share your full config file? (in the .hydra folder of your run) |
|
Since you're including the channel dimension when loading your images, they should be |
Here's the config file:
|
Nice! Progress! The problem is now with your discriminator - we concatenate the input (conditioning) image (which is two channels) with the model prediction (1 channel) and feed that to the discriminator. Rightnow, your |
Thank you so much! This worked locally on my mac environment. I have been getting this specific error when I run the multi channel on a docker in a linux environment.
|
hi @benjijamorris any suggestion for this?
|
hey @KartikeyKansal1! Based on your line numbers, it looks like you're maybe not on main? If that's the case I think this has been fixed. |
Thanks for the update. Yes it's working now. Though I had to remove
Getting this error: |
Yeah! That argument is called |
Hi @benjijamorris , I'm still figuring out how to do a multi channel input to a single channel output. To me it seems that my configuration settings are correct but I might be wrong. Can you help me point out if I'm missing out any configuration changes. I have my input image in the source column which is a 2 channel image. And target column has a 1 channel image.
spatial_dims=3, raw_im_channels=2
for source column:
for target column:
dimension_order_out: YX
I'm getting the following error currently which looks like I'm not loading the dimensions in correct order.
ValueError: Crop size [32 32] is too large for image size [ 1 96]
Input image's info: it's a 2 channel 96x96 image
The text was updated successfully, but these errors were encountered: