MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / getHuggingFaceImagesPath

Function getHuggingFaceImagesPath

src/hooks/urlLoaderPolicy.ts:378–389  ·  view source on GitHub ↗
(
  entries: readonly HuggingFaceDatasetTreeEntry[],
  treePath: string,
  modelDir?: string
)

Source from the content-addressed store, hash-verified

376 * folder. Returns null when no images are present.
377 */
378export function getHuggingFaceImagesPath(
379 entries: readonly HuggingFaceDatasetTreeEntry[],
380 treePath: string,
381 modelDir?: string
382): string | null {
383 const relativePaths = getRelativeHuggingFaceTreePaths(entries, treePath);
384 const dir = resolveImagesDir(relativePaths, { modelDir });
385 if (dir === null) {
386 return null;
387 }
388 return dir === '' ? '' : `${dir}/`;
389}
390
391export function getHuggingFaceSplatPaths(
392 entries: readonly HuggingFaceDatasetTreeEntry[],

Calls 2

resolveImagesDirFunction · 0.90

Tested by

no test coverage detected