Skip to content

Commit

Permalink
Merge pull request #1147 from voxel51/iss-1146
Browse files Browse the repository at this point in the history
Fixing #1146
  • Loading branch information
benjaminpkane authored Jul 28, 2021
2 parents 42a763a + 9841b5e commit 171d4c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion fiftyone/utils/cityscapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import fiftyone.core.sample as fos
import fiftyone.core.utils as fou
import fiftyone.utils.data as foud
import fiftyone.types as fot


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -266,7 +267,7 @@ def _export_split(
uuids = sorted(images_map.keys())

logger.info("Finalizing split '%s'...", split)
exporter = foud.FiftyOneDatasetExporter(split_dir, move_media=False)
exporter = foud.LegacyFiftyOneDatasetExporter(split_dir)
pb = fou.ProgressBar()
with exporter, pb:
exporter.log_collection(dataset)
Expand Down
2 changes: 0 additions & 2 deletions fiftyone/utils/data/exporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,6 @@ class LegacyFiftyOneDatasetExporter(GenericSampleDatasetExporter):
- ``"move"``: move media files into the export directory
- ``"symlink"``: create symlinks to each media file in the export
directory
relative_filepaths (True): whether to store relative (True) or absolute
(False) filepaths to media files on disk in the output dataset
pretty_print (False): whether to render the JSON in human readable
Expand Down Expand Up @@ -1493,7 +1492,6 @@ class FiftyOneDatasetExporter(BatchDatasetExporter):
- ``"move"``: move media files into the export directory
- ``"symlink"``: create symlinks to each media file in the export
directory
rel_dir (None): a relative directory to remove from the ``filepath`` of
each sample, if possible. The path is converted to an absolute path
(if necessary) via ``os.path.abspath(os.path.expanduser(rel_dir))``.
Expand Down

0 comments on commit 171d4c1

Please sign in to comment.