-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Remove NestedTensor #233
Comments
I think the question of the first importance is what the scenario you are facing. For examples, if you are processing the object detection problem, you can just drop the Lines 59 to 60 in 5e66b4c
and Lines 72 to 73 in 5e66b4c
Because it only uses the Otherwise in the segmentation tasks, it seems that we should do a lot to detach the object |
Sounds like a good idea, however on further look, "mask" is used later on in "out", which in turn is used later.
|
This code looks more like C++ than python - are all these typing really ncecessary ? |
Some of these typing is used for converting to |
Sorry, you are right. I have confused the usage of Lines 283 to 305 in 5e66b4c
So if you wanna drop |
It is possible to remove NestedTensor without having to retrain the model, but will require a couple of changes to the code (which shouldn't be too difficult and most has already been pointed out). For more background on NestedTensor, see #116 I believe I've answered your question, and as such I'm closing this issue, but let us know if you have further questions |
Who knows when the Python NestedTensor going to finalized, whether every vendor decides to support that is probably years away, Would request figuring out a better way than just relying on uncertain future work. |
Instructions To Reproduce the 🐛 Bug:
Is there a way to replace the NestedTensor with 2 tensors - one for images and other for masks , without having to retrain the network ? The use of this odd class as input cuases lot of headache .
Expected behavior:
replace NestedTensor with 2 tensors.
Environment:
1.6
The text was updated successfully, but these errors were encountered: