Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions torchreid/data/datamanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def __init__(
train_sampler_t='RandomSampler',
cuhk03_labeled=False,
cuhk03_classic_split=False,
market1501_500k=False
market1501_500k=False,
**kwargs
):

super(ImageDataManager, self).__init__(
Expand All @@ -202,7 +203,8 @@ def __init__(
split_id=split_id,
cuhk03_labeled=cuhk03_labeled,
cuhk03_classic_split=cuhk03_classic_split,
market1501_500k=market1501_500k
market1501_500k=market1501_500k,
**kwargs
)
trainset.append(trainset_)
trainset = sum(trainset)
Expand Down
2 changes: 1 addition & 1 deletion torchreid/utils/feature_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(
self.model = model
self.preprocess = preprocess
self.to_pil = to_pil
self.device = device
self.device = next(self.model.parameters()).device

def __call__(self, input):
if isinstance(input, list):
Expand Down