Skip to content

Commit

Permalink
Fix PALETTE AttributeError in single_gpu_test (#7230)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinya7y authored Feb 23, 2022
1 parent 37a1150 commit 430ff02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet/apis/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def single_gpu_test(model,
model.eval()
results = []
dataset = data_loader.dataset
PALETTE = dataset.PALETTE
PALETTE = getattr(dataset, 'PALETTE', None)
prog_bar = mmcv.ProgressBar(len(dataset))
for i, data in enumerate(data_loader):
with torch.no_grad():
Expand Down

0 comments on commit 430ff02

Please sign in to comment.