mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 23:45:07 -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user