Hi there
So I’m trying to run a Mask-RCNN object detection model in Android Studio using PyTorch Mobile, and I’m getting the same issue as mentioned. You mentioned that it is not possible to have both:
implementation ‘org.pytorch:pytorch_android:1.9.0’
implementation ‘org.pytorch:pytorch_android_lite:1.9.0’

in the same android artifact, but when I try having just the original version (and not the lite version), I still get the duplicate class error. This is how my the relevant dependencies in my build.gradle file looks:
    implementation 'org.pytorch:pytorch_android:1.9.0'
    implementation 'org.pytorch:pytorch_android_torchvision:1.9.0'

Any suggestions/help would be greatly appreciated