Skip to content

Commit

Permalink
2.2rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexEMG committed May 27, 2021
1 parent b07e67b commit 5318f79
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def create_multianimaltraining_dataset(
but train & evaluate on a unix system (e.g. ubunt, colab, Mac) set this variable to True to convert the paths.
net_type: string
Type of networks. Currently resnet_50, resnet_101, and resnet_152 are supported (not the MobileNets!)
Type of networks. Currently resnet_50, resnet_101, and resnet_152, efficientnet-b0, efficientnet-b1, efficientnet-b2, efficientnet-b3,
efficientnet-b4, efficientnet-b5, and efficientnet-b6 as well as dlcrnet_ms5 are supported (not the MobileNets!).
See Lauer et al. 2021 https://www.biorxiv.org/content/10.1101/2021.04.30.442096v1
numdigits: int, optional
Expand Down
8 changes: 1 addition & 7 deletions deeplabcut/pose_estimation_tensorflow/train_multianimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,7 @@ def train(
sess.run(TF.global_variables_initializer())
sess.run(TF.local_variables_initializer())

# Restore variables from disk.
if "efficientnet" in net_type:
init_weights = os.path.join(cfg["init_weights"], "model.ckpt")
else:
init_weights = cfg["init_weights"]

restorer.restore(sess, init_weights)
restorer.restore(sess, cfg["init_weights"])
if maxiters == None:
max_iter = int(cfg["multi_step"][-1][1])
else:
Expand Down
2 changes: 1 addition & 1 deletion deeplabcut/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
Licensed under GNU Lesser General Public License v3.0
"""

__version__ = "2.2rc1"
__version__ = "2.2rc2"
VERSION = __version__
2 changes: 1 addition & 1 deletion examples/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rm -r OUT
cd ..
pip uninstall deeplabcut
python3 setup.py sdist bdist_wheel
pip install dist/deeplabcut-2.2rc1-py3-none-any.whl
pip install dist/deeplabcut-2.2rc2-py3-none-any.whl

cd examples

Expand Down
6 changes: 3 additions & 3 deletions examples/testscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
dfolder = basepath

dfolder = None
net_type = "resnet_50" #'mobilenet_v2_0.35' #'resnet_50'
# net_type = "mobilenet_v2_0.35"
# net_type = "efficientnet-b0" # to -b6
net_type = "resnet_50"
#net_type = "mobilenet_v2_0.35"
#net_type = "efficientnet-b0" # to -b6

augmenter_type = "default" # = imgaug!!
augmenter_type2 = "scalecrop"
Expand Down
7 changes: 5 additions & 2 deletions examples/testscript_multianimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
NUM_FRAMES = 5
TRAIN_SIZE = 0.8
NET = "dlcrnet_ms5"
# NET = "efficientnet-b0"
#NET = "resnet_152"
#NET = "efficientnet-b0"
#NET = "mobilenet_v2_0.35" # should be fixed

N_ITER = 5

basepath = os.path.dirname(os.path.realpath(__file__))
Expand Down Expand Up @@ -123,7 +126,7 @@

print("Analyzing video...")
deeplabcut.analyze_videos(config_path, [new_video_path], "mp4", robust_nframes=True,allow_growth=True)

print("Video analyzed.")

print("Create video with all detections...")
Expand Down
2 changes: 1 addition & 1 deletion reinstall.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pip uninstall deeplabcut
python3 setup.py sdist bdist_wheel
pip install dist/deeplabcut-2.2rc1-py3-none-any.whl
pip install dist/deeplabcut-2.2rc2-py3-none-any.whl
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setuptools.setup(
name="deeplabcut",
version="2.2rc1",
version="2.2rc2",
author="A. & M. Mathis Labs",
author_email="[email protected]",
description="Markerless pose-estimation of user-defined features with deep learning",
Expand Down

0 comments on commit 5318f79

Please sign in to comment.