tps_stn_pytorch icon indicating copy to clipboard operation
tps_stn_pytorch copied to clipboard

run the training on wider input images (width=height>>28)

Open kao123 opened this issue 5 years ago • 3 comments

great project! i succeeded to run the code on my own images with input size=28. I was trying to run the code using a different input size (e.g widht=height=300) As soon as i modify the args.image_height = args.image_width to any other value than 28 (in my data_loader and mnist_train) i get the following error

File "/home/myaccount/tps_stn_pytorch/tps_grid_gen.py", line 67, in forward assert source_control_points.size(1) == self.num_points AssertionError '''

I tried to modify the tps_grid_gen code.. but nothing's worked. Any help please

kao123 avatar Dec 06 '18 15:12 kao123

hello! I have the same problem, how do you deal with it? I try to realign the code in mnist_train 'def train(epoch)' , the AssertionError disappear but i don't get any output(checkpoint, accuracy log). but the code indeed run on my gpu. any help would be appreciated!

KakaVlasic avatar Mar 10 '19 05:03 KakaVlasic

Hey, is this problem solved? @WarBean

ilyalasy avatar Feb 03 '21 10:02 ilyalasy

This problem is not solved yet :\

Fleyderer avatar Aug 30 '23 09:08 Fleyderer