I have input images of size 150x750 and want to train the model with that size, without resizing it to 224x224, because the kind of anomalies in the test set are minor and resizing it to a square makes it lose important information.
I tried doing a couple changes to facilitate this, but the results are coming out to be really random and the object in the image is getting distorted such that I am not able to identify it. This is what I tried;
main.py
patchcore.py
did the following because the original (28,28,-1) was causing shape mismatch (I think there might be some issue with this. I know this is really dumb, sorry, but I am new to this and want to learn)
did the following because without permuting the shape, it causes a shape mismatch;
previous error:
updated code to get rid of error:
Is it possible and advisable to input a non-square image to the model, with a wide-resnet50 backbone?
If yes, can you guide me the correct way to do so?
I have input images of size 150x750 and want to train the model with that size, without resizing it to 224x224, because the kind of anomalies in the test set are minor and resizing it to a square makes it lose important information. I tried doing a couple changes to facilitate this, but the results are coming out to be really random and the object in the image is getting distorted such that I am not able to identify it. This is what I tried;
main.py
![image](https://github.com/tiskw/patchcore-ad/assets/66826063/8e921249-0f14-4382-abc6-a7cf109746cc)
patchcore.py did the following because the original (28,28,-1) was causing shape mismatch (I think there might be some issue with this. I know this is really dumb, sorry, but I am new to this and want to learn)![image](https://github.com/tiskw/patchcore-ad/assets/66826063/cc504922-3013-4a52-809f-69ac35ffc327)
did the following because without permuting the shape, it causes a shape mismatch; previous error:![image](https://github.com/tiskw/patchcore-ad/assets/66826063/cd6cc58f-1f9a-417b-933e-b4b22314378d)
updated code to get rid of error:![image](https://github.com/tiskw/patchcore-ad/assets/66826063/56845854-3721-45b8-bb9c-d0c98f208dd9)