mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: model_name reference in Model Manager (#3756)
This commit is contained in:
commit
271f64068c
@ -46,7 +46,7 @@ export default function CheckpointModelEdit(props: CheckpointModelEditProps) {
|
||||
|
||||
const checkpointEditForm = useForm({
|
||||
initialValues: {
|
||||
name: retrievedModel.name,
|
||||
name: retrievedModel.model_name,
|
||||
base_model: retrievedModel.base_model,
|
||||
type: 'main',
|
||||
path: retrievedModel.path,
|
||||
@ -67,7 +67,7 @@ export default function CheckpointModelEdit(props: CheckpointModelEditProps) {
|
||||
<Flex justifyContent="space-between" alignItems="center">
|
||||
<Flex flexDirection="column">
|
||||
<Text fontSize="lg" fontWeight="bold">
|
||||
{retrievedModel.name}
|
||||
{retrievedModel.model_name}
|
||||
</Text>
|
||||
<Text fontSize="sm" color="base.400">
|
||||
{MODEL_TYPE_MAP[retrievedModel.base_model]} Model
|
||||
|
@ -44,7 +44,7 @@ export default function DiffusersModelEdit(props: DiffusersModelEditProps) {
|
||||
|
||||
const diffusersEditForm = useForm({
|
||||
initialValues: {
|
||||
name: retrievedModel.name,
|
||||
name: retrievedModel.model_name,
|
||||
base_model: retrievedModel.base_model,
|
||||
type: 'main',
|
||||
path: retrievedModel.path,
|
||||
@ -63,7 +63,7 @@ export default function DiffusersModelEdit(props: DiffusersModelEditProps) {
|
||||
<Flex flexDirection="column" rowGap={4} width="100%">
|
||||
<Flex flexDirection="column">
|
||||
<Text fontSize="lg" fontWeight="bold">
|
||||
{retrievedModel.name}
|
||||
{retrievedModel.model_name}
|
||||
</Text>
|
||||
<Text fontSize="sm" color="base.400">
|
||||
{MODEL_TYPE_MAP[retrievedModel.base_model]} Model
|
||||
|
@ -74,13 +74,15 @@ const ModelList = () => {
|
||||
|
||||
Object.keys(modelList).forEach((model, i) => {
|
||||
if (
|
||||
modelList[model].name.toLowerCase().includes(searchText.toLowerCase())
|
||||
modelList[model]?.model_name
|
||||
.toLowerCase()
|
||||
.includes(searchText.toLowerCase())
|
||||
) {
|
||||
filteredModelListItemsToRender.push(
|
||||
<ModelListItem
|
||||
key={i}
|
||||
modelKey={model}
|
||||
name={modelList[model].name}
|
||||
name={modelList[model]?.model_name}
|
||||
description={modelList[model].description}
|
||||
/>
|
||||
);
|
||||
@ -89,7 +91,7 @@ const ModelList = () => {
|
||||
<ModelListItem
|
||||
key={i}
|
||||
modelKey={model}
|
||||
name={modelList[model].name}
|
||||
name={modelList[model]?.model_name}
|
||||
description={modelList[model].description}
|
||||
/>
|
||||
);
|
||||
@ -100,7 +102,7 @@ const ModelList = () => {
|
||||
<ModelListItem
|
||||
key={i}
|
||||
modelKey={model}
|
||||
name={modelList[model].name}
|
||||
name={modelList[model]?.model_name}
|
||||
description={modelList[model].description}
|
||||
/>
|
||||
);
|
||||
@ -109,7 +111,7 @@ const ModelList = () => {
|
||||
<ModelListItem
|
||||
key={i}
|
||||
modelKey={model}
|
||||
name={modelList[model].name}
|
||||
name={modelList[model]?.model_name}
|
||||
description={modelList[model].description}
|
||||
/>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user