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

Predicting batch of image arrays #496

Open
deeperlearner opened this issue May 29, 2024 · 0 comments
Open

Predicting batch of image arrays #496

deeperlearner opened this issue May 29, 2024 · 0 comments

Comments

@deeperlearner
Copy link

Pytorch-UNet/predict.py

Lines 15 to 19 in 21d7850

def predict_img(net,
full_img,
device,
scale_factor=1,
out_threshold=0.5):

This function seems to predict a PIL image a time.

How can predict_img process a batch of images. For example, full_imgs = np.random.rand(batch_size, 3, 112, 112).

@deeperlearner deeperlearner changed the title predict a lot of image using predict_img Predicting batch of image arrays May 29, 2024
deeperlearner pushed a commit to deeperlearner/Pytorch-UNet that referenced this issue May 29, 2024
 add `predict_imgs()` function in predict.py to support predicting batch of image
 arrays.
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