You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,6 +32,29 @@ Please check out [www.mousemotorlab.org/deeplabcut](https://www.mousemotorlab.or
31
32
# [DEMO the code](/examples)
32
33
We provide several Jupyter Notebooks: one that walks you through a demo dataset to test your installation, and another Notebook to run DeepLabCut from the begining on your own data. We also show you how to use the code in Docker, and on Google Colab.
33
34
35
+
# Why using DeepLabCut?:
36
+
37
+
- Due to transfer learning it requires **little training data** for multiple, challenging behaviors (see [Mathis et al.](https://www.nature.com/articles/s41593-018-0209-y) for details).
- It allows 3D pose estimation with a single network and camera (see [Mathis/Warren](https://www.biorxiv.org/content/early/2018/10/30/457242) for details)
- Nov 2018: Various (post-hoc) analysis scripts contributed by users (and us) will be gathered at [DLCutils](https://github.com/AlexEMG/DLCutils). Feel free to contribute! In particular, there is a script guiding you through
print("Project loaded in colab-mode. Apparently Colab has trouble loading statsmodels, so the smooting & outlier frame extraction is disabled. Sorry!")
''' Non batch wise pose estimation for video cap.'''
217
216
ifcfg['cropping']:
218
217
print("Cropping based on the x1 = %s x2 = %s y1 = %s y2 = %s. You can adjust the cropping coordinates in the config.yaml file."%(cfg['x1'], cfg['x2'],cfg['y1'], cfg['y2']))
DLCscorer=auxiliaryfunctions.GetScorerName(cfg,shuffle,trainFraction) #automatically loads corresponding model (even training iteration based on snapshot index)
174
175
175
176
#checks if input is a directory
176
-
if [os.path.isdir(i) foriinvideo] == [True]:#os.path.isdir(video)==True:
177
+
if [os.path.isdir(i) foriinvideos] == [True]:#os.path.isdir(video)==True:
177
178
"""
178
179
Analyze all the videos in the directory
179
180
"""
180
181
print("Analyzing all the videos in the directory")
181
-
videofolder=video[0]
182
+
videofolder=videos[0]
182
183
os.chdir(videofolder)
183
-
videos=np.sort([fnforfninos.listdir(os.curdir) if (videotypeinfn) and ("labeled"notinfn)])
184
+
Videos=np.sort([fnforfninos.listdir(os.curdir) if (videotypeinfn) and ("labeled"notinfn)])
184
185
else:
185
-
videos=video
186
+
Videos=videos
186
187
187
-
forvideoinvideos:
188
+
forvideoinVideos:
188
189
print(video)
189
190
videofolder=str(Path(video).parents[0]) #where your folder with videos is.
0 commit comments