Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson committed Sep 26, 2024
1 parent 9380201 commit 82603f5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
12 changes: 12 additions & 0 deletions docs/tables/davis_bouldin_cuda.csv
Original file line number Diff line number Diff line change
@@ -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)",,
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
description="Toolkit for computer classification and analysis of behaviors in experimental animals",
Expand Down
5 changes: 2 additions & 3 deletions simba/video_processors/video_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 82603f5

Please sign in to comment.