Merge branch 'sdxl-support' of github.com:invoke-ai/InvokeAI into sdxl-support

This commit is contained in:
Lincoln Stein 2023-07-17 22:21:20 -04:00
commit e7443867f6
2 changed files with 8 additions and 10 deletions

View File

@ -125,7 +125,7 @@ To make a workspace:
Should look something like this: Should look something like this:
```json ```jsonc
{ {
// I like to have all InvokeAI-related folders in my workspace // I like to have all InvokeAI-related folders in my workspace
"folders": [ "folders": [
@ -164,7 +164,7 @@ to set up your `launch.json` and try it out.
Now we can create the InvokeAI debugging configs: Now we can create the InvokeAI debugging configs:
```json ```jsonc
{ {
// Use IntelliSense to learn about possible attributes. // Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes. // Hover to view descriptions of existing attributes.

View File

@ -19,18 +19,16 @@ export default function ScanAdvancedAddModels() {
const [advancedAddMode, setAdvancedAddMode] = const [advancedAddMode, setAdvancedAddMode] =
useState<ManualAddMode>('diffusers'); useState<ManualAddMode>('diffusers');
const [isCheckpoint, setIsCheckpoint] = useState( const [isCheckpoint, setIsCheckpoint] = useState<boolean>(false);
advancedAddScanModel &&
['.ckpt', '.safetensors', '.pth', '.pt'].some((ext) =>
advancedAddScanModel.endsWith(ext)
)
);
useEffect(() => { useEffect(() => {
isCheckpoint advancedAddScanModel &&
['.ckpt', '.safetensors', '.pth', '.pt'].some((ext) =>
advancedAddScanModel.endsWith(ext)
)
? setAdvancedAddMode('checkpoint') ? setAdvancedAddMode('checkpoint')
: setAdvancedAddMode('diffusers'); : setAdvancedAddMode('diffusers');
}, [setAdvancedAddMode, isCheckpoint]); }, [advancedAddScanModel, setAdvancedAddMode]);
const dispatch = useAppDispatch(); const dispatch = useAppDispatch();