mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'sdxl-support' of github.com:invoke-ai/InvokeAI into sdxl-support
This commit is contained in:
commit
73eeef34c4
@ -19,7 +19,7 @@ export default function ScanAdvancedAddModels() {
|
||||
const [advancedAddMode, setAdvancedAddMode] =
|
||||
useState<ManualAddMode>('diffusers');
|
||||
|
||||
const [isCheckpoint, setIsCheckpoint] = useState<boolean>(false);
|
||||
const [isCheckpoint, setIsCheckpoint] = useState<boolean>(true);
|
||||
|
||||
useEffect(() => {
|
||||
advancedAddScanModel &&
|
||||
@ -28,7 +28,7 @@ export default function ScanAdvancedAddModels() {
|
||||
)
|
||||
? setAdvancedAddMode('checkpoint')
|
||||
: setAdvancedAddMode('diffusers');
|
||||
}, [advancedAddScanModel, setAdvancedAddMode]);
|
||||
}, [advancedAddScanModel, setAdvancedAddMode, isCheckpoint]);
|
||||
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Divider, Flex, Text } from '@chakra-ui/react';
|
||||
import { Badge, Divider, Flex, Text } from '@chakra-ui/react';
|
||||
import { useForm } from '@mantine/form';
|
||||
import { makeToast } from 'app/components/Toaster';
|
||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||
@ -115,7 +115,20 @@ export default function CheckpointModelEdit(props: CheckpointModelEditProps) {
|
||||
{MODEL_TYPE_MAP[model.base_model]} Model
|
||||
</Text>
|
||||
</Flex>
|
||||
<ModelConvert model={model} />
|
||||
{!['sdxl', 'sdxl-refiner'].includes(model.base_model) ? (
|
||||
<ModelConvert model={model} />
|
||||
) : (
|
||||
<Badge
|
||||
sx={{
|
||||
p: 2,
|
||||
borderRadius: 4,
|
||||
bg: 'error.200',
|
||||
_dark: { bg: 'error.400' },
|
||||
}}
|
||||
>
|
||||
Conversion Not Supported
|
||||
</Badge>
|
||||
)}
|
||||
</Flex>
|
||||
<Divider />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user