raphaelmemmesheimer / skeleton-dml

Skeleton-DML: Deep Metric Learning for Skeleton-Based One-Shot Action Recognition
23 stars 7 forks source link

NameError: name 'dfg' is not defined #5

Closed RCpengnan closed 2 years ago

RCpengnan commented 2 years ago

Hello,I have two questions. 1.I am also confused how the skeleton is related to the image representation. Could you please offer the related code?

  1. Could you tell me where the 'dfg' in train,py Thank you.
raphaelmemmesheimer commented 2 years ago

1.I am also confused how the skeleton is related to the image representation. Could you please offer the related code?

I added a representation generation example for a skeleton sequence under in the representation subfolder.

  1. Could you tell me where the 'dfg' in train,py

I think you want to refer to cfg. We use hydra. The cfg is defined here:

@hydra.main(config_path="config/config.yaml")
def train_app(cfg):
    print(cfg.pretty())

and relies on the files that can be found in the config subfolder.

RCpengnan commented 2 years ago

1.I am also confused how the skeleton is related to the image representation. Could you please offer the related code?

I added a representation generation example for a skeleton sequence under in the representation subfolder.

  1. Could you tell me where the 'dfg' in train,py

I think you want to refer to cfg. We use hydra. The cfg is defined here:

@hydra.main(config_path="config/config.yaml")
def train_app(cfg):
    print(cfg.pretty())

and relies on the files that can be found in the config subfolder. Thank you for your reply!