Closed PushyamiKaveti closed 6 years ago
What is the resolution of your input video? If you are trying to crop a region which is larger than the video frame, it will cause issues.
Can you try cropping a smaller region, like [0:50, 0:100, :], and let me know what happens?
Ah, nevermind. This is actually a bug! Pushing a fix in a few minutes.
Just pushed a fix. If you grab the latest source (or docker image, in about 20 minutes) your issue should be fixed!
Thank you. I will check out the fix. Coming to your question about video crop region I was choosing a smaller size. The original video is 1280 X 720
@apoms ... I grabbed a new docker image using docker-compose run --service-ports gpu /bin/bash
and tried the custom op. It still hangs. Is there a specific docker image I need to pull.
@apoms .. Sorry! I did not actually pull in the latest image earlier. The custom ops for crop works now. Thankd
Hi, I have been ardently trying to create custom python op for crop. I followed the example for resize. The following is my code
I tried debugging the code. It turns out that when I am returning the cropped ndarray the function freezes. If I just return the input frame itself, it works. Not sure why returning a different size image is causing trouble. The resize function provided in examples also does not work. Any thoughts on this?