I suggest to take a look at GitHub - iCGY96/awesome_OpenSetRecognition_list: A curated list of papers & resources linked to op 3
You could try to look at some reference code in the list or on the mentioned challenge.