Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing __init__.py in several places #195

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added hybrik/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion hybrik/models/HRNetWithCam.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, norm_layer=nn.BatchNorm2d, **kwargs):

self.preact = get_hrnet(kwargs['HRNET_TYPE'], num_joints=self.num_joints,
depth_dim=self.depth_dim,
is_train=True, generate_feat=True, generate_hm=True)
is_train=True, generate_feat=True, generate_hm=True, ROOT=kwargs["ROOT"])

# # Load pretrain model
# model_state = self.preact.state_dict()
Expand Down
Empty file.
Empty file.
3 changes: 2 additions & 1 deletion hybrik/models/layers/hrnet/hrnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ def load_hrnet_cfg(file_name):


def get_hrnet(type_name, num_joints, depth_dim, **kwargs):
cfg = load_hrnet_cfg(f'./hybrik/models/layers/hrnet/w{type_name}.yaml')
ROOT = kwargs['ROOT']
cfg = load_hrnet_cfg(f'{ROOT}/models/layers/hrnet/w{type_name}.yaml')
cfg['MODEL']['NUM_JOINTS'] = num_joints
cfg['MODEL']['DEPTH_DIM'] = depth_dim

Expand Down
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions hybrik/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GENERATED VERSION FILE
# TIME: Wed May 31 16:40:54 2023
# TIME: Fri Feb 9 21:44:32 2024

__version__ = '0.2.0+aa1ef5e'
__version__ = '0.2.0+b7949b3'
short_version = '0.2.0'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_version():
long_description=readme(),
keywords='computer vision, human pose and shape estimation',
packages=find_packages(exclude=('data', 'exp',)),
package_data={'': ['*.json', '*.txt']},
package_data={'': ['*.json', '*.txt', "*.yaml"]},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
Expand All @@ -123,7 +123,7 @@ def get_version():
tests_require=['pytest'],
install_requires=[
'numpy', 'six', 'terminaltables', 'scipy',
'cython', 'opencv-python==4.1.2.30', 'matplotlib',
'cython', 'opencv-python>=4.1.2.30', 'matplotlib',
'pycocotools', 'tqdm', 'easydict', 'chumpy',
'pyyaml', 'tb-nightly', 'future', 'ffmpeg-python',
'joblib'
Expand Down