mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-20 02:18:07 -05:00
Compare commits
7 Commits
ryan/seaml
...
v3.6.0rc4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee5ec023f4 | ||
|
|
d59661e0af | ||
|
|
f51e8eeae1 | ||
|
|
6e06935e75 | ||
|
|
f7f697849c | ||
|
|
8e17e29a5c | ||
|
|
12e9f17f7a |
@@ -13,6 +13,7 @@ from safetensors.torch import load_file
|
||||
from transformers import CLIPTextModel, CLIPTokenizer
|
||||
|
||||
from invokeai.app.shared.models import FreeUConfig
|
||||
from invokeai.backend.model_management.model_load_optimizations import skip_torch_weight_init
|
||||
|
||||
from .models.lora import LoRAModel
|
||||
|
||||
@@ -211,8 +212,12 @@ class ModelPatcher:
|
||||
for i in range(ti_embedding.shape[0]):
|
||||
new_tokens_added += ti_tokenizer.add_tokens(_get_trigger(ti_name, i))
|
||||
|
||||
# modify text_encoder
|
||||
text_encoder.resize_token_embeddings(init_tokens_count + new_tokens_added, pad_to_multiple_of)
|
||||
# Modify text_encoder.
|
||||
# resize_token_embeddings(...) constructs a new torch.nn.Embedding internally. Initializing the weights of
|
||||
# this embedding is slow and unnecessary, so we wrap this step in skip_torch_weight_init() to save some
|
||||
# time.
|
||||
with skip_torch_weight_init():
|
||||
text_encoder.resize_token_embeddings(init_tokens_count + new_tokens_added, pad_to_multiple_of)
|
||||
model_embeddings = text_encoder.get_input_embeddings()
|
||||
|
||||
for ti_name, ti in ti_list:
|
||||
|
||||
|
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 272 B |
3
invokeai/frontend/web/favicon-outline.svg
Normal file
3
invokeai/frontend/web/favicon-outline.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M29.1951 10.6667H42V2H2V10.6667H14.8049L29.1951 33.3333H42V42H2V33.3333H14.8049" stroke="#E6FD13" stroke-width="2.8"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 231 B |
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB |
@@ -8,8 +8,8 @@
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
<title>InvokeAI - A Stable Diffusion Toolkit</title>
|
||||
<link rel="mask-icon" href="/invoke-key-ylw-sm.svg" color="#E6FD13" sizes="any" />
|
||||
<link rel="icon" href="/invoke-key-char-on-ylw.svg" />
|
||||
<link rel="mask-icon" type="icon" href="favicon-outline.svg" color="#E6FD13" sizes="any" />
|
||||
<link rel="icon" type="icon" href="favicon-key.svg" />
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 336 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 43 KiB |
@@ -45,6 +45,7 @@ export const InvControl = memo(
|
||||
orientation={orientation}
|
||||
isDisabled={isDisabled}
|
||||
{...formControlProps}
|
||||
{...ctx.controlProps}
|
||||
>
|
||||
<Flex className="invcontrol-label-wrapper">
|
||||
{label && (
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import type { FormLabelProps } from '@chakra-ui/react';
|
||||
import type { FormControlProps, FormLabelProps } from '@chakra-ui/react';
|
||||
import type { PropsWithChildren } from 'react';
|
||||
import { createContext, memo } from 'react';
|
||||
|
||||
export type InvControlGroupProps = {
|
||||
labelProps?: FormLabelProps;
|
||||
controlProps?: FormControlProps;
|
||||
isDisabled?: boolean;
|
||||
orientation?: 'horizontal' | 'vertical';
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Box, Flex, Image } from '@chakra-ui/react';
|
||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||
import InvokeAILogoImage from 'assets/images/logo.png';
|
||||
import InvokeLogoSVG from 'assets/images/invoke-key-wht-lrg.svg';
|
||||
import IAIDroppable from 'common/components/IAIDroppable';
|
||||
import { InvText } from 'common/components/InvText/wrapper';
|
||||
import { InvTooltip } from 'common/components/InvTooltip/InvTooltip';
|
||||
@@ -101,10 +101,10 @@ const NoBoardBoard = memo(({ isSelected }: Props) => {
|
||||
alignItems="center"
|
||||
>
|
||||
<Image
|
||||
src={InvokeAILogoImage}
|
||||
src={InvokeLogoSVG}
|
||||
alt="invoke-ai-logo"
|
||||
opacity={0.4}
|
||||
filter="grayscale(1)"
|
||||
opacity={0.7}
|
||||
mixBlendMode="overlay"
|
||||
mt={-6}
|
||||
w={16}
|
||||
h={16}
|
||||
|
||||
@@ -4,10 +4,10 @@ import {
|
||||
InvCardBody,
|
||||
InvCardHeader,
|
||||
} from 'common/components/InvCard/wrapper';
|
||||
import { InvLabel } from 'common/components/InvControl/InvLabel';
|
||||
import { InvIconButton } from 'common/components/InvIconButton/InvIconButton';
|
||||
import { InvNumberInput } from 'common/components/InvNumberInput/InvNumberInput';
|
||||
import { InvSlider } from 'common/components/InvSlider/InvSlider';
|
||||
import { InvText } from 'common/components/InvText/wrapper';
|
||||
import type { LoRA } from 'features/lora/store/loraSlice';
|
||||
import { loraRemoved, loraWeightChanged } from 'features/lora/store/loraSlice';
|
||||
import { memo, useCallback } from 'react';
|
||||
@@ -35,9 +35,9 @@ export const LoRACard = memo((props: LoRACardProps) => {
|
||||
return (
|
||||
<InvCard variant="lora">
|
||||
<InvCardHeader>
|
||||
<InvText noOfLines={1} wordBreak="break-all">
|
||||
<InvLabel noOfLines={1} wordBreak="break-all">
|
||||
{lora.model_name}
|
||||
</InvText>
|
||||
</InvLabel>
|
||||
<InvIconButton
|
||||
aria-label="Remove LoRA"
|
||||
variant="ghost"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import type { ChakraProps } from '@chakra-ui/react';
|
||||
import { Flex } from '@chakra-ui/react';
|
||||
import { InvControlGroup } from 'common/components/InvControl/InvControlGroup';
|
||||
import { useHasImageOutput } from 'features/nodes/hooks/useHasImageOutput';
|
||||
import { DRAG_HANDLE_CLASSNAME } from 'features/nodes/types/constants';
|
||||
import { useFeatureStatus } from 'features/system/hooks/useFeatureStatus';
|
||||
@@ -11,6 +13,8 @@ type Props = {
|
||||
nodeId: string;
|
||||
};
|
||||
|
||||
const props: ChakraProps = { w: 'unset' };
|
||||
|
||||
const InvocationNodeFooter = ({ nodeId }: Props) => {
|
||||
const hasImageOutput = useHasImageOutput(nodeId);
|
||||
const isCacheEnabled = useFeatureStatus('invocationCache').isFeatureEnabled;
|
||||
@@ -20,13 +24,16 @@ const InvocationNodeFooter = ({ nodeId }: Props) => {
|
||||
layerStyle="nodeFooter"
|
||||
w="full"
|
||||
borderBottomRadius="base"
|
||||
gap={4}
|
||||
px={2}
|
||||
py={0}
|
||||
h={8}
|
||||
justifyContent="space-between"
|
||||
>
|
||||
{isCacheEnabled && <UseCacheCheckbox nodeId={nodeId} />}
|
||||
{hasImageOutput && <SaveToGalleryCheckbox nodeId={nodeId} />}
|
||||
<InvControlGroup controlProps={props} labelProps={props}>
|
||||
{isCacheEnabled && <UseCacheCheckbox nodeId={nodeId} />}
|
||||
{hasImageOutput && <SaveToGalleryCheckbox nodeId={nodeId} />}
|
||||
</InvControlGroup>
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -37,11 +37,10 @@ import { SettingsLanguageSelect } from './SettingsLanguageSelect';
|
||||
import { SettingsLogLevelSelect } from './SettingsLogLevelSelect';
|
||||
|
||||
type ConfigOptions = {
|
||||
shouldShowDeveloperSettings: boolean;
|
||||
shouldShowResetWebUiText: boolean;
|
||||
shouldShowAdvancedOptionsSettings: boolean;
|
||||
shouldShowClearIntermediates: boolean;
|
||||
shouldShowLocalizationToggle: boolean;
|
||||
shouldShowDeveloperSettings?: boolean;
|
||||
shouldShowResetWebUiText?: boolean;
|
||||
shouldShowClearIntermediates?: boolean;
|
||||
shouldShowLocalizationToggle?: boolean;
|
||||
};
|
||||
|
||||
type SettingsModalProps = {
|
||||
@@ -84,7 +83,7 @@ const SettingsModal = ({ children, config }: SettingsModalProps) => {
|
||||
hasPendingItems,
|
||||
intermediatesCount,
|
||||
isLoading: isLoadingClearIntermediates,
|
||||
} = useClearIntermediates();
|
||||
} = useClearIntermediates(shouldShowClearIntermediates);
|
||||
|
||||
const {
|
||||
isOpen: isSettingsModalOpen,
|
||||
|
||||
@@ -17,7 +17,9 @@ export type UseClearIntermediatesReturn = {
|
||||
hasPendingItems: boolean;
|
||||
};
|
||||
|
||||
export const useClearIntermediates = (): UseClearIntermediatesReturn => {
|
||||
export const useClearIntermediates = (
|
||||
shouldShowClearIntermediates: boolean
|
||||
): UseClearIntermediatesReturn => {
|
||||
const { t } = useTranslation();
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
@@ -25,6 +27,7 @@ export const useClearIntermediates = (): UseClearIntermediatesReturn => {
|
||||
undefined,
|
||||
{
|
||||
refetchOnMountOrArgChange: true,
|
||||
skip: !shouldShowClearIntermediates,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "3.6.0rc3"
|
||||
__version__ = "3.6.0rc4"
|
||||
|
||||
Reference in New Issue
Block a user