Closed anandvsr closed 3 years ago
@anandvsr nms is TorchVision operator that we don't support. It is still blocked by https://github.com/pytorch/vision/issues/2692.
Thank you!
Hii @stu1130, Facing same issue while inferencing object detection using pytorch trained model. Is there any other way to do object detection inference using pytorch trained model?
@smeet2804
If you install torchvision with python, you can use DJL to run your model, what you need to do is set environment:
PYTORCH_EXTRA_LIBRARY_PATH=/PATH_TO_TORCHVISION/libtorchvsion.so
This is urgly, but it should work.
Hii @frankfliu , I installed torchvision but libtorchvision.so file is not present in the folder.
@smeet2804 You need build from source: https://github.com/pytorch/vision
@frankfliu
I installed it from source using python setup.py install
command but still can't locate the file.
@smeet2804 what you need is c++ torchvision not python torchvision. The instructions are
mkdir build
cd build
# Add -DWITH_CUDA=on support for the CUDA if needed
cmake ..
make
make install
Thanks @stu1130 ,
I tried, but not able to run make
command after cmake ..
. It gives **make * no targets specified and no makefile found. stop.
Don't know where I'm going wrong. I tried it on Windows 10 through anaconda prompt.
build.gradle
Predict.java