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