Vision: Transforms for C++ API

Created on 3 May 2019  路  6Comments  路  Source: pytorch/vision

馃殌 Feature

Hi.
I want to implement transforms using OpenCV for the C++ API after finishing the C++ models.

transforms needs discussion

Most helpful comment

While using OpenCV is the natural choice, I'm considering modifying the transforms in torchvision to use PyTorch ops. It would thus be natural to also use PyTorch ops in C++.

Thoughts?

All 6 comments

While using OpenCV is the natural choice, I'm considering modifying the transforms in torchvision to use PyTorch ops. It would thus be natural to also use PyTorch ops in C++.

Thoughts?

i'm more looking forward to using pytorch ops, like grid_sample, F.interpolate, etc.

Well I guess PyTorch ops would be a better choice. I'll implement the new transforms when they are done. I can help with the new implementation as well if you'd like.

Do you plan to use PyTorch ops for all operations, including random crop and random color operations as well?

@moskomule for all ops that are currently supported, including random crop and random color operations, yes.

Is there any work already done on including the transform ops in the cpp api?

I see that the python implementations transform ops often use the PIL Image object as arguments for function calls. How would images be passed in the cpp api?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rbrigden picture rbrigden  路  59Comments

timonbimon picture timonbimon  路  28Comments

Finniu picture Finniu  路  24Comments

parsing-science picture parsing-science  路  61Comments

sumanthratna picture sumanthratna  路  28Comments