Skip to content

handle single channel images in tensor_to_img#47

Merged
greentfrapp merged 1 commit intogreentfrapp:handle-1-channel-imagesfrom
alik-git:handle_1_channel_images
May 19, 2024
Merged

handle single channel images in tensor_to_img#47
greentfrapp merged 1 commit intogreentfrapp:handle-1-channel-imagesfrom
alik-git:handle_1_channel_images

Conversation

@alik-git
Copy link
Contributor

If a custom model is being used where the optimized parameter image only has one channel, then the tensor_to_img_array function in render.py crashes.

By handling that possibility, the error is fixed.

@greentfrapp greentfrapp changed the base branch from dev to handle-1-channel-images May 19, 2024 10:09
@greentfrapp
Copy link
Owner

SFLR and thanks for the update @alik-git ! I'm merging this to a separate branch first to make a small edit

@greentfrapp greentfrapp merged commit ecb5f38 into greentfrapp:handle-1-channel-images May 19, 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

Successfully merging this pull request may close these issues.

2 participants