Single image inference, Docker support, API support#13
Single image inference, Docker support, API support#13scottmartinnet wants to merge 53 commits intoyeshwanth95:masterfrom
Conversation
…preserve stdout, move calculate_slice_boxes to utils so it can be used during inference, fix a warning.
|
Hey, can you help me running infer_single_image.py? I resized the image into 224 x 224, and ran the command python infer_single_image.py -e folder but no response. I have rtx 3050 4GB and i5 11th gen. |
|
Make sure to provide the image as stdin, or the command will just wait for input. Example: |
|
Also, you don't have to resize, the code will automatically tile a large input image and assemble polygons from multiple runs. |
|
@scottmartinnet Thank you for your response. It's working. I've another question. If it handles large input image, how large the input can be depending on the hardware? |
|
Awesome! The image can be arbitrarily large as long as it fits in memory and you have enough processing time to process that many tiles. |
|
Okay! Is it normal to take ~10s for per 224x224 tile? |
|
It all depends on your hardware. |
…ithm, boost overlap to 50%, add caching for development.
…rizontal/vertical edges.
…gons, always check at least one edge point.
Feature/improved merging
|
We've improved our approach to merging polygons from different tiles with a bitmap-based approach and an increased tile overlap percentage and added a filtering layer to ignore polygons at the boundary of a tile which do not continue onto other tiles. |
…c line simplification algorithm.
Feature/fine tuning
…ing without crashing.
Load checkpoint weights dynamically to get all pretrained models work…
Restructuring, type safety, cleanup
Handle multipolygons coming out of regularization.
Listen on all interfaces.
I have completed a series of new features based on this code:
I am currently successfully running this project in AWS SageMaker as an inference endpoint.