Add support for MiniMax H3 T2V and I2V training
This commit is contained in:
1 parent
73cab2acf5
commit
8502a845b1
28 files changed
+4095
-41
No files matched your search
@@ -5,6 +5,7 @@ export const TOOLKIT_ROOT = path.resolve('@', '..', '..');
|
||||
export const defaultTrainFolder = path.join(TOOLKIT_ROOT, 'output');
|
||||
export const defaultDatasetsFolder = path.join(TOOLKIT_ROOT, 'datasets');
|
||||
export const defaultDataRoot = path.join(TOOLKIT_ROOT, 'data');
|
||||
export const defaultModelsFolder = path.join(TOOLKIT_ROOT, 'models');
|
||||
|
||||
// Forked file-server workers set AI_TOOLKIT_QUIET_PATHS so this line prints
|
||||
// once per launched process group, not once per worker.
|
||||
@@ -39,3 +40,17 @@ export const getHFToken = async () => {
|
||||
}
|
||||
return token;
|
||||
};
|
||||
|
||||
export const getModelsPath = async () => {
|
||||
const key = 'MODELS_PATH';
|
||||
let row = await prisma.settings.findFirst({
|
||||
where: {
|
||||
key: key,
|
||||
},
|
||||
});
|
||||
let modelsPath = '';
|
||||
if (row?.value && row.value !== '' && row.value !== defaultModelsFolder) {
|
||||
modelsPath = row.value;
|
||||
}
|
||||
return modelsPath;
|
||||
};
|
||||
Reference in new issue
Block a user