collinbrake:

I am attempting to extract the pixel location of an object (a row of plants in my application) from an image.


This sounds rather like a segmentation use case, where each pixel will get a class prediction.
torchvision provides a few segmentation models, which you could try out for your use case.
Let me know, if I misunderstood your question.