fe664e274814a75b56c2f8aeabcb1a51d8f5d4f0,scripts/train.py,Train,_set_timelapse,#Train#,62

Before Change


            if folder is not None and not os.path.isdir(folder):
                raise FaceswapError("The Timelapse path "{}" does not exist".format(folder))
            exts = [os.path.splitext(fname)[-1].lower() for fname in os.listdir(folder)]
            if not any(ext in _image_extensions for ext in exts):
                raise FaceswapError("The Timelapse path "{}" does not contain any valid "
                                    "images".format(folder))
        kwargs = {"input_a": self._args.timelapse_input_a,

After Change


        timelapse_output = str(get_folder(self._args.timelapse_output))

        for side in ("a", "b"):
            folder = getattr(self._args, "timelapse_input_{}".format(side))
            if folder is not None and not os.path.isdir(folder):
                raise FaceswapError("The Timelapse path "{}" does not exist".format(folder))

            training_folder = getattr(self._args, "input_{}".format(side))
            if folder == training_folder:
                continue  // Timelapse folder is training folder

            filenames = [fname for fname in os.listdir(folder)
                         if os.path.splitext(fname)[-1].lower() in _image_extensions]
            if not filenames:
                raise FaceswapError("The Timelapse path "{}" does not contain any valid "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepfakes/faceswap
Commit Name: fe664e274814a75b56c2f8aeabcb1a51d8f5d4f0
Time: 2020-10-09
Author: 36920800+torzdf@users.noreply.github.com
File Name: scripts/train.py
Class Name: Train
Method Name: _set_timelapse


Project Name: deepfakes/faceswap
Commit Name: fe664e274814a75b56c2f8aeabcb1a51d8f5d4f0
Time: 2020-10-09
Author: 36920800+torzdf@users.noreply.github.com
File Name: scripts/train.py
Class Name: Train
Method Name: _set_timelapse


Project Name: comic/grand-challenge.org
Commit Name: c11a9660a04ee0dd5c2d25c69f53e271747c7612
Time: 2020-03-24
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/views.py
Class Name: QuestionOptionMixin
Method Name: validate_options


Project Name: brian-team/brian2
Commit Name: 8d60cb0e1b7d501cf774039f55b450e26cceb26b
Time: 2013-05-03
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/exact.py
Class Name: LinearStateUpdater
Method Name: __call__