From 82603f590ac06f4a32081e9e3c47685ea2467e12 Mon Sep 17 00:00:00 2001 From: sronilsson Date: Thu, 26 Sep 2024 17:45:09 -0400 Subject: [PATCH] docs --- docs/tables/davis_bouldin_cuda.csv | 12 ++++++++++++ setup.py | 2 +- simba/video_processors/video_processing.py | 5 ++--- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 docs/tables/davis_bouldin_cuda.csv diff --git a/docs/tables/davis_bouldin_cuda.csv b/docs/tables/davis_bouldin_cuda.csv new file mode 100644 index 000000000..5a243088e --- /dev/null +++ b/docs/tables/davis_bouldin_cuda.csv @@ -0,0 +1,12 @@ +OBSERVATIONS (MILLIONS),TIME (S),STDEV (S) +2,0.03166,0.023 +4,0.06161,0.04883 +8,0.12143,0.09597 +16,0.24169,0.19592 +32,0.27942,0.12019 +64,0.45187,0.09255 +128,0.98631,0.31372 +NVIDIA GeForce RTX 4070,, +REPEATS = 3,, +"centers = [[0, 0], [5, 10], [10, 0], [20, 10]]",, +"x, y = make_blobs(n_samples=OBSERVATIONS, n_features=2, centers=centers, cluster_std=1)",, diff --git a/setup.py b/setup.py index 0e8b4791e..d512ed209 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ # Setup configuration setuptools.setup( name="Simba-UW-tf-dev", - version="2.2.1", + version="2.2.2", author="Simon Nilsson, Jia Jie Choong, Sophia Hwang", author_email="sronilsson@gmail.com", description="Toolkit for computer classification and analysis of behaviors in experimental animals", diff --git a/simba/video_processors/video_processing.py b/simba/video_processors/video_processing.py index fa283a5d4..d7837658b 100644 --- a/simba/video_processors/video_processing.py +++ b/simba/video_processors/video_processing.py @@ -2262,6 +2262,8 @@ def resize_videos_by_width(video_paths: List[Union[str, os.PathLike]], :example: >>> video_paths= ['/Users/simon/Desktop/envs/simba/troubleshooting/RAT_NOR/project_folder/videos/test/08102021_DOT_Rat7_8(2).mp4', '/Users/simon/Desktop/envs/simba/troubleshooting/RAT_NOR/project_folder/videos/test/08102021_DOT_Rat11_12.mp4'] >>> _ = resize_videos_by_width(video_paths=video_paths, width=300, overwrite=False, save_dir='/Users/simon/Desktop/envs/simba/troubleshooting/RAT_NOR/project_folder/videos/test/new') + >>> video_paths= [r"D:\videos\4A_Mouse_5-choice_MustTouchTrainingNEWFINAL_a8_grayscale.mp4"] + >>> resize_videos_by_width(video_paths=video_paths, width=301, overwrite=False, save_dir=r"D:\videos\test", gpu=True) """ timer = SimbaTimer(start=True) @@ -2321,9 +2323,6 @@ def resize_videos_by_width(video_paths: List[Union[str, os.PathLike]], print(f"Resized width {len(video_paths)} video(s). Elapsed time: {timer.elapsed_time_str}s.") return new_video_paths -video_paths= [r"D:\videos\4A_Mouse_5-choice_MustTouchTrainingNEWFINAL_a8_grayscale.mp4"] -resize_videos_by_width(video_paths=video_paths, width=301, overwrite=False, save_dir=r"D:\videos\test", gpu=True) - def create_blank_video(path: Union[str, os.PathLike],