use original image for ml

This commit is contained in:
mertalev
2025-05-13 23:41:57 -04:00
parent c15507baad
commit 016a760dda
5 changed files with 10 additions and 77 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ export class SmartInfoService extends BaseService {
}
const asset = await this.assetJobRepository.getForClipEncoding(id);
if (!asset || asset.files.length !== 1) {
if (!asset) {
return JobStatus.FAILED;
}
@@ -110,7 +110,7 @@ export class SmartInfoService extends BaseService {
const embedding = await this.machineLearningRepository.encodeImage(
machineLearning.urls,
asset.files[0].path,
asset.originalPath,
machineLearning.clip,
);