original_docstring: Canonical path lookup for visual features
          
docstring: Canonical path lookup for visual features
docstring_tokens: Canonical path lookup for visual features
code: def visual_feat_paths(self, model_spec, tag=None):
          """Canonical path lookup for visual features
          """
          if model_spec not in self.ordered_experts:
              self.logger.info(f"Skipping load for {model_spec} (feature not requested)")
              return f"SKIPPED-{model_spec}"
  
          feat_type, model_name, _ = model_spec.split(".")
          aggs = self.feat_aggregation[model_spec]
          base = f"aggregated_{feat_type.replace('-', '_')}"
          required = ("fps", "pixel_dim", "stride")
          fps, pixel_dim, stride = [aggs.get(x, None) for x in required]
          if feat_type in {"facecrops", "faceboxes"}:
              base = f"{base}_{fps}fps_{pixel_dim}px_stride{stride}"
          elif feat_type not in {"ocr", "speech", "audio"}:
              base = f"{base}_{fps}fps_{pixel_dim}px_stride{stride}"
  
          for option in "offset", "inner_stride":
              if aggs.get(option, None) is not None:
                  base += f"_{option}{aggs[option]}"
  
          feat_paths = []
          for agg in aggs["temporal"].split("-"):
              fname = f"{model_name}-{agg}"
              if aggs["type"] == "logits":
                  fname = f"{fname}-logits"
              if tag is not None:
                  fname += f"-{tag}"
              feat_paths.append(Path(base) / f"{fname}.pickle")
          return feat_paths
code_tokens: def visual_feat_paths ( self , model_spec , tag = None ) : if model_spec not in self . ordered_experts : self . logger . info ( f"Skipping load for {model_spec} (feature not requested)" ) return f"SKIPPED-{model_spec}" feat_type , model_name , _ = model_spec . split ( "." ) aggs = self . feat_aggregation [ model_spec ] base = f"aggregated_{feat_type.replace('-', '_')}" required = ( "fps" , "pixel_dim" , "stride" ) fps , pixel_dim , stride = [ aggs . get ( x , None ) for x in required ] if feat_type in { "facecrops" , "faceboxes" } : base = f"{base}_{fps}fps_{pixel_dim}px_stride{stride}" elif feat_type not in { "ocr" , "speech" , "audio" } : base = f"{base}_{fps}fps_{pixel_dim}px_stride{stride}" for option in "offset" , "inner_stride" : if aggs . get ( option , None ) is not None : base += f"_{option}{aggs[option]}" feat_paths = [ ] for agg in aggs [ "temporal" ] . split ( "-" ) : fname = f"{model_name}-{agg}" if aggs [ "type" ] == "logits" : fname = f"{fname}-logits" if tag is not None : fname += f"-{tag}" feat_paths . append ( Path ( base ) / f"{fname}.pickle" ) return feat_paths
short_docstring: Canonical path lookup for visual features
short_docstring_tokens: Canonical path lookup for visual features
comment: """Canonical path lookup for visual features
          """