Skip to content

Commit

Permalink
BUG: Fix incorrect pixel standard deviation calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
scottclowe committed Dec 7, 2024
1 parent 53d82ad commit b24090a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bioscan_dataset/bioscan1m.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from torchvision.datasets.vision import VisionDataset

RGB_MEAN = torch.tensor([0.72510918, 0.72891550, 0.72956181])
RGB_STDEV = torch.tensor([0.66364000, 0.66088159, 0.66035860])
RGB_STDEV = torch.tensor([0.12654378, 0.14301962, 0.16103319])

COLUMN_DTYPES = {
"sampleid": str,
Expand Down
3 changes: 2 additions & 1 deletion bioscan_dataset/bioscan5m.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
from torchvision.datasets.vision import VisionDataset

RGB_MEAN = torch.tensor([0.76281859, 0.76503749, 0.76373138])
RGB_STDEV = torch.tensor([0.67122520, 0.66740192, 0.66488950])
RGB_STDEV = torch.tensor([0.14205404, 0.15642502, 0.17309470])


COLUMN_DTYPES = {
"processid": str,
Expand Down

0 comments on commit b24090a

Please sign in to comment.