Closed lzd-1230 closed 3 weeks ago
I solve it by adding transform method to Floder()
and force data to be square.
like, and make the input data to be torch.Size([3, 1920, 1920])
transform_img = transforms.Compose([
transforms.Resize(resize),
transforms.CenterCrop(imagesize),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
])
When I used notebook demo and replace the datapart to my own (1080, 1920) image
I got error like
And I don't know how to solve it, I've tested my datamodule in Patchcore model and it works perfectly, but wrong in this notebook using FastFlow model.
after change the
image_size = 256
still get error like this.I couldn't figure out what's wrong with that. Any advice would be great thanks!