[DO NOT MERGE] Label Testing PR

This commit is contained in:
Brandon Rising 2024-01-22 15:04:09 -05:00
parent 6057229ceb
commit 2c6e89ece9
7 changed files with 8 additions and 3 deletions

View File

@ -24,6 +24,7 @@ download_queue_router = APIRouter(prefix="/v1/download_queue", tags=["download_q
) )
async def list_downloads() -> List[DownloadJob]: async def list_downloads() -> List[DownloadJob]:
"""Get a list of active and inactive jobs.""" """Get a list of active and inactive jobs."""
print("test")
queue = ApiDependencies.invoker.services.download_queue queue = ApiDependencies.invoker.services.download_queue
return queue.list_jobs() return queue.list_jobs()

View File

@ -75,6 +75,8 @@ from .model import ModelInfo, UNetField, VaeField
if choose_torch_device() == torch.device("mps"): if choose_torch_device() == torch.device("mps"):
from torch import mps from torch import mps
print("test")
DEFAULT_PRECISION = choose_precision(choose_torch_device()) DEFAULT_PRECISION = choose_precision(choose_torch_device())
SAMPLER_NAME_VALUES = Literal[tuple(SCHEDULER_MAP.keys())] SAMPLER_NAME_VALUES = Literal[tuple(SCHEDULER_MAP.keys())]

View File

@ -23,6 +23,7 @@ class DefaultInvocationProcessor(InvocationProcessorABC):
self.__threadLimit = BoundedSemaphore(1) self.__threadLimit = BoundedSemaphore(1)
self.__invoker = invoker self.__invoker = invoker
self.__stop_event = Event() self.__stop_event = Event()
print("test")
self.__invoker_thread = Thread( self.__invoker_thread = Thread(
name="invoker_processor", name="invoker_processor",
target=self.__process, target=self.__process,

View File

@ -113,7 +113,7 @@ class ModelPatcher:
for layer_key, layer in lora.layers.items(): for layer_key, layer in lora.layers.items():
if not layer_key.startswith(prefix): if not layer_key.startswith(prefix):
continue continue
print("test")
# TODO(ryand): A non-negligible amount of time is currently spent resolving LoRA keys. This # TODO(ryand): A non-negligible amount of time is currently spent resolving LoRA keys. This
# should be improved in the following ways: # should be improved in the following ways:
# 1. The key mapping could be more-efficiently pre-computed. This would save time every time a # 1. The key mapping could be more-efficiently pre-computed. This would save time every time a

View File

@ -20,6 +20,7 @@
], ],
"scripts": { "scripts": {
"dev": "concurrently \"vite dev\" \"pnpm run theme:watch\"", "dev": "concurrently \"vite dev\" \"pnpm run theme:watch\"",
"hi": "echo test",
"dev:host": "concurrently \"vite dev --host\" \"pnpm run theme:watch\"", "dev:host": "concurrently \"vite dev --host\" \"pnpm run theme:watch\"",
"build": "pnpm run lint && vite build", "build": "pnpm run lint && vite build",
"typegen": "node scripts/typegen.js", "typegen": "node scripts/typegen.js",

View File

@ -16,7 +16,7 @@ export const useAddControlAdapter = (type: ControlAdapterType) => {
const firstCompatibleModel = models.filter((m) => const firstCompatibleModel = models.filter((m) =>
baseModel ? m.base_model === baseModel : true baseModel ? m.base_model === baseModel : true
)[0]; )[0];
console.log("test")
if (firstCompatibleModel) { if (firstCompatibleModel) {
return firstCompatibleModel; return firstCompatibleModel;
} }

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "InvokeAI" name = "InvokeAI"
description = "An implementation of Stable Diffusion which provides various new features and options to aid the image generation process" description = "An test implementation of Stable Diffusion which provides various new features and options to aid the image generation process"
requires-python = ">=3.10, <3.12" requires-python = ">=3.10, <3.12"
readme = { content-type = "text/markdown", file = "README.md" } readme = { content-type = "text/markdown", file = "README.md" }
keywords = ["stable-diffusion", "AI"] keywords = ["stable-diffusion", "AI"]