Use this directoryWithVideosAndAnnotation data source (as pointed in the above link). But note that, you need to use Create ML framework to do this in Swift. The CreateML App current does not support this yet. directoryWithVideosAndAnnotation(at: URL, ===> this is your directory URL for your videos annotationFile: URL, ===> this is the CSV or JSON, or TXT annotation file URL videoColumn: String, ===> this is the video file column name string you used in your annotation file. labelColumn: String, ===> this is the label name column name string your used in your annotation file. startTimeColumn: String? = nil, ===> this is start time column, optional, if you don't provide, it assumes starting from 0 endTimeColumn: String? = nil) ===> this is end time column, optional, if you don't provide, it assumes ending at the very end.