PICK-pytorch icon indicating copy to clipboard operation
PICK-pytorch copied to clipboard

why predict result is different in same model and environment?

Open Helloworld0214 opened this issue 3 years ago • 5 comments

Thank for your excellent work. I use PICK to train invoices, but why the predict result is different in same model and environment? Looking forward to your reply.

Helloworld0214 avatar May 07 '21 08:05 Helloworld0214

I got the answer. The test process need add random seed. @wenwenyu

Helloworld0214 avatar May 07 '21 09:05 Helloworld0214

@Helloworld0214 Where do you set the random seed?

jorgerodriguezsj avatar May 12 '21 07:05 jorgerodriguezsj

@Helloworld0214 Where do you set the random seed?

I set it before in test model loaded. image

Helloworld0214 avatar May 20 '21 03:05 Helloworld0214

I have the same problem, I trained with GPU on an EC2 instance, now I am running it on CPU and the test results change, Can I be more explicit in the use of the seed? This is during the test? Even inserting the seed the result is different

IrvingHerreraLuna avatar Jun 25 '21 00:06 IrvingHerreraLuna

Hi, can you post the set_seed() function? @Helloworld0214

ImmineoII avatar Nov 22 '21 13:11 ImmineoII