Skip to content

Commit

Permalink
Allow users to enable tracker with an environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mzweilin committed Sep 20, 2023
1 parent 393a862 commit d36f08e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mart/datamodules/fiftyone.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

logger = logging.getLogger(__name__)
try:
# Disable the FiftyOne tracker due to the privacy concern.
# Users should delete the following line if they intend to be tracked.
os.environ["FIFTYONE_DO_NOT_TRACK"] = "1"
# Disable the FiftyOne tracker by default due to the privacy concern.
# Users need to export FIFTYONE_DO_NOT_TRACK=0 if they intend to be tracked.
if os.getenv("FIFTYONE_DO_NOT_TRACK") is None:
os.environ["FIFTYONE_DO_NOT_TRACK"] = "1"
import fiftyone as fo
import fiftyone.utils.coco as fouc
except ImportError:
Expand Down

0 comments on commit d36f08e

Please sign in to comment.