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:
|
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.
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user