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
This may be caused by the Version incompatibility of learn2learn. Our codes support learn2learn with version >= 0.1.5, and the original codes are:
tasks=l2l.data.TaskDataset(dataset, task_transforms=[
l2l.data.transforms.FusedNWaysKShots(dataset, new_ways, 2*shots, filter_labels=filter_labels),
l2l.data.transforms.LoadData(dataset),
# l2l.data.transforms.RemapLabels(dataset, shuffle=label_shuffle_per_task),l2l.data.transforms.RemapLabels(dataset, shuffle=True),
# do not keep the original labels, use (0 ,..., n-1);# if shuffle=True, to shuffle labels at each task.l2l.data.transforms.ConsecutiveLabels(dataset),
# re-order samples and make their original labels as (0 ,..., n-1).
], num_tasks=num_tasks)
FusedNWaysKShots is just an Efficient implementation of FilterLabels, NWays, and KShots. To avoid the above error, you can update your learn2learn package (>=0.1.5) or directly use the codes as follows.
This may be caused by the Version incompatibility of learn2learn. Our codes support learn2learn with
version >= 0.1.5
, and the original codes are:FusedNWaysKShots
is just an Efficient implementation ofFilterLabels
,NWays
, andKShots
. To avoid the above error, you canupdate your learn2learn package
(>=0.1.5) or directly use the codes as follows.For more details, you can refer to my blog: 初探元学习库learn2learn or the official documents of learn2learn.
GOOD LUCK to you guys.
The text was updated successfully, but these errors were encountered: