You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out to me that the set() method in utils.py line 7 contributes to this issue.
Cuz every time we transform a list into a set, the order will be different.
There are two methods to solve this:
Change set to hashset.
Replace origin line 7 with 'classes = sorted(set(labels))'.
I utilized the second method and this problem have been solved. Please check this out.
It turns out to me that the set() method in utils.py line 7 contributes to this issue.
Cuz every time we transform a list into a set, the order will be different.
There are two methods to solve this:
Change set to hashset.
Replace origin line 7 with 'classes = sorted(set(labels))'.
I utilized the second method and this problem have been solved. Please check this out.
I think you are right. the set is not ordered by default.
Hi Kipf,
Nice work. I am trying to run the model but failed to get the same result everytime even with the below lines.
np.random.seed(args.seed)
torch.manual_seed(args.seed)
if args.cuda:
torch.cuda.manual_seed(args.seed)
The text was updated successfully, but these errors were encountered: