mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-31 13:48:02 -05:00
chore: rename model.size to model.file_size
to disambiguate from RAM size or pixel size
This commit is contained in:
committed by
psychedelicious
parent
e537020c11
commit
52a8ad1c18
@@ -767,6 +767,7 @@
|
||||
"deleteMsg2": "This WILL delete the model from disk if it is in the InvokeAI root folder. If you are using a custom location, then the model WILL NOT be deleted from disk.",
|
||||
"description": "Description",
|
||||
"edit": "Edit",
|
||||
"fileSize": "File Size",
|
||||
"fluxRedux": "FLUX Redux",
|
||||
"height": "Height",
|
||||
"huggingFace": "HuggingFace",
|
||||
@@ -841,7 +842,6 @@
|
||||
"selectModel": "Select Model",
|
||||
"settings": "Settings",
|
||||
"simpleModelPlaceholder": "URL or path to a local file or diffusers folder",
|
||||
"size": "Size",
|
||||
"source": "Source",
|
||||
"sigLip": "SigLIP",
|
||||
"spandrelImageToImage": "Image to Image (Spandrel)",
|
||||
|
||||
@@ -109,7 +109,7 @@ const ModelListItem = ({ model }: ModelListItemProps) => {
|
||||
<ModelFormatBadge format={model.format} />
|
||||
</Flex>
|
||||
<Text>
|
||||
{(model.size / 1024 ** 3).toLocaleString(undefined, {
|
||||
{(model.file_size / 1024 ** 3).toLocaleString(undefined, {
|
||||
maximumFractionDigits: 2,
|
||||
style: 'unit',
|
||||
unit: 'gigabyte',
|
||||
|
||||
@@ -51,8 +51,8 @@ export const ModelView = memo(({ modelConfig }: Props) => {
|
||||
<ModelAttrView label={t('common.format')} value={modelConfig.format} />
|
||||
<ModelAttrView label={t('modelManager.path')} value={modelConfig.path} />
|
||||
<ModelAttrView
|
||||
label={t('modelManager.size')}
|
||||
value={(modelConfig.size / 1024 ** 3).toLocaleString(undefined, {
|
||||
label={t('modelManager.fileSize')}
|
||||
value={(modelConfig.file_size / 1024 ** 3).toLocaleString(undefined, {
|
||||
maximumFractionDigits: 2,
|
||||
style: 'unit',
|
||||
unit: 'gigabyte',
|
||||
|
||||
@@ -627,7 +627,7 @@ describe('Graph', () => {
|
||||
key: 'b00ee8df-523d-40d2-9578-597283b07cb2',
|
||||
hash: 'random:9adf270422f525715297afa1649c4ff007a55f09937f57ca628278305624d194',
|
||||
path: 'sdxl/main/stable-diffusion-xl-1.0-inpainting-0.1',
|
||||
size: 6123456789,
|
||||
file_size: 6123456789,
|
||||
name: 'stable-diffusion-xl-1.0-inpainting-0.1',
|
||||
base: 'sdxl',
|
||||
description: 'sdxl main model stable-diffusion-xl-1.0-inpainting-0.1',
|
||||
|
||||
@@ -2914,10 +2914,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -2996,10 +2996,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -3154,10 +3154,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -4316,10 +4316,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -4409,10 +4409,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -4490,10 +4490,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -4577,10 +4577,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -7772,10 +7772,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -8552,10 +8552,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -8745,10 +8745,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -12817,10 +12817,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -12987,10 +12987,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -13153,10 +13153,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -13424,10 +13424,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -13527,10 +13527,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -13631,10 +13631,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -13719,10 +13719,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -15848,10 +15848,10 @@ export type components = {
|
||||
*/
|
||||
hash?: string | null;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description Size of model file
|
||||
*/
|
||||
size?: number | null;
|
||||
file_size?: number | null;
|
||||
/**
|
||||
* Format
|
||||
* @description format of model file
|
||||
@@ -18580,10 +18580,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -18724,10 +18724,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -19446,10 +19446,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -19669,10 +19669,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -19740,10 +19740,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -19848,10 +19848,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -19922,10 +19922,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -20446,10 +20446,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
@@ -20531,10 +20531,10 @@ export type components = {
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Size
|
||||
* File Size
|
||||
* @description The size of the model in bytes.
|
||||
*/
|
||||
size: number;
|
||||
file_size: number;
|
||||
/**
|
||||
* Name
|
||||
* @description Name of the model.
|
||||
|
||||
Reference in New Issue
Block a user