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
e7443867f6
@ -125,7 +125,7 @@ To make a workspace:
|
||||
|
||||
Should look something like this:
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
// I like to have all InvokeAI-related folders in my workspace
|
||||
"folders": [
|
||||
@ -164,7 +164,7 @@ to set up your `launch.json` and try it out.
|
||||
|
||||
Now we can create the InvokeAI debugging configs:
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
|
@ -19,18 +19,16 @@ export default function ScanAdvancedAddModels() {
|
||||
const [advancedAddMode, setAdvancedAddMode] =
|
||||
useState<ManualAddMode>('diffusers');
|
||||
|
||||
const [isCheckpoint, setIsCheckpoint] = useState(
|
||||
advancedAddScanModel &&
|
||||
['.ckpt', '.safetensors', '.pth', '.pt'].some((ext) =>
|
||||
advancedAddScanModel.endsWith(ext)
|
||||
)
|
||||
);
|
||||
const [isCheckpoint, setIsCheckpoint] = useState<boolean>(false);
|
||||
|
||||
useEffect(() => {
|
||||
isCheckpoint
|
||||
advancedAddScanModel &&
|
||||
['.ckpt', '.safetensors', '.pth', '.pt'].some((ext) =>
|
||||
advancedAddScanModel.endsWith(ext)
|
||||
)
|
||||
? setAdvancedAddMode('checkpoint')
|
||||
: setAdvancedAddMode('diffusers');
|
||||
}, [setAdvancedAddMode, isCheckpoint]);
|
||||
}, [advancedAddScanModel, setAdvancedAddMode]);
|
||||
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user