390d6560c6873526218606c254627f52898c700d,deeplabcut/create_project/new.py,,create_new_project,#Any#Any#Any#Any#Any#Any#Any#,20
Before Change
if not len(video_sets):
// Silently sweep the files that were already written.
shutil.rmtree(project_path, ignore_errors=True)
print("WARNING: No valid videos were found. The project was not created ...")
print("Verify the video files and re-create the project.")
return "nothingcreated"
// Set values to config file:
After Change
except:
rel_video_path = os.readlink(str(video))
try:
vid = VideoReader(rel_video_path)
video_sets[rel_video_path] = {
"crop": ", ".join(map(str, vid.get_bbox()))
}
except IOError:
warnings.warn("Cannot open the video file! Skipping to the next one...")
os.remove(video) // Removing the video or link from the project
if not len(video_sets):
// Silently sweep the files that were already written.
shutil.rmtree(project_path, ignore_errors=True)
warnings.warn("No valid videos were found. The project was not created... "
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: AlexEMG/DeepLabCut
Commit Name: 390d6560c6873526218606c254627f52898c700d
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/create_project/new.py
Class Name:
Method Name: create_new_project
Project Name: ClimbsRocks/auto_ml
Commit Name: e41392497c6da75a18b0894842cf1898c6e8feb8
Time: 2017-04-10
Author: ClimbsBytes@gmail.com
File Name: auto_ml/utils_model_training.py
Class Name: FinalModelATC
Method Name: transform
Project Name: NifTK/NiftyNet
Commit Name: ceb902e591225a84685186adaada1083e0272b79
Time: 2017-08-21
Author: t.doel@ucl.ac.uk
File Name: niftynet/utilities/download.py
Class Name: ConfigStore
Method Name: update_if_required