Repository Analysis

invoke-ai/InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.

7.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of invoke-ai/InvokeAI, a Python project with 28,032 GitHub stars. SynthScan v2.0 examined 1,071,603 lines of code across 3459 source files, recording 6427 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 7.6 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

7.6
Adjusted Score
7.6
Raw Score
100%
Time Factor
2026-08-27
Last Push
28.0K
Stars
Python
Language
1.1M
Lines of Code
3.5K
Files
6.4K
Pattern Hits
2026-08-29
Scan Date
0.05
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 61HIGH 96MEDIUM 349LOW 5921

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 6427 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers4294 hits · 4280 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/api_app.py313def _identify_video_upload_user(scope: Scope) -> tuple[bool, str | None]:CODE
LOWinvokeai/app/api_app.py338async def _identify_video_upload_user_async(scope: Scope) -> tuple[bool, str | None]:CODE
LOWinvokeai/app/util/misc.py16def get_datetime_from_iso_timestamp(iso_timestamp: str) -> datetime.datetime:CODE
LOWinvokeai/app/util/torch_cuda_allocator.py6def configure_torch_cuda_allocator(pytorch_cuda_alloc_conf: str, logger: logging.Logger):CODE
LOWinvokeai/app/util/video_thumbnails.py147def _start_worker_memory_monitor(CODE
LOWinvokeai/app/util/video_thumbnails.py223def _iter_video_frames_unbounded(CODE
LOWinvokeai/app/util/ti_utils.py11def extract_ti_triggers_from_prompt(prompt: str) -> List[str]:CODE
LOWinvokeai/app/util/step_callback.py261def sample_to_lowres_estimated_image(CODE
LOWinvokeai/app/util/ssrf.py284 def merge_environment_settings(CODE
LOWinvokeai/app/invocations/latent_noise.py11def validate_noise_dimensions(noise_type: LatentNoiseType, width: int, height: int) -> None:CODE
LOWinvokeai/app/invocations/latent_noise.py46def validate_noise_tensor_shape(noise: torch.Tensor, noise_type: LatentNoiseType, width: int, height: int) -> None:CODE
LOWinvokeai/app/invocations/video_frame_extract_range.py43def _validate_even_dimensions(width: int, height: int, video_name: str) -> None:CODE
LOWinvokeai/app/invocations/t2i_adapter.py33 def validate_ip_adapter_weight(cls, v):CODE
LOWinvokeai/app/invocations/t2i_adapter.py38 def validate_begin_end_step_percent(self):CODE
LOWinvokeai/app/invocations/t2i_adapter.py83 def validate_ip_adapter_weight(cls, v):CODE
LOWinvokeai/app/invocations/t2i_adapter.py88 def validate_begin_end_step_percent(self):CODE
LOWinvokeai/app/invocations/compel.py425def get_tokens_for_prompt_object(CODE
LOWinvokeai/app/invocations/compel.py447def log_tokenization_for_conjunction(CODE
LOWinvokeai/app/invocations/compel.py460def log_tokenization_for_prompt_object(CODE
LOWinvokeai/app/invocations/compel.py502def log_tokenization_for_text(CODE
LOWinvokeai/app/invocations/blend_latents.py85 def replace_tensor_from_masked_tensor(CODE
LOWinvokeai/app/invocations/ideogram4_denoise.py33def _effective_guidance_schedule(CODE
LOWinvokeai/app/invocations/controlnet.py53 def validate_begin_end_step_percent(self):CODE
LOWinvokeai/app/invocations/controlnet.py97 def validate_begin_end_step_percent(self) -> "ControlNetInvocation":CODE
LOWinvokeai/app/invocations/cogview4_denoise.py175 def _convert_timesteps_to_sigmas(self, image_seq_len: int, timesteps: torch.Tensor) -> list[float]:CODE
LOWinvokeai/app/invocations/flux_ip_adapter.py56 def validate_ip_adapter_weight(cls, v: float) -> float:CODE
LOWinvokeai/app/invocations/flux_ip_adapter.py61 def validate_begin_end_step_percent(self) -> Self:CODE
LOWinvokeai/app/invocations/denoise_latents.py252 def _get_text_embeddings_and_masks(CODE
LOWinvokeai/app/invocations/denoise_latents.py273 def _preprocess_regional_prompt_mask(CODE
LOWinvokeai/app/invocations/denoise_latents.py299 def _concat_regional_text_embeddings(CODE
LOWinvokeai/app/invocations/denoise_latents.py522 def _get_hidiffusion_name_or_path(unet_config: AnyModelConfig) -> Optional[str]:CODE
LOWinvokeai/app/invocations/denoise_latents.py593 def prep_ip_adapter_image_prompts(CODE
LOWinvokeai/app/invocations/denoise_latents.py821 def prepare_noise_and_latents(CODE
LOWinvokeai/app/invocations/anima_denoise.py101def inverse_loglinear_timestep_shift(alpha: float, sigma: float) -> float:CODE
LOWinvokeai/app/invocations/anima_denoise.py153 def merge_intermediate_latents_with_init_latents(CODE
LOWinvokeai/app/invocations/anima_denoise.py270 def _normalize_control_lllite(CODE
LOWinvokeai/app/invocations/anima_denoise.py489 def _run_llm_adapter_for_regions(CODE
LOWinvokeai/app/invocations/anima_denoise.py923 def _estimate_preview_latents(self, latents: torch.Tensor, sigma: float, noise_pred: torch.Tensor) -> torch.Tensor:CODE
LOWinvokeai/app/invocations/flux2_klein_model_loader.py195 def _validate_diffusers_format(CODE
LOWinvokeai/app/invocations/z_image_model_loader.py147 def _get_self_contained_source(self, context: InvocationContext) -> Optional[ModelIdentifierField]:CODE
LOWinvokeai/app/invocations/z_image_model_loader.py162 def _validate_diffusers_format(CODE
LOWinvokeai/app/invocations/call_saved_workflow.py12def is_call_saved_workflow_dynamic_input(field_name: str) -> bool:CODE
LOWinvokeai/app/invocations/call_saved_workflow.py16def parse_call_saved_workflow_dynamic_input(field_name: str) -> tuple[str, str]:CODE
LOWinvokeai/app/invocations/call_saved_workflow.py51 def validate_selected_workflow(self, context: InvocationContext):CODE
LOWinvokeai/app/invocations/ernie_image_model_loader.py85 def _pipeline_has_prompt_enhancer(self, context: InvocationContext) -> bool:CODE
LOWinvokeai/app/invocations/krea2_model_loader.py118 def _validate_diffusers_format(CODE
LOWinvokeai/app/invocations/krea2_denoise.py103 def validate_cfg_scale_is_finite(cls, value: float | list[float]) -> float | list[float]:CODE
LOWinvokeai/app/invocations/krea2_denoise.py218 def _should_apply_cfg_for_step(cfg_scale: float, *, has_negative_conditioning: bool) -> bool:CODE
LOWinvokeai/app/invocations/krea2_denoise.py222 def _validate_effective_schedule(*, start_idx: int, end_idx: int) -> None:CODE
LOWinvokeai/app/invocations/krea2_denoise.py523 def _regional_attention_mask_bytes(CODE
LOWinvokeai/app/invocations/external_image_generation.py179 def _build_output_provider_metadata(self) -> dict[str, Any]:CODE
LOWinvokeai/app/invocations/external_image_generation.py231 def _build_output_provider_metadata(self) -> dict[str, Any]:CODE
LOWinvokeai/app/invocations/external_image_generation.py282 def _build_output_provider_metadata(self) -> dict[str, Any]:CODE
LOWinvokeai/app/invocations/external_image_generation.py326 def _build_output_provider_metadata(self) -> dict[str, Any]:CODE
LOWinvokeai/app/invocations/composition-nodes.py430 def scale_and_pad_or_crop_to_base(self, image_upper: Image.Image, image_base: Image.Image):CODE
LOWinvokeai/app/invocations/composition-nodes.py515 def prepare_tensors_from_images(CODE
LOWinvokeai/app/invocations/baseinvocation.py337 def get_invocation_typeadapter(cls) -> TypeAdapter[Any]:CODE
LOWinvokeai/app/invocations/baseinvocation.py351 def invalidate_invocation_typeadapter(cls) -> None:CODE
LOWinvokeai/app/invocations/baseinvocation.py454 def invalidate_output_typeadapter(cls) -> None:CODE
LOWinvokeai/app/invocations/model.py30def is_self_contained_sdnq_pipeline(config: AnyModelConfig) -> bool:CODE
4234 more matches not shown…
Decorative Section Separators234 hits · 848 pts
SeverityFileLineSnippetContext
MEDIUMinvokeai/app/util/user_management.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/util/user_management.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/util/user_management.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/util/user_management.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/util/user_management.py300# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/util/user_management.py302# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/util/user_management.py406# ---------------------------------------------------------------------------STRING
MEDIUMinvokeai/app/util/user_management.py408# ---------------------------------------------------------------------------STRING
MEDIUMinvokeai/app/api/routers/auth.py404# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/api/routers/auth.py406# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/api/routers/auth.py449# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/app/api/routers/auth.py451# ---------------------------------------------------------------------------COMMENT
MEDIUM…ai/app/services/model_install/model_install_default.py1079 # --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ai/app/services/model_install/model_install_default.py1081 # --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ai/app/services/model_install/model_install_default.py1466 # ------------------------------------------------------------------COMMENT
MEDIUM…ai/app/services/model_install/model_install_default.py1468 # ------------------------------------------------------------------COMMENT
MEDIUM…ai/app/services/model_install/model_install_default.py1539 # ------------------------------------------------------------------------------------------------COMMENT
MEDIUM…ai/app/services/model_install/model_install_default.py1541 # ------------------------------------------------------------------------------------------------COMMENT
MEDIUM…ai/app/services/model_install/model_install_default.py901 # --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ai/app/services/model_install/model_install_default.py903 # --------------------------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/ideogram4/quantized_loading.py136# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/ideogram4/quantized_loading.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/flux/controlnet/state_dict_utils.py188 # ----------------COMMENT
MEDIUM…ai/backend/flux/controlnet/instantx_controlnet_flux.py51 # -------------------------------------------------------------COMMENT
MEDIUM…ai/backend/flux/controlnet/instantx_controlnet_flux.py91 # -----------------------------------------------------------COMMENT
MEDIUM…ckend/patches/lora_conversions/anima_lora_constants.py12# ---------------------------------------------------------------------------COMMENT
MEDIUM…ckend/patches/lora_conversions/anima_lora_constants.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/anima/anima_transformer.py30# ============================================================================COMMENT
MEDIUMinvokeai/backend/anima/anima_transformer.py34# ============================================================================COMMENT
MEDIUMinvokeai/backend/anima/anima_transformer.py197# ============================================================================COMMENT
MEDIUMinvokeai/backend/anima/anima_transformer.py201# ============================================================================COMMENT
MEDIUMinvokeai/backend/anima/anima_transformer.py769# ============================================================================COMMENT
MEDIUMinvokeai/backend/anima/anima_transformer.py773# ============================================================================COMMENT
MEDIUMinvokeai/backend/anima/anima_transformer.py974# ============================================================================COMMENT
MEDIUMinvokeai/backend/anima/anima_transformer.py978# ============================================================================COMMENT
MEDIUMinvokeai/backend/anima/control_net_lllite.py57# ----------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/anima/control_net_lllite.py59# ----------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/anima/control_net_lllite.py121# ----------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/anima/control_net_lllite.py123# ----------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/anima/control_net_lllite.py219# ----------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/anima/control_net_lllite.py221# ----------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/anima/control_net_lllite.py347# ----------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/anima/control_net_lllite.py349# ----------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/decode.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/decode.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/decode.py296# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/decode.py298# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/decode.py428# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/decode.py430# ---------------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pixeldit_model.py169 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pixeldit_model.py171 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pixeldit_model.py207 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pixeldit_model.py209 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pixeldit_model.py241 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pixeldit_model.py244 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pid_distill_model.py46 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pid_distill_model.py48 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pid_distill_model.py85 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pid_distill_model.py87 # ---------------------------------------------------------------------COMMENT
MEDIUMinvokeai/backend/pid/_src/models/pid_distill_model.py163 # ---------------------------------------------------------------------COMMENT
174 more matches not shown…
Hallucination Indicators61 hits · 680 pts
SeverityFileLineSnippetContext
CRITICALinvokeai/app/api/routers/model_manager.py462 installed_models = ApiDependencies.invoker.services.model_manager.store.search_by_attr()CODE
CRITICALinvokeai/app/api/routers/model_manager.py312 configs = ApiDependencies.invoker.services.model_manager.store.search_by_attr(CODE
CRITICALinvokeai/app/api/routers/model_manager.py332 configs = ApiDependencies.invoker.services.model_manager.store.search_by_hash(hash)CODE
CRITICALinvokeai/app/api/routers/model_manager.py357 config = ApiDependencies.invoker.services.model_manager.store.get_model(key)CODE
CRITICALinvokeai/app/api/routers/model_manager.py392 config = ApiDependencies.invoker.services.model_manager.store.get_model(key)CODE
CRITICALinvokeai/app/api/routers/model_manager.py414 return ApiDependencies.invoker.services.model_manager.store.replace_model(config.key, result.config)CODE
CRITICALinvokeai/app/api/routers/model_manager.py547 for cache in ApiDependencies.invoker.services.model_manager.load.ram_caches.values()CODE
CRITICALinvokeai/app/api/routers/model_manager.py1230 ApiDependencies.invoker.services.model_manager.install.prune_jobs()CODE
CRITICALinvokeai/app/api/routers/model_manager.py1412 installed_models = ApiDependencies.invoker.services.model_manager.store.search_by_attr()CODE
CRITICALinvokeai/app/api/routers/model_manager.py1451 for cache in ApiDependencies.invoker.services.model_manager.load.ram_caches.values():CODE
CRITICALinvokeai/app/api/routers/model_manager.py1488 for cache in ApiDependencies.invoker.services.model_manager.load.ram_caches.values():CODE
CRITICALinvokeai/app/api/routers/model_manager.py1082 jobs: List[ModelInstallJob] = ApiDependencies.invoker.services.model_manager.install.list_jobs()STRING
CRITICALinvokeai/app/api/routers/model_manager.py1102 result: ModelInstallJob = ApiDependencies.invoker.services.model_manager.install.get_job_by_id(id)STRING
CRITICALinvokeai/app/api/routers/recall_parameters.py146 models = ApiDependencies.invoker.services.model_manager.store.search_by_attr(CODE
CRITICALinvokeai/app/services/shared/invocation_context.py255 graph_ = self._data.queue_item.session.graph.model_dump_json()CODE
CRITICALinvokeai/app/services/shared/invocation_context.py420 graph_ = self._data.queue_item.session.graph.model_dump_json()CODE
CRITICALinvokeai/app/services/shared/invocation_context.py601 return self._services.model_manager.load.ram_cache.offload_model_from_vram(key)CODE
CRITICAL…eai/app/services/session_queue/session_queue_sqlite.py418 cache = self.__invoker.services.model_manager.load.ram_caches.get(device)CODE
CRITICAL…onents/RasterLayer/RasterLayerMenuItemsAdjustments.tsx16 s.canvas.present.rasterLayers.entities.find((e: CanvasRasterLayerState) => e.id === entityIdentifier.id)CODE
CRITICAL…ures/controlLayers/konva/CanvasEntityRendererModule.ts126 this.manager.background.konva.layer.zIndex(zIndex++);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts976 this.manager.stage.konva.stage.on('pointerdown', this.onStagePointerDown);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts977 this.manager.stage.konva.stage.on('pointermove', this.onStagePointerMove);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts978 this.manager.stage.konva.stage.on('pointerup', this.onStagePointerUp);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts981 this.manager.stage.konva.stage.on('pointermove', this.onBboxDragMove);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts982 this.manager.stage.konva.stage.on('pointerup', this.onBboxDragEnd);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts985 this.manager.stage.konva.stage.off('pointerdown', this.onStagePointerDown);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts986 this.manager.stage.konva.stage.off('pointermove', this.onStagePointerMove);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts987 this.manager.stage.konva.stage.off('pointerup', this.onStagePointerUp);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts988 this.manager.stage.konva.stage.off('pointermove', this.onBboxDragMove);CODE
CRITICAL…res/controlLayers/konva/CanvasSegmentAnythingModule.ts989 this.manager.stage.konva.stage.off('pointerup', this.onBboxDragEnd);CODE
CRITICAL…Layers/konva/CanvasTool/CanvasColorPickerToolModule.ts448 this.manager.background.konva.layer.visible(false);CODE
CRITICAL…Layers/konva/CanvasTool/CanvasColorPickerToolModule.ts450 this.manager.background.konva.layer.visible(true);CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityAdapterBase.ts404 this.renderer.konva.compositing.group.zIndex(zIndex++);CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts583 this.parent.renderer.konva.objectGroup.setAttrs({CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts627 this.parent.renderer.konva.objectGroup.setAttrs({CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts951 this.parent.renderer.konva.objectGroup.setAttrs(attrs);CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts952 this.parent.bufferRenderer.konva.group.setAttrs(attrs);CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts972 this.parent.renderer.konva.objectGroup.setAttrs(groupAttrs);CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts973 this.parent.bufferRenderer.konva.group.setAttrs(groupAttrs);CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts1033 this.parent.renderer.konva.objectGroup.setAttrs(groupAttrs);CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts1034 this.parent.bufferRenderer.konva.group.setAttrs(groupAttrs);CODE
CRITICAL…olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts1066 const rect = this.parent.renderer.konva.objectGroup.getClientRect({ skipTransform: true });CODE
CRITICAL…konva/CanvasEntity/CanvasEntityBufferObjectRenderer.ts92 this.manager.tool.tools.rect.hasSuspendableSession()CODE
CRITICAL…ayers/konva/CanvasEntity/CanvasEntityObjectRenderer.ts336 this.parent.bufferRenderer.konva.group.opacity(opacity);CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts504 this.konva.crop.interaction.rect.setAttrs({ ...this.cropBox });CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts518 this.konva.crop.interaction.guides.left.points([x + verticalThird, y, x + verticalThird, y + height]);CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts519 this.konva.crop.interaction.guides.right.points([x + verticalThird * 2, y, x + verticalThird * 2, y + height]);CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts522 this.konva.crop.interaction.guides.top.points([x, y + horizontalThird, x + width, y + horizontalThird]);CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts523 this.konva.crop.interaction.guides.bottom.points([x, y + horizontalThird * 2, x + width, y + horizontalThird * 2]);CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts638 this.konva.crop.overlay.full.setAttrs({CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts644 this.konva.crop.overlay.clear.setAttrs({ ...this.cropBox });CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts1029 if (this.konva.crop.interaction.rect.isDragging()) {CODE
CRITICAL…vokeai/frontend/web/src/features/cropper/lib/editor.ts1030 this.konva.crop.interaction.rect.stopDrag();CODE
CRITICALinvokeai/backend/onnx/onnx_runtime.py38 self.model.proto.graph.initializer.insert(self.indexes[key], new_node)CODE
CRITICALtests/app/routers/test_model_manager.py523 deps.invoker.services.model_manager.store.replace_model.assert_not_called()CODE
CRITICALtests/app/routers/test_model_manager.py549 deps.invoker.services.model_manager.store.update_model.assert_not_called()CODE
CRITICALtests/app/routers/test_model_manager.py565 deps.invoker.services.model_images.delete.assert_not_called()CODE
CRITICALtests/app/routers/test_utilities.py56 mock_invoker.services.model_manager.store.get_model.assert_not_called()CODE
CRITICALtests/app/routers/test_utilities.py133 mock_invoker.services.model_manager.store.get_model.assert_not_called()CODE
CRITICALtests/app/routers/test_utilities.py153 mock_invoker.services.model_manager.store.get_model.assert_called_once()CODE
1 more matches not shown…
Excessive Try-Catch Wrapping429 hits · 450 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/api_app.py186 except Exception:CODE
LOWinvokeai/app/util/video_thumbnails.py180 except Exception:CODE
LOWinvokeai/app/util/video_thumbnails.py191 except Exception:CODE
LOWinvokeai/app/util/video_thumbnails.py398 except Exception:CODE
LOWinvokeai/app/util/ti_utils.py45 except Exception:CODE
LOWinvokeai/app/util/video_decode_worker.py85 except Exception as error:CODE
LOWinvokeai/app/util/video_decode_worker.py104 except Exception:CODE
LOWinvokeai/app/util/video_decode_worker.py125 except Exception:CODE
LOWinvokeai/app/util/video_decode_worker.py148 except Exception:CODE
LOWinvokeai/app/util/video_decode_worker.py182 except Exception:CODE
LOWinvokeai/app/util/video_decode_worker.py205 except Exception:CODE
LOWinvokeai/app/util/video_decode_worker.py233 except Exception:CODE
LOWinvokeai/app/util/video_decode_worker.py281 except Exception as e:CODE
MEDIUMinvokeai/app/util/user_management.py54 print("Error: Email is required")CODE
MEDIUMinvokeai/app/util/user_management.py64 print("Error: Passwords do not match. Please try again.\n")CODE
MEDIUMinvokeai/app/util/user_management.py69 print(f"Error: {error_msg}\n")CODE
MEDIUMinvokeai/app/util/user_management.py190 print("Error: Email is required")CODE
MEDIUMinvokeai/app/util/user_management.py341 print(f"Error listing users: {e}")CODE
MEDIUMinvokeai/app/util/user_management.py424 print("Error: Email is required")CODE
MEDIUMinvokeai/app/util/user_management.py462 print("Error: Passwords do not match. Please try again.\n")CODE
MEDIUMinvokeai/app/util/user_management.py467 print(f"Error: {error_msg}\n")CODE
LOWinvokeai/app/util/user_management.py96 except Exception as e:CODE
LOWinvokeai/app/util/user_management.py137 except Exception as e:CODE
LOWinvokeai/app/util/user_management.py223 except Exception as e:CODE
LOWinvokeai/app/util/user_management.py269 except Exception as e:CODE
LOWinvokeai/app/util/user_management.py340 except Exception as e:CODE
LOWinvokeai/app/util/user_management.py374 except Exception as e:CODE
LOWinvokeai/app/util/user_management.py500 except Exception as e:CODE
LOWinvokeai/app/util/user_management.py558 except Exception as e:CODE
LOWinvokeai/app/invocations/video_frame_extract_range.py236 except Exception:CODE
LOWinvokeai/app/invocations/ideogram4_denoise.py146 except Exception:CODE
LOWinvokeai/app/invocations/ernie_image_denoise.py233 except Exception as e:CODE
LOWinvokeai/app/invocations/anima_denoise.py904 except Exception as e:CODE
LOWinvokeai/app/invocations/baseinvocation.py634 except Exception as e:CODE
LOWinvokeai/app/invocations/baseinvocation.py781 except Exception:CODE
LOWinvokeai/app/invocations/video_concat.py179 except Exception:CODE
LOWinvokeai/app/invocations/wan_latents_to_video.py258 except Exception:CODE
LOWinvokeai/app/invocations/load_custom_nodes.py72 except Exception:CODE
LOWinvokeai/app/invocations/wan_denoise.py258 except Exception:CODE
LOWinvokeai/app/invocations/qwen_image_text_encoder.py181 except Exception:CODE
LOWinvokeai/app/api/sockets.py275 except Exception:CODE
LOWinvokeai/app/api/sockets.py326 except Exception:CODE
LOWinvokeai/app/api/sockets.py404 except Exception:CODE
LOWinvokeai/app/api/sockets.py421 except Exception:CODE
LOWinvokeai/app/api/sockets.py514 except Exception:CODE
LOWinvokeai/app/api/sockets.py636 except Exception:CODE
LOWinvokeai/app/api/sockets.py669 except Exception:CODE
LOWinvokeai/app/api/sockets.py729 except Exception:CODE
LOWinvokeai/app/api/sockets.py1126 except Exception as e:CODE
LOWinvokeai/app/api/extract_metadata_from_image.py67 except Exception as e:CODE
LOWinvokeai/app/api/extract_metadata_from_image.py90 except Exception:CODE
LOWinvokeai/app/api/extract_metadata_from_image.py128 except Exception as e:CODE
LOWinvokeai/app/api/dependencies.py94 except Exception:CODE
LOWinvokeai/app/api/routers/custom_nodes.py294 except Exception:CODE
LOWinvokeai/app/api/routers/custom_nodes.py375 except Exception:CODE
LOWinvokeai/app/api/routers/custom_nodes.py509 except Exception:CODE
LOWinvokeai/app/api/routers/custom_nodes.py525 except Exception:CODE
LOWinvokeai/app/api/routers/custom_nodes.py546 except Exception:CODE
LOWinvokeai/app/api/routers/custom_nodes.py563 except Exception:CODE
LOWinvokeai/app/api/routers/style_presets.py133 except Exception:CODE
369 more matches not shown…
Unused Imports496 hits · 400 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/util/dynamicprompts.py1CODE
LOWinvokeai/app/util/ssrf.py31CODE
LOWinvokeai/app/util/startup_utils.py66CODE
LOWinvokeai/app/invocations/external_image_generation.py24CODE
LOWinvokeai/app/invocations/baseinvocation.py3CODE
LOWinvokeai/app/invocations/baseinvocation.py50CODE
LOWinvokeai/app/api/auth_dependencies.py14CODE
LOWinvokeai/app/services/invocation_services.py2CODE
LOWinvokeai/app/services/invocation_services.py6CODE
LOWinvokeai/app/services/invocation_services.py7CODE
LOWinvokeai/app/services/invocation_services.py8CODE
LOWinvokeai/app/services/invocation_services.py9CODE
LOWinvokeai/app/services/invocation_services.py12CODE
LOWinvokeai/app/services/invocation_services.py14CODE
LOWinvokeai/app/services/invocation_services.py16CODE
LOWinvokeai/app/services/invocation_services.py17CODE
LOWinvokeai/app/services/invocation_services.py18CODE
LOWinvokeai/app/services/invocation_services.py19CODE
LOWinvokeai/app/services/invocation_services.py20CODE
LOWinvokeai/app/services/invocation_services.py21CODE
LOWinvokeai/app/services/invocation_services.py22CODE
LOWinvokeai/app/services/invocation_services.py23CODE
LOWinvokeai/app/services/invocation_services.py24CODE
LOWinvokeai/app/services/invocation_services.py25CODE
LOWinvokeai/app/services/invocation_services.py26CODE
LOWinvokeai/app/services/invocation_services.py27CODE
LOWinvokeai/app/services/invocation_services.py28CODE
LOWinvokeai/app/services/invocation_services.py29CODE
LOWinvokeai/app/services/invocation_services.py30CODE
LOWinvokeai/app/services/invocation_services.py31CODE
LOWinvokeai/app/services/invocation_services.py32CODE
LOWinvokeai/app/services/invocation_services.py33CODE
LOWinvokeai/app/services/invocation_services.py34CODE
LOWinvokeai/app/services/invocation_services.py35CODE
LOWinvokeai/app/services/invocation_services.py36CODE
LOWinvokeai/app/services/invocation_services.py39CODE
LOWinvokeai/app/services/invocation_services.py40CODE
LOWinvokeai/app/services/invocation_services.py41CODE
LOWinvokeai/app/services/invocation_services.py42CODE
LOWinvokeai/app/services/invocation_services.py43CODE
LOWinvokeai/app/services/invocation_services.py44CODE
LOWinvokeai/app/services/invocation_services.py45CODE
LOWinvokeai/app/services/invocation_services.py46CODE
LOWinvokeai/app/services/invocation_services.py47CODE
LOWinvokeai/app/services/invocation_services.py48CODE
LOWinvokeai/app/services/invocation_services.py49CODE
LOWinvokeai/app/services/invocation_services.py50CODE
LOWinvokeai/app/services/app_settings/__init__.py3CODE
LOWinvokeai/app/services/config/config_common.py11CODE
LOWinvokeai/app/services/config/config_default.py4CODE
LOWinvokeai/app/services/config/__init__.py3CODE
LOWinvokeai/app/services/config/__init__.py4CODE
LOWinvokeai/app/services/config/__init__.py4CODE
LOW…okeai/app/services/model_install/model_install_base.py17CODE
LOWinvokeai/app/services/model_install/__init__.py3CODE
LOWinvokeai/app/services/model_install/__init__.py4CODE
LOWinvokeai/app/services/model_install/__init__.py4CODE
LOWinvokeai/app/services/model_install/__init__.py4CODE
LOWinvokeai/app/services/model_install/__init__.py4CODE
LOWinvokeai/app/services/model_install/__init__.py4CODE
436 more matches not shown…
Cross-File Repetition59 hits · 295 pts
SeverityFileLineSnippetContext
HIGHinvokeai/app/invocations/anima_text_encoder.py0iterate over lora models to apply to the qwen3 text encoder.STRING
HIGHinvokeai/app/invocations/z_image_text_encoder.py0iterate over lora models to apply to the qwen3 text encoder.STRING
HIGHinvokeai/app/invocations/flux2_klein_text_encoder.py0iterate over lora models to apply to the qwen3 text encoder.STRING
HIGHinvokeai/app/invocations/z_image_denoise.py0iterate over lora models to apply to the transformer.STRING
HIGHinvokeai/app/invocations/anima_denoise.py0iterate over lora models to apply to the transformer.STRING
HIGHinvokeai/app/invocations/qwen_image_denoise.py0iterate over lora models to apply to the transformer.STRING
HIGH…okeai/app/services/model_install/model_install_base.py0pause the indicated job, preserving partial downloads.STRING
HIGH…ai/app/services/model_install/model_install_default.py0pause the indicated job, preserving partial downloads.STRING
HIGHinvokeai/app/services/download/download_default.py0pause the indicated job, preserving partial downloads.STRING
HIGH…rvices/board_video_records/board_video_records_base.py0gets all board images for a board, as a list of the image names. when ``user_id`` is provided, results are restricted toSTRING
HIGHinvokeai/app/services/board_images/board_images_base.py0gets all board images for a board, as a list of the image names. when ``user_id`` is provided, results are restricted toSTRING
HIGH…rvices/board_image_records/board_image_records_base.py0gets all board images for a board, as a list of the image names. when ``user_id`` is provided, results are restricted toSTRING
HIGHinvokeai/app/services/model_images/model_images_base.py0low-level service responsible for storing and retrieving image files.STRING
HIGH…rvices/style_preset_images/style_preset_images_base.py0low-level service responsible for storing and retrieving image files.STRING
HIGHinvokeai/app/services/image_files/image_files_base.py0low-level service responsible for storing and retrieving image files.STRING
HIGH…keai/app/services/model_images/model_images_default.py0checks if the required output folders exist and create them if they don'tSTRING
HIGH…rvices/workflow_thumbnails/workflow_thumbnails_disk.py0checks if the required output folders exist and create them if they don'tSTRING
HIGH…rvices/style_preset_images/style_preset_images_disk.py0checks if the required output folders exist and create them if they don'tSTRING
HIGHinvokeai/app/services/image_files/image_files_disk.py0checks if the required output folders exist and create them if they don'tSTRING
HIGH…eai/app/services/session_queue/session_queue_sqlite.py0--sql insert into session_queue (queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, destSTRING
HIGH…session_queue/test_session_queue_bulk_cancel_events.py0--sql insert into session_queue (queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, destSTRING
HIGH…p/services/session_queue/test_session_queue_dequeue.py0--sql insert into session_queue (queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, destSTRING
HIGH…app/services/session_queue/test_session_queue_clear.py0--sql insert into session_queue (queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, destSTRING
HIGH…eai/app/services/session_queue/session_queue_sqlite.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGHtests/app/routers/test_session_queue_workflow_call.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGHtests/app/routers/test_multiuser_authorization.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGH…es/session_queue/test_session_queue_status_sequence.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGH…ion_queue/test_session_queue_status_event_isolation.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGH…ession_queue/test_session_queue_status_user_scoping.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGH…ession_queue/test_session_queue_dequeue_concurrency.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGH…es/session_queue/test_session_queue_multigpu_cancel.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGH…ion_queue/test_session_queue_workflow_call_metadata.py0--sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, desSTRING
HIGHinvokeai/backend/image_util/lineart.py0get the url to download the model from the hugging face hub.STRING
HIGHinvokeai/backend/image_util/lineart_anime.py0get the url to download the model from the hugging face hub.STRING
HIGHinvokeai/backend/image_util/hed.py0get the url to download the model from the hugging face hub.STRING
HIGHinvokeai/backend/image_util/pidi/__init__.py0get the url to download the model from the hugging face hub.STRING
HIGHinvokeai/backend/image_util/normal_bae/__init__.py0get the url to download the model from the hugging face hub.STRING
HIGHinvokeai/backend/image_util/mlsd/__init__.py0get the url to download the model from the hugging face hub.STRING
HIGH…d/quantization/scripts/load_flux_model_bnb_llm_int8.py0a script for quantizing a t5 text encoder model using the bitsandbytes llm.int8() quantization method. this script is prSTRING
HIGH…ackend/quantization/scripts/load_flux_model_bnb_nf4.py0a script for quantizing a t5 text encoder model using the bitsandbytes llm.int8() quantization method. this script is prSTRING
HIGH…d/quantization/scripts/quantize_t5_xxl_bnb_llm_int8.py0a script for quantizing a t5 text encoder model using the bitsandbytes llm.int8() quantization method. this script is prSTRING
HIGHinvokeai/backend/model_manager/configs/t2i_adapter.py0raise `notamatch` if the model base does not match this config class.STRING
HIGHinvokeai/backend/model_manager/configs/controlnet.py0raise `notamatch` if the model base does not match this config class.STRING
HIGHinvokeai/backend/model_manager/configs/ip_adapter.py0raise `notamatch` if the model base does not match this config class.STRING
HIGHinvokeai/backend/model_manager/configs/lora.py0raise `notamatch` if the model base does not match this config class.STRING
HIGHinvokeai/backend/model_manager/configs/main.py0raise `notamatch` if the model base does not match this config class.STRING
HIGHinvokeai/backend/model_manager/configs/vae.py0raise `notamatch` if the model base does not match this config class.STRING
HIGHtests/app/routers/test_auth.py0enable multiuser mode for auth tests. auth tests need multiuser mode enabled since the login/setup endpoints return 403 STRING
HIGHtests/app/services/auth/test_security.py0enable multiuser mode for auth tests. auth tests need multiuser mode enabled since the login/setup endpoints return 403 STRING
HIGHtests/app/services/auth/test_data_isolation.py0enable multiuser mode for auth tests. auth tests need multiuser mode enabled since the login/setup endpoints return 403 STRING
HIGHtests/app/services/auth/test_performance.py0create table users ( user_id text not null primary key, email text not null unique, display_name text, password_hash texSTRING
HIGHtests/app/services/users/test_user_service.py0create table users ( user_id text not null primary key, email text not null unique, display_name text, password_hash texSTRING
HIGHtests/app/services/users/test_last_admin_invariant.py0create table users ( user_id text not null primary key, email text not null unique, display_name text, password_hash texSTRING
HIGH…conversions/test_flux_control_lora_conversion_utils.py0test that is_state_dict_likely_in_flux_onetrainer_format() returns false for a state dict that is in the diffusers flux STRING
HIGH…a_conversions/test_flux_kohya_lora_conversion_utils.py0test that is_state_dict_likely_in_flux_onetrainer_format() returns false for a state dict that is in the diffusers flux STRING
HIGH…versions/test_flux_onetrainer_lora_conversion_utils.py0test that is_state_dict_likely_in_flux_onetrainer_format() returns false for a state dict that is in the diffusers flux STRING
HIGHtests/backend/text_llm/test_text_llm_pipeline.py0stand-in for textiteratorstreamer — yields a fixed sequence of text chunks.STRING
HIGHtests/backend/text_llm/test_text_llm_thinking.py0stand-in for textiteratorstreamer — yields a fixed sequence of text chunks.STRING
HIGH…ckend/llava_onevision/test_llava_onevision_pipeline.py0stand-in for textiteratorstreamer — yields a fixed sequence of text chunks.STRING
Deep Nesting257 hits · 231 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/api_app.py113CODE
LOWinvokeai/app/util/dynamicprompts.py17CODE
LOWinvokeai/app/util/video_thumbnails.py223CODE
LOWinvokeai/app/util/video_thumbnails.py341CODE
LOWinvokeai/app/util/step_callback.py308CODE
LOWinvokeai/app/util/video_decode_worker.py258CODE
LOWinvokeai/app/util/user_management.py411CODE
LOWinvokeai/app/invocations/metadata_linked.py999CODE
LOWinvokeai/app/invocations/metadata_linked.py1076CODE
LOWinvokeai/app/invocations/compel.py460CODE
LOWinvokeai/app/invocations/z_image_denoise.py275CODE
LOWinvokeai/app/invocations/z_image_latents_to_image.py45CODE
LOWinvokeai/app/invocations/anima_denoise.py539CODE
LOWinvokeai/app/invocations/flux2_denoise.py151CODE
LOWinvokeai/app/invocations/anima_latents_to_image.py110CODE
LOWinvokeai/app/invocations/composition-nodes.py85CODE
LOWinvokeai/app/invocations/composition-nodes.py449CODE
LOWinvokeai/app/invocations/composition-nodes.py679CODE
LOWinvokeai/app/invocations/composition-nodes.py1312CODE
LOWinvokeai/app/invocations/composition-nodes.py1422CODE
LOWinvokeai/app/invocations/composition-nodes.py1475CODE
LOWinvokeai/app/invocations/composition-nodes.py1507CODE
LOWinvokeai/app/invocations/baseinvocation.py503CODE
LOWinvokeai/app/invocations/baseinvocation.py214CODE
LOWinvokeai/app/invocations/wan_model_loader.py124CODE
LOWinvokeai/app/invocations/ip_adapter.py123CODE
LOWinvokeai/app/invocations/flux_denoise.py710CODE
LOWinvokeai/app/invocations/anima_image_to_latents.py59CODE
LOWinvokeai/app/invocations/video_concat.py215CODE
LOWinvokeai/app/invocations/facetools.py356CODE
LOWinvokeai/app/invocations/spandrel_image_to_image.py209CODE
LOWinvokeai/app/invocations/wan_video_denoise.py156CODE
LOWinvokeai/app/invocations/math.py199CODE
LOWinvokeai/app/invocations/math.py273CODE
LOWinvokeai/app/invocations/wan_latents_to_video.py91CODE
LOWinvokeai/app/invocations/create_gradient_mask.py80CODE
LOWinvokeai/app/invocations/wan_denoise.py213CODE
LOWinvokeai/app/invocations/wan_denoise.py437CODE
LOWinvokeai/app/invocations/strings.py31CODE
LOWinvokeai/app/invocations/z_image_image_to_latents.py44CODE
LOWinvokeai/app/api/sockets.py226CODE
LOWinvokeai/app/api/sockets.py904CODE
LOWinvokeai/app/api/routers/board_images.py184CODE
LOWinvokeai/app/api/routers/board_images.py238CODE
LOWinvokeai/app/api/routers/board_images.py336CODE
LOWinvokeai/app/api/routers/model_manager.py518CODE
LOWinvokeai/app/api/routers/model_manager.py1362CODE
LOWinvokeai/app/api/routers/model_manager.py1411CODE
LOWinvokeai/app/api/routers/app_info.py220CODE
LOWinvokeai/app/api/routers/images.py526CODE
LOWinvokeai/app/api/routers/recall_parameters.py213CODE
LOWinvokeai/app/api/routers/recall_parameters.py269CODE
LOWinvokeai/app/api/routers/recall_parameters.py348CODE
LOWinvokeai/app/api/routers/session_queue.py201CODE
LOWinvokeai/app/api/routers/session_queue.py381CODE
LOWinvokeai/app/api/routers/videos.py189CODE
LOWinvokeai/app/api/routers/videos.py592CODE
LOWinvokeai/app/services/config/config_default.py497CODE
LOWinvokeai/app/services/images/images_default.py308CODE
LOW…ai/app/services/model_install/model_install_default.py214CODE
197 more matches not shown…
Self-Referential Comments75 hits · 217 pts
SeverityFileLineSnippetContext
MEDIUMinvokeai/app/api_app.py93# Create the appCOMMENT
MEDIUMinvokeai/app/util/profiler.py13 # Create a profilerSTRING
MEDIUMinvokeai/app/invocations/facetools.py197 # Create a FaceMesh object for face landmark detection and mesh generation.COMMENT
MEDIUMinvokeai/app/invocations/facetools.py597 # Create an RGBA image with transparencyCOMMENT
MEDIUMinvokeai/app/invocations/facetools.py678 # Create an RGBA image with transparencyCOMMENT
MEDIUMinvokeai/app/invocations/create_gradient_mask.py102 # Create a circular distance kernel that fades from center outwardCOMMENT
MEDIUMinvokeai/app/invocations/create_gradient_mask.py112 # Create a Gaussian kernelCOMMENT
MEDIUM…p/invocations/tiled_multi_diffusion_denoise_latents.py43 # Create a shallow copy of the control_data object.COMMENT
MEDIUMinvokeai/app/invocations/image.py215 # Create a temporary image to paste the image with transparencyCOMMENT
MEDIUMinvokeai/app/invocations/image.py1271 # Create a mask based on the threshold and the distance calculated aboveCOMMENT
MEDIUMinvokeai/app/invocations/image.py1357 # Create a distance transform of the thresholded mask. Distances are measured to theCOMMENT
MEDIUMinvokeai/app/invocations/image.py1516 # Create a noisy version of the input imageCOMMENT
MEDIUMinvokeai/app/services/config/config_default.py700 # Create the example config file, with some extra example values providedCOMMENT
MEDIUM…vices/shared/sqlite_migrator/sqlite_migrator_common.py54 # Define the migration callback classSTRING
MEDIUM…vices/shared/sqlite_migrator/sqlite_migrator_common.py74 # Define the migration builder function. This function creates an instance of the migration callbackCOMMENT
MEDIUM…ices/board_image_records/board_image_records_sqlite.py120 # Create the correct length of placeholdersSTRING
MEDIUM…ices/board_image_records/board_image_records_sqlite.py175 # Create the correct length of placeholdersSTRING
MEDIUM…ices/board_image_records/board_image_records_sqlite.py196 # Create the correct length of placeholdersSTRING
MEDIUM…eai/app/services/image_records/image_records_sqlite.py195 # Create the correct length of placeholdersSTRING
MEDIUMinvokeai/backend/llava_onevision_pipeline.py49 # Define a chat history and use `apply_chat_template` to get correctly formatted prompt.COMMENT
MEDIUMinvokeai/backend/image_util/controlnet_processor.py133 # Create a minimal context to run the invocationCOMMENT
MEDIUMinvokeai/backend/image_util/imwatermark/vendor.py1# This file is vendored from https://github.com/ShieldMnt/invisible-watermarkCOMMENT
MEDIUMinvokeai/backend/image_util/infill_methods/tile.py108 # Create the pool of tiles that we will use to infillCOMMENT
MEDIUMinvokeai/backend/image_util/infill_methods/tile.py111 # Create an image from the tiles, same size as the originalCOMMENT
MEDIUM…backend/image_util/segment_anything/mask_refinement.py1# This file contains utilities for Grounded-SAM mask refinement based on:COMMENT
MEDIUM…backend/image_util/segment_anything/mask_refinement.py41 # Create an empty mask.COMMENT
MEDIUMinvokeai/backend/flux/custom_block_processor.py24 """This function is a direct copy of DoubleStreamBlock.forward(), but it returns some of the intermediateSTRING
MEDIUMinvokeai/backend/flux/custom_block_processor.py109 """This function is a direct copy of SingleStreamBlock.forward()."""STRING
MEDIUM…nd/flux/ip_adapter/ip_double_stream_block_processor.py1# This file is based on:COMMENT
MEDIUM…s/lora_conversions/flux_xlabs_lora_conversion_utils.py77 # Create the InvokeAI-style layer keyCOMMENT
MEDIUMinvokeai/backend/quantization/bnb_llm_int8.py6# This file contains utils for working with models that use bitsandbytes LLM.int8() quantization.COMMENT
MEDIUMinvokeai/backend/quantization/bnb_nf4.py4# This file contains utils for working with models that use bitsandbytes NF4 quantization.COMMENT
MEDIUMinvokeai/backend/quantization/bnb_nf4.py29 """This method is based on the logic in the bitsandbytes serialization unit tests for `Linear4bit`:STRING
MEDIUMinvokeai/backend/pid/_src/utils/context_parallel.py79 # Create a list to store tensors from all ranksCOMMENT
MEDIUMinvokeai/backend/pid/_src/utils/context_parallel.py116 # Create a list to store tensors from all ranksCOMMENT
MEDIUM…end/stable_diffusion/diffusion/regional_prompt_data.py92 # Create an empty attention mask with the correct shape.COMMENT
MEDIUM…table_diffusion/diffusion/shared_invokeai_diffusion.py327 # Create a dummy mask and range for text conditioning that doesn't have region masks.COMMENT
MEDIUM…keai/backend/model_manager/load/model_loaders/anima.py160 # Create an empty AnimaTransformer with Anima's default architecture parametersCOMMENT
MEDIUM…ai/backend/model_manager/load/model_loaders/z_image.py340 # Create an empty model with the default Z-Image configCOMMENT
MEDIUM…ai/backend/model_manager/load/model_loaders/z_image.py426 # Create an empty model with the default Z-Image configCOMMENT
MEDIUM…ai/backend/model_manager/load/model_loaders/z_image.py552 # Create an empty model with the default Z-Image configCOMMENT
MEDIUM…ai/backend/model_manager/load/model_loaders/z_image.py690 # Create an empty model with the default Z-Image configCOMMENT
MEDIUM…ai/backend/model_manager/load/model_loaders/z_image.py873 # Create an empty control adapterCOMMENT
MEDIUMtests/dangerously_run_function_in_subprocess.py30 # Create a script that calls the functionCOMMENT
MEDIUMtests/legacy_tests.sh3# This file contains bunch of compatibility tests that ensuresCOMMENT
MEDIUMtests/app/test_extract_metadata_from_image.py32 # Create a mock image with valid metadataCOMMENT
MEDIUMtests/app/routers/test_auth.py80 # Create a test userCOMMENT
MEDIUMtests/app/routers/test_session_queue_sanitization.py19# Define a minimal test invocation for the testCOMMENT
MEDIUMtests/app/routers/test_client_state_multiuser.py79 # Create a regular userCOMMENT
MEDIUMtests/app/routers/test_multiuser_authorization.py1107 # Create a shared board and add the image to itCOMMENT
MEDIUMtests/app/routers/test_multiuser_authorization.py1335 # Create a board owned by user1 and add the image to itCOMMENT
MEDIUMtests/app/routers/test_multiuser_authorization.py2529 # Create a token for a user_id that was never created in the user serviceCOMMENT
MEDIUMtests/app/routers/test_multiuser_authorization.py2508 # Create the user in the database so the active-user check passesCOMMENT
MEDIUMtests/app/routers/test_multiuser_authorization.py2548 # Create a real user, then deactivate themCOMMENT
MEDIUMtests/app/routers/test_multiuser_authorization.py3239 # Create a fake installed pack directoryCOMMENT
MEDIUMtests/app/routers/test_custom_nodes.py418 # Create a mock invocation classCOMMENT
MEDIUMtests/app/util/test_step_callback.py18 # Create a small 1x16x4x4 latent tensor (batch=1, channels=16, 4x4 spatial)COMMENT
MEDIUMtests/app/api/test_sliding_window_token.py193 # Create a remember-me token with only 1 hour remaining (less than 24h)COMMENT
MEDIUMtests/app/services/auth/test_security.py252 # Create a regular userCOMMENT
MEDIUMtests/app/services/auth/test_security.py82 # Create a legitimate user firstCOMMENT
15 more matches not shown…
Docstring Block Structure30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHinvokeai/app/util/controlnet_utils.py378Pre-process images for ControlNets or T2I-Adapters. Args: image (Image): The PIL image to pre-process. STRING
HIGHinvokeai/app/invocations/metadata_linked.py139Combines any number of items or lists into a single list, ensuring consistency in type. Args: item_cls:STRING
HIGHinvokeai/app/api/auth_dependencies.py108Get current authenticated user from Bearer token. Note: This function accesses ApiDependencies.invoker.services.useSTRING
HIGHinvokeai/app/api/auth_dependencies.py156Get current authenticated user from Bearer token, or return a default system user if not authenticated. This dependSTRING
HIGHinvokeai/app/api/auth_dependencies.py220Require admin role for the current user. Stays `async def`, unlike the dependencies it builds on: this only reads aSTRING
HIGHinvokeai/app/api/auth_dependencies.py244Require admin role for the current user, or return default system admin in single-user mode. `async def` for the saSTRING
HIGHinvokeai/app/api/routers/auth.py199Authenticate user and return access token. Args: request: Login credentials (email and password) ReturSTRING
HIGHinvokeai/app/api/routers/auth.py332Get current authenticated user's information. Args: current_user: The authenticated user's token data STRING
HIGHinvokeai/app/api/routers/auth.py356Set up initial administrator account. This endpoint can only be called once, when no admin user exists. It creates STRING
HIGHinvokeai/app/api/routers/auth.py496Create a new user. Requires admin privileges. Args: request: New user details Returns: The creSTRING
HIGHinvokeai/app/api/routers/auth.py526Get a user by ID. Requires admin privileges. Args: user_id: The user ID Returns: The user STRING
HIGHinvokeai/app/api/routers/auth.py552Update a user. Requires admin privileges. Resetting a password revokes the target's existing sessions. An admin resSTRING
HIGHinvokeai/app/api/routers/auth.py705Update the current user's own profile. To change the password, both ``current_password`` and ``new_password`` must STRING
HIGHinvokeai/app/api/routers/recall_parameters.py419 Update recallable parameters that can be recalled on the frontend. This endpoint allows updating parameters suSTRING
HIGHinvokeai/app/services/users/users_common.py10Validate email address, allowing special-use domains like .local for testing. This validator first tries standard eSTRING
HIGHinvokeai/app/services/users/users_base.py14Create a new user. Args: user_data: User creation data strict_password_checking: If TruSTRING
HIGHinvokeai/app/services/users/users_base.py67Update user. Args: user_id: The user ID changes: Fields to update strict_paSTRING
HIGHinvokeai/app/services/users/users_base.py123Create an admin user (for initial setup). Args: user_data: User creation data strict_paSTRING
HIGH…es/style_preset_records/style_preset_records_common.py92Parses style presets from a file. The file must be a CSV or JSON file. If CSV, the file must have the following colSTRING
HIGHinvokeai/backend/hidiffusion/hidiffusion.py193 Function invoked when calling the pipeline for generation. Args: prompt (`str`STRING
HIGHinvokeai/backend/image_util/util.py164 Apply non-maximum suppression to an image. If both threshold and sigma are provided, the image will blurred beSTRING
HIGH…ules/efficientnet_repo/geffnet/efficientnet_builder.py464 Decode block definition string Gets a list of block arg (dicts) through a string notation of arguments. E.g. iSTRING
HIGH…patches/lora_conversions/sdxl_lora_conversion_utils.py8Convert the keys of an SDXL LoRA state_dict to diffusers format. The input state_dict can be in either Stability AISTRING
HIGHinvokeai/backend/pid/_src/utils/context_parallel.py28 Split input tensor along the sequence dimension for context parallelism. This function divides the input tensoSTRING
HIGHinvokeai/backend/pid/_src/utils/context_parallel.py59 Concatenate outputs from different ranks in the checkpoint parallelism group. This function gathers tensors frSTRING
HIGHinvokeai/backend/pid/_src/utils/context_parallel.py93 Concatenate outputs from different ranks in the context parallelism group. This function gathers tensors from STRING
HIGH…okeai/backend/pid/_ext/imaginaire/utils/distributed.py359 Modify based on DDP source code Synchronizes the parameters and buffers of a model across different processes iSTRING
HIGH…/backend/model_manager/configs/identification_utils.py47Load the diffusers/transformers model config file and return it as a dictionary. The config file is expected to be iSTRING
HIGH…/backend/model_manager/configs/identification_utils.py81Load the diffusers/transformers model config file and return the class name. Args: config_path: The path toSTRING
HIGHinvokeai/backend/model_manager/configs/factory.py658Classify a model on disk and return the best matching model config. Args: mod: The model on disk toSTRING
Over-Commented Block142 hits · 136 pts
SeverityFileLineSnippetContext
LOWpyproject.toml61 # The ROCm path is constrained where it can actually be targeted: the `rocm` extra below pins anCOMMENT
LOWpyproject.toml141 "torch==2.10.0+rocm7.1; sys_platform == 'linux' and platform_machine != 'aarch64'",COMMENT
LOWinvokeai/app/run_app.py1import osCOMMENT
LOWinvokeai/app/api_app.py141 token_data = verify_token(token)COMMENT
LOWinvokeai/app/util/video_thumbnails.py41# Resident-memory kill threshold for a decode worker *tree* (the worker plus itsCOMMENT
LOWinvokeai/app/invocations/denoise_latents.py781 timesteps = timesteps[t_start_idx : t_start_idx + t_end_idx]COMMENT
LOWinvokeai/app/invocations/anima_denoise.py661 device=device,COMMENT
LOWinvokeai/app/invocations/qwen_image_latents_to_image.py81 with SeamlessExt.static_patch_model(vae, self.vae.seamless_axes):COMMENT
LOWinvokeai/app/invocations/flux2_denoise.py361 inpaint_mask = self._prep_inpaint_mask(context, x)COMMENT
LOWinvokeai/app/invocations/baseinvocation.py561 # deprecated and should be migrated to:COMMENT
LOWinvokeai/app/invocations/wan_ref_image_encoder.py141 # swaps in particular can leave the cache fragmented in ways that look likeCOMMENT
LOWinvokeai/app/invocations/flux2_dev_text_encoder.py161 "The Mistral encoder model may be corrupted or incompatible."COMMENT
LOWinvokeai/app/invocations/wan_lora_loader.py21#COMMENT
LOWinvokeai/app/invocations/wan_denoise.py601 inpaint_extension = RectifiedFlowInpaintExtension(COMMENT
LOWinvokeai/app/invocations/wan_denoise.py621 # ``get_config`` doesn't touch the weights cache.COMMENT
LOWinvokeai/app/invocations/image.py1361 # np_result is also the final image for everywhere except the fade band. The blackCOMMENT
LOWinvokeai/app/invocations/image.py1381 # Control points: x values (normalized distance) and corresponding fade pct y values.COMMENT
LOWinvokeai/app/api/sockets.py61logger = InvokeAILogger.get_logger()COMMENT
LOWinvokeai/app/api/sockets.py741 else:COMMENT
LOWinvokeai/app/api/extract_metadata_from_image.py101 stringified_graph: str | None = NoneCOMMENT
LOWinvokeai/app/api/auth_dependencies.py41 - it is active,COMMENT
LOWinvokeai/app/api/routers/board_images.py261 failed_images: set[str] = set()COMMENT
LOWinvokeai/app/api/routers/board_images.py381COMMENT
LOWinvokeai/app/api/routers/model_manager.py61model_manager_router = APIRouter(prefix="/v2/models", tags=["model_manager"])COMMENT
LOWinvokeai/app/api/routers/images.py541 # discard the response payload for items the caller had already legitimately deleted.COMMENT
LOWinvokeai/app/api/routers/images.py581 #COMMENT
LOWinvokeai/app/api/routers/videos.py401 batch: VideoNamesBatch,COMMENT
LOW…ervices/session_processor/session_processor_default.py741 # a cancel event set while the row is still non-terminal is treated as a staleCOMMENT
LOW…ervices/session_processor/session_processor_default.py961 continueCOMMENT
LOW…eai/app/services/session_queue/session_queue_common.py521 node_field_values_to_zip.append(node_field_values)COMMENT
LOW…eai/app/services/session_queue/session_queue_common.py541 # {"node_path": "3", "field_name": "c", "value": 6},COMMENT
LOW…eai/app/services/session_queue/session_queue_sqlite.py41from invokeai.app.services.shared.graph import GraphExecutionStateCOMMENT
LOWinvokeai/frontend/web/src/i18.d.ts1// TODO: Disabled for IDE performance issues with our translation JSONCOMMENT
LOW…b/src/app/store/middleware/devtools/actionsDenylist.ts1/**COMMENT
LOW…leware/listenerMiddleware/listeners/boardIdSelected.ts21 // or re-picking the one already active, leaves the last item unchanged while still being theCOMMENT
LOW…leware/listenerMiddleware/listeners/boardIdSelected.ts41 }COMMENT
LOW…leware/listenerMiddleware/listeners/boardIdSelected.ts61 // that changes nothing must not announce itself as a pick. NoBoardBoard and the view tabsCOMMENT
LOW…nd/web/src/app/store/enhancers/reduxRemember/driver.ts21 const path = buildV1Url(`client_state/default/${endpoint}`, query);COMMENT
LOW…nd/web/src/app/store/enhancers/reduxRemember/driver.ts41//COMMENT
LOW…ntend/web/src/features/deleteImageModal/store/state.ts101 // a valid replacement candidate. Mirrors deleteVideoModal/store/state.ts.COMMENT
LOW…features/nodes/util/graph/generation/buildFLUXGraph.ts101 if (isFLUXFill) {COMMENT
LOW…ai/frontend/web/src/features/nodes/store/nodesSlice.ts281 });COMMENT
LOW…nd/web/src/features/auth/components/ProtectedRoute.tsx41COMMENT
LOW…ntend/web/src/features/deleteVideoModal/store/state.ts121 // If anything in the active selection was actually deleted, advance to a still-livingCOMMENT
LOW…lery/components/ImageViewer/viewerProgressLifecycle.ts221 // create the illusion of the progress image "resolving" into the final image. If we cleared the progress imageCOMMENT
LOW…s/gallery/components/ImageViewer/selectedItemReveal.ts161 }COMMENT
LOW…gallery/components/ImageViewer/CurrentVideoPreview.tsx181 const handleVideoError = useCallback(() => {COMMENT
LOW…frontend/web/src/features/controlLayers/store/types.ts901 animaScheduler: zParameterAnimaScheduler,COMMENT
LOW…b/src/features/controlLayers/store/paramsSlice.test.ts1101 expect(result.dimensions.height).toBe(1024);COMMENT
LOW…b/src/features/controlLayers/store/paramsSlice.test.ts1401COMMENT
LOW…nd/web/src/features/controlLayers/store/paramsSlice.ts1041 * that predates it, or upgrading users lose the whole slice — see `repairParamsState`. Note thatCOMMENT
LOW…ai/frontend/web/src/features/metadata/parsing.test.tsx1import type { AppStore } from 'app/store/store';COMMENT
LOW…keai/frontend/web/src/services/api/endpoints/images.ts261 const authContext = captureAuthContext();COMMENT
LOW…keai/frontend/web/src/services/api/endpoints/images.ts501 */COMMENT
LOW…keai/frontend/web/src/services/api/endpoints/images.ts521 // nothing-happened path and toasts a failure over an arriving download.COMMENT
LOW…keai/frontend/web/src/services/api/endpoints/images.ts541 // login screen, and returning `first` drives `matchFulfilled` into raising theCOMMENT
LOW…keai/frontend/web/src/services/api/endpoints/images.ts561 }COMMENT
LOW…eb/src/services/events/workflowExecutionCoordinator.ts81 req.unsubscribe?.();COMMENT
LOW…frontend/web/src/services/events/setEventListeners.tsx201 clearSavedWorkflowSelection(data.workflow_id);COMMENT
LOW…frontend/web/src/services/events/setEventListeners.tsx741 }COMMENT
82 more matches not shown…
Modern Structural Boilerplate93 hits · 88 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/util/ssrf.py50logger = logging.getLogger(__name__)CODE
LOWinvokeai/app/invocations/__init__.py5__all__ = [f.stem for f in python_files] # type: ignoreCODE
LOWinvokeai/app/api/auth_dependencies.py16logger = logging.getLogger(__name__)CODE
LOWinvokeai/app/api/routers/auth.py132def _set_media_cookie(request: Request, response: Response, token: str, max_age_seconds: int) -> None:CODE
LOWinvokeai/app/api/routers/utilities.py29logger = logging.getLogger(__name__)CODE
LOWinvokeai/app/services/app_settings/__init__.py5__all__ = ["AppSettingsService"]CODE
LOWinvokeai/app/services/config/config_default.py326 def update_config(self, config: dict[str, Any] | InvokeAIAppConfig, clobber: bool = True) -> None:CODE
LOWinvokeai/app/services/config/__init__.py6__all__ = ["InvokeAIAppConfig", "get_config", "PagingArgumentParser"]CODE
LOWinvokeai/app/services/auth/token_service.py33def set_jwt_secret(secret: str) -> None:CODE
LOWinvokeai/app/services/model_install/__init__.py15__all__ = [CODE
LOW…eai/app/services/model_install/model_install_common.py206 def set_error(self, e: Exception) -> None:CODE
LOW…ai/app/services/model_install/model_install_default.py1065 def _set_error(self, install_job: ModelInstallJob, excp: Exception) -> None:CODE
LOWinvokeai/app/services/image_moves/__init__.py3__all__ = ["ImageMoveService"]CODE
LOW…vokeai/app/services/image_moves/image_moves_default.py102 def set_session_queue(self, session_queue) -> None:CODE
LOW…vokeai/app/services/image_moves/image_moves_default.py778 def _set_job_state(self, job_id: int, state: MoveJobState) -> None:STRING
LOW…ervices/session_processor/session_processor_default.py126def _set_torch_current_device(device: torch.device) -> None:CODE
LOWinvokeai/app/services/shared/graph.py2483 def _set_prepared_exec_state(self, exec_node_id: str, state: PreparedExecState) -> None:CODE
LOWinvokeai/app/services/shared/graph.py2501 def set_ready_order(self, order: Iterable[Type[BaseInvocation] | str]) -> None:CODE
LOWinvokeai/app/services/shared/graph.py2736 def set_waiting_workflow_call_child_item_ids(self, child_item_ids: list[int]) -> None:CODE
LOWinvokeai/app/services/shared/graph.py214 def set_state(self, exec_node_id: str, state: PreparedExecState) -> None:CODE
LOWinvokeai/app/services/shared/graph.py226 def set_iteration_path(self, exec_node_id: str, iteration_path: tuple[int, ...]) -> None:CODE
LOWinvokeai/app/services/shared/graph.py2007 def update_node(self, node_id: str, new_node: BaseInvocation) -> None:CODE
LOWinvokeai/app/services/shared/graph.py2851 def update_node(self, node_id: str, new_node: BaseInvocation) -> None:CODE
LOWinvokeai/app/services/model_records/__init__.py14__all__ = [CODE
LOWinvokeai/app/services/model_load/__init__.py6__all__ = ["ModelLoadServiceBase", "ModelLoadService"]CODE
LOW…eai/app/services/session_queue/session_queue_sqlite.py154 def _set_in_progress_to_canceled(self) -> None:STRING
LOW…app/services/workflow_records/workflow_records_base.py86 def update_opened_at(self, workflow_id: str, user_id: Optional[str] = None) -> None:CODE
LOW…p/services/workflow_records/workflow_records_sqlite.py424 def update_opened_at(self, workflow_id: str, user_id: Optional[str] = None) -> None:STRING
LOWinvokeai/app/services/download/__init__.py12__all__ = [CODE
LOWinvokeai/app/services/model_manager/__init__.py6__all__ = [CODE
LOWinvokeai/app/services/external_generation/__init__.py14__all__ = [CODE
LOW…app/services/external_generation/providers/__init__.py6__all__ = ["AlibabaCloudProvider", "GeminiProvider", "OpenAIProvider", "SeedreamProvider"]CODE
LOWinvokeai/app/services/orphaned_models/__init__.py9__all__ = ["OrphanedModelsService", "OrphanedModelInfo", "CONVERSION_SCRATCH_DIRNAME"]CODE
LOWinvokeai/invocation_api/__init__.py146__all__ = [CODE
LOWinvokeai/backend/hidiffusion/__init__.py3__all__ = ["apply_hidiffusion", "remove_hidiffusion"]CODE
LOWinvokeai/backend/krea2/attention.py35 def set_attention_mask(self, attention_mask: torch.Tensor | None) -> None:CODE
LOWinvokeai/backend/ideogram4/__init__.py28__all__ = [CODE
LOW…ules/efficientnet_repo/geffnet/efficientnet_builder.py11__all__ = ['get_bn_args_tf', 'resolve_bn_args', 'resolve_se_args', 'resolve_act_layer', 'make_divisible',CODE
LOW…ae/nets/submodules/efficientnet_repo/geffnet/config.py5__all__ = [CODE
LOW…ts/submodules/efficientnet_repo/geffnet/mobilenetv3.py20__all__ = ['mobilenetv3_rw', 'mobilenetv3_large_075', 'mobilenetv3_large_100', 'mobilenetv3_large_minimal_100',CODE
LOW…bmodules/efficientnet_repo/geffnet/gen_efficientnet.py39__all__ = ['GenEfficientNet', 'mnasnet_050', 'mnasnet_075', 'mnasnet_100', 'mnasnet_b1', 'mnasnet_140',CODE
LOW…fficientnet_repo/geffnet/activations/activations_me.py17__all__ = ['swish_me', 'SwishMe', 'mish_me', 'MishMe',CODE
LOW…ficientnet_repo/geffnet/activations/activations_jit.py17__all__ = ['swish_jit', 'SwishJit', 'mish_jit', 'MishJit',CODE
LOWinvokeai/backend/util/device_pool.py59 def set_generation_devices(self, devices: list[torch.device]) -> None:CODE
LOWinvokeai/backend/util/fp8.py30def set_fp8_compute_dtype(model: torch.nn.Module, compute_dtype: torch.dtype) -> None:CODE
LOWinvokeai/backend/util/__init__.py8__all__ = [CODE
LOWinvokeai/backend/util/devices.py71 def set_session_device(cls, device: Union[str, torch.device]) -> None:CODE
LOWinvokeai/backend/flux/dype/embed.py48 def set_step_state(self, sigma: float, height: int, width: int) -> None:CODE
LOWinvokeai/backend/flux/dype/__init__.py23__all__ = [CODE
LOWinvokeai/backend/anima/anima_transformer.py27logger = logging.getLogger(__name__)CODE
LOWinvokeai/backend/anima/control_net_lllite.py493 def set_cond_image(self, cond: torch.Tensor | None) -> None:CODE
LOWinvokeai/backend/anima/control_net_lllite.py508 def set_multiplier(self, multiplier: float) -> None:CODE
LOWinvokeai/backend/rectified_flow/er_sde_scheduler.py193 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWinvokeai/backend/quantization/sdnq/loaders.py16logger = logging.getLogger(__name__)CODE
LOWinvokeai/backend/quantization/sdnq/__init__.py11__all__ = [CODE
LOWinvokeai/backend/quantization/sdnq/sdnq_tensor.py17logger = logging.getLogger(__name__)CODE
LOWinvokeai/backend/pid/decode.py651__all__ = [CODE
LOWinvokeai/backend/pid/_src/models/pid_model.py21logger = logging.getLogger(__name__)CODE
LOWinvokeai/backend/pid/_src/models/pixeldit_model.py29logger = logging.getLogger(__name__)CODE
LOWinvokeai/backend/pid/_src/models/pid_distill_model.py20logger = logging.getLogger(__name__)CODE
33 more matches not shown…
AI Structural Patterns91 hits · 86 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/api_app.py310CODE
LOWinvokeai/app/invocations/fields.py693CODE
LOWinvokeai/app/invocations/fields.py900CODE
LOWinvokeai/app/invocations/baseinvocation.py652CODE
LOWinvokeai/app/invocations/facetools.py516CODE
LOWinvokeai/app/invocations/facetools.py620CODE
LOWinvokeai/app/api/routers/images.py483CODE
LOWinvokeai/app/api/routers/workflows.py169CODE
LOWinvokeai/app/api/routers/gallery.py22CODE
LOWinvokeai/app/api/routers/gallery.py66CODE
LOWinvokeai/app/api/routers/videos.py733CODE
LOWinvokeai/app/services/images/images_default.py37CODE
LOWinvokeai/app/services/images/images_default.py243CODE
LOWinvokeai/app/services/images/images_default.py388CODE
LOWinvokeai/app/services/images/images_base.py46CODE
LOWinvokeai/app/services/images/images_base.py118CODE
LOWinvokeai/app/services/images/images_base.py165CODE
LOWinvokeai/app/services/gallery/gallery_base.py20CODE
LOWinvokeai/app/services/gallery/gallery_base.py38CODE
LOWinvokeai/app/services/gallery/gallery_base.py59CODE
LOWinvokeai/app/services/gallery/gallery_default.py38CODE
LOWinvokeai/app/services/gallery/gallery_default.py169CODE
LOWinvokeai/app/services/gallery/gallery_default.py197CODE
LOWinvokeai/app/services/model_load/model_load_default.py138CODE
LOW…okeai/app/services/video_records/video_records_base.py46CODE
LOW…okeai/app/services/video_records/video_records_base.py106CODE
LOW…eai/app/services/video_records/video_records_sqlite.py139CODE
LOW…eai/app/services/video_records/video_records_sqlite.py312CODE
LOWinvokeai/app/services/videos/videos_base.py46CODE
LOWinvokeai/app/services/videos/videos_base.py114CODE
LOWinvokeai/app/services/videos/videos_base.py153CODE
LOWinvokeai/app/services/videos/videos_default.py39CODE
LOWinvokeai/app/services/videos/videos_default.py248CODE
LOWinvokeai/app/services/videos/videos_default.py380CODE
LOW…okeai/app/services/image_records/image_records_base.py54CODE
LOW…okeai/app/services/image_records/image_records_base.py124CODE
LOW…eai/app/services/image_records/image_records_sqlite.py153CODE
LOW…eai/app/services/image_records/image_records_sqlite.py433CODE
LOWinvokeai/backend/hidiffusion/hidiffusion.py152CODE
LOWinvokeai/backend/hidiffusion/hidiffusion.py917CODE
LOWinvokeai/backend/image_util/lineart.py98CODE
LOWinvokeai/backend/image_util/lineart.py228CODE
LOWinvokeai/backend/image_util/lineart_anime.py274CODE
LOWinvokeai/backend/image_util/hed.py217CODE
LOWinvokeai/backend/image_util/basicsr/rrdbnet_arch.py125CODE
LOW…keai/backend/image_util/pbr_maps/architecture/block.py70CODE
LOW…keai/backend/image_util/pbr_maps/architecture/block.py350CODE
LOW…keai/backend/image_util/pbr_maps/architecture/block.py126CODE
LOW…keai/backend/image_util/pbr_maps/architecture/block.py143CODE
LOW…keai/backend/image_util/pbr_maps/architecture/block.py175CODE
LOW…keai/backend/image_util/pbr_maps/architecture/block.py219CODE
LOW…keai/backend/image_util/pbr_maps/architecture/block.py292CODE
LOWinvokeai/backend/image_util/normal_bae/nets/baseline.py78CODE
LOW…ules/efficientnet_repo/geffnet/efficientnet_builder.py100CODE
LOW…ules/efficientnet_repo/geffnet/efficientnet_builder.py144CODE
LOW…ules/efficientnet_repo/geffnet/efficientnet_builder.py193CODE
LOW…ules/efficientnet_repo/geffnet/efficientnet_builder.py257CODE
LOW…ules/efficientnet_repo/geffnet/efficientnet_builder.py309CODE
LOW…ules/efficientnet_repo/geffnet/efficientnet_builder.py367CODE
LOW…ts/submodules/efficientnet_repo/geffnet/mobilenetv3.py59CODE
31 more matches not shown…
Redundant / Tautological Comments48 hits · 74 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/invocations/flux2_klein_model_loader.py134 # Check if main model is a pipeline-shaped config we can extract submodels from.COMMENT
LOWinvokeai/app/invocations/flux2_denoise.py412 # Check if we're doing inpainting (have a mask or a clipped schedule)COMMENT
LOWinvokeai/app/invocations/facetools.py192 # Check if the input image has four channels (RGBA).COMMENT
LOWinvokeai/app/invocations/facetools.py207 # Check if any face is detected.COMMENT
LOWinvokeai/app/api/sockets.py780 # Check if we have user info for this socket. In multiuser mode _handle_connectCOMMENT
LOWinvokeai/app/api/sockets.py800 # Add socket to the queue roomCOMMENT
LOWinvokeai/app/api/routers/auth.py213 # Check if multiuser is enabledCOMMENT
LOWinvokeai/app/api/routers/auth.py373 # Check if multiuser is enabledCOMMENT
LOWinvokeai/app/api/routers/auth.py382 # Check if any admin existsCOMMENT
LOWinvokeai/app/api/routers/custom_nodes.py479 # Check if this looks like a workflow (must have nodes and edges)COMMENT
LOWinvokeai/app/api/routers/model_manager.py466 # Check if the model is installed by comparing paths, appending to the scan result.COMMENT
LOWinvokeai/app/api/routers/model_manager.py1368 # Check if source matches exactlyCOMMENT
LOWinvokeai/app/api/routers/model_manager.py1371 # Check if name (or previous names), base and type matchCOMMENT
LOWinvokeai/app/services/shared/graph.py1295 # Check if any of the types in the Union is a ListCOMMENT
LOWinvokeai/app/services/users/users_common.py35 # Check if the error is specifically about special-use/reserved domains or localhostCOMMENT
LOWinvokeai/app/services/users/users_default.py87 # Check if email already existsCOMMENT
LOWinvokeai/app/services/users/users_default.py188 # Check if user existsCOMMENT
LOW…pp/services/orphaned_models/orphaned_models_service.py89 # Check if disk_file is under model_dirCOMMENT
LOWinvokeai/backend/hidiffusion/hidiffusion.py2065 # Check if the pipeline is a ControlNet pipeline. InvokeAI's modularCOMMENT
LOWinvokeai/backend/image_util/infill_methods/tile.py26 # Check if the image has an alpha channel and the tile is completely opaqueCOMMENT
LOW…ra_conversions/flux_diffusers_lora_conversion_utils.py29 # Check if keys use transformer prefixCOMMENT
LOW…ra_conversions/flux_diffusers_lora_conversion_utils.py38 # Check if keys use base_model.model prefixCOMMENT
LOW…ra_conversions/flux_diffusers_lora_conversion_utils.py105 # Check if any key starts with "base_model.model." prefixCOMMENT
LOW…s/lora_conversions/qwen_image_lora_conversion_utils.py56 # Check if any key matches the Kohya patternCOMMENT
LOW…ora_conversions/flux_bfl_peft_lora_conversion_utils.py442 # Check if any layer keys are in BFL format (contain double_blocks or single_blocks)COMMENT
LOWinvokeai/backend/flux2/denoise.py111 # Check if scheduler supports sigmas parameter using inspect.signatureCOMMENT
LOWinvokeai/backend/quantization/sdnq/loaders.py112 # Check if scale's out_features matches weight's out_featuresCOMMENT
LOWinvokeai/backend/quantization/sdnq/loaders.py152 # Check if shape is stored in configCOMMENT
LOWinvokeai/backend/quantization/sdnq/loaders.py259 # Check if this is a base weight tensorCOMMENT
LOWinvokeai/backend/quantization/sdnq/loaders.py269 # Check if this is a quantized tensor (has scale)COMMENT
LOW…end/z_image/extensions/regional_prompting_extension.py89 # Check if any regional masks existCOMMENT
LOWinvokeai/backend/model_manager/util/select_hf_files.py171 # Check if at least one of the files has the explicit fp16 variant.COMMENT
LOWinvokeai/backend/model_manager/load/load_default.py247 # Check if this is a text encoder submodel of a main model with cpu_only settingCOMMENT
LOWinvokeai/backend/model_manager/load/load_default.py254 # Check if this is a standalone text encoder config with cpu_only field (T5Encoder, Qwen3Encoder, etc.)COMMENT
LOW…/backend/model_manager/load/model_cache/model_cache.py542 # Check if there are any unlocked models that can be clearedCOMMENT
LOW…ai/backend/model_manager/load/model_loaders/z_image.py156 # Check if submodel folder has SDNQ quantization - if so, use SDNQ loaderCOMMENT
LOW…ai/backend/model_manager/load/model_loaders/z_image.py335 # Check if conversion is needed (original format vs diffusers format)COMMENT
LOW…ai/backend/model_manager/load/model_loaders/z_image.py418 # Check if the state dict is in original format (not diffusers format)COMMENT
LOW…ai/backend/model_manager/load/model_loaders/z_image.py685 # Check if conversion is needed (original format vs diffusers format)COMMENT
LOW…ai/backend/model_manager/load/model_loaders/z_image.py769 # Check if this is a standalone text_encoder download (no nested text_encoder folder)COMMENT
LOW…ai/backend/model_manager/load/model_loaders/z_image.py1215 # Check if this is llama.cpp format (blk.X.) or PyTorch format (model.layers.X.)COMMENT
LOW…ai/backend/model_manager/load/model_loaders/z_image.py1332 # Check if lm_head.weight is still a meta tensor (wasn't in GGUF state dict)COMMENT
LOW…vokeai/backend/model_manager/load/model_loaders/vae.py202 # Check if this is an SDNQ-quantized VAE folderCOMMENT
LOW…okeai/backend/model_manager/load/model_loaders/flux.py911 # Check if this is a Klein model without guidance (guidance_embeds=False in config)COMMENT
LOW…okeai/backend/model_manager/load/model_loaders/flux.py976 # Check if keys have ComfyUI-style prefix and strip if neededCOMMENT
LOW…okeai/backend/model_manager/load/model_loaders/flux.py1354 # Check if keys have ComfyUI-style prefix and strip if neededCOMMENT
LOWscripts/remove_orphaned_models.py288 # Check if this file is under any registered model directoryCOMMENT
LOWscripts/remove_orphaned_models.py292 # Check if disk_file is under model_dirCOMMENT
AI Slop Vocabulary30 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMinvokeai/app/invocations/z_image_latents_to_image.py64 # FLUX VAE doesn't support seamless, so only apply for AutoencoderKLCOMMENT
MEDIUMinvokeai/app/invocations/denoise_latents.py950 ### seamlessCOMMENT
MEDIUMinvokeai/app/invocations/denoise_latents.py1005 # ext: freeu, seamless, ip adapter, lora, hidiffusionCOMMENT
MEDIUMinvokeai/app/invocations/baseinvocation.py565 # 2. ui_type was set in conjunction with any of the new ui_model_[base|type|variant|format] fields, whichCOMMENT
LOWinvokeai/app/invocations/baseinvocation.py736 # You'd be tempted to just add the type field and rebuild the model, like this:COMMENT
MEDIUMinvokeai/app/invocations/model.py695 """Applies the seamless transformation to the Model UNet and VAE."""STRING
LOWinvokeai/app/invocations/qwen_image_denoise.py484 # For txt2img models: just use noisy patchesCOMMENT
LOWinvokeai/app/invocations/image.py1347 # If the fade size is 0, just return the mask as-is.COMMENT
LOWinvokeai/app/services/config/config_default.py690 # If it is False, we should just return a default config and not set the root, log in to HF, etc.COMMENT
LOW…ervices/session_processor/session_processor_default.py295 # to do any handling here, and no error should be set - just pass and the cancellation will be handledCOMMENT
MEDIUM…dvancedSettingsAccordion/AdvancedSettingsAccordion.tsx98 // Ideogram 4 and Krea-2 hide the VAE / clip skip / CFG rescale / seamless controls (they don'tCOMMENT
MEDIUM…rc/features/nodes/util/graph/generation/addSeamless.ts26 // Always write seamless metadata to ensure recalling all parameters will reset the seamless settingsCOMMENT
MEDIUM…b/src/features/nodes/util/graph/generation/addLoRAs.ts40 // Use seamless as UNet input if it exists, otherwise use the model loaderCOMMENT
MEDIUM…features/nodes/util/graph/generation/buildSDXLGraph.ts187 // We might get the VAE from the main model, custom VAE, or seamless node.COMMENT
MEDIUM…/features/nodes/util/graph/generation/buildSD1Graph.ts173 // We might get the VAE from the main model, custom VAE, or seamless node.COMMENT
MEDIUM…c/features/nodes/util/graph/generation/addSDXLLoRAs.ts37 // Use seamless as UNet input if it exists, otherwise use the model loaderCOMMENT
MEDIUM…ents/RasterLayer/RasterLayerCurvesAdjustmentsGraph.tsx137 // Exact fractional coordinates for seamless coverage (no gaps as width grows)COMMENT
MEDIUMinvokeai/backend/util/hotfixes.py785# this needed to make work seamless patchSTRING
LOWinvokeai/backend/flux/extensions/kontext_extension.py189 # First image - just set canvas dimensionsCOMMENT
LOWinvokeai/backend/quantization/bnb_llm_int8.py90 # We could simply call the `super()._load_from_state_dict()` method here, but then we wouldn't be able toCOMMENT
LOWinvokeai/backend/quantization/bnb_nf4.py52 # We could simply call the `super()._load_from_state_dict()` method here, but then we wouldn't be able toCOMMENT
LOWinvokeai/backend/model_manager/util/select_hf_files.py55 # if the subfolder is a single file, then bypass the selection and just return itCOMMENT
LOW…okeai/backend/model_manager/load/model_loaders/flux.py1840 # Any remaining keys that weren't converted - just pass throughCOMMENT
MEDIUMtests/app/routers/test_privilege_revocation.py274 # the test harness.COMMENT
MEDIUMtests/app/routers/test_multiuser_authorization.py3298 # the test harness.COMMENT
LOWscripts/build_wheel.sh17 # we can't just call 'deactivate' because this function is not exportedCOMMENT
LOW.github/workflows/python-checks.yml38 # uv requires a venv by default - but for this, we can simply use the system pythonCOMMENT
LOW.github/workflows/typegen-checks.yml37 # uv requires a venv by default - but for this, we can simply use the system pythonCOMMENT
LOW.github/workflows/openapi-checks.yml37 # uv requires a venv by default - but for this, we can simply use the system pythonCOMMENT
LOW.github/workflows/uv-lock-checks.yml40 # uv requires a venv by default - but for this, we can simply use the system pythonCOMMENT
Fake / Example Data42 hits · 47 pts
SeverityFileLineSnippetContext
LOWinvokeai/frontend/web/public/locales/ru.json3232 "emailPlaceholder": "admin@example.com",CODE
LOWinvokeai/frontend/web/public/locales/ru.json3276 "emailPlaceholder": "user@example.com",CODE
LOWinvokeai/frontend/web/public/locales/zh-CN.json3551 "emailPlaceholder": "admin@example.com",CODE
LOWinvokeai/frontend/web/public/locales/zh-CN.json3595 "emailPlaceholder": "user@example.com",CODE
LOWinvokeai/frontend/web/public/locales/en.json36 "emailPlaceholder": "admin@example.com",CODE
LOWinvokeai/frontend/web/public/locales/en.json82 "emailPlaceholder": "user@example.com",CODE
LOWinvokeai/frontend/web/public/locales/es.json1129 "emailPlaceholder": "admin@example.com",CODE
LOWinvokeai/frontend/web/public/locales/es.json1173 "emailPlaceholder": "user@example.com",CODE
LOWinvokeai/frontend/web/src/app/store/store.test.ts43 email: 'user@example.com',CODE
LOW…rc/features/auth/store/refreshedTokenConsumers.test.ts18 email: 'user@example.com',CODE
LOW…i/frontend/web/src/services/api/endpoints/auth.test.ts55 new Response(JSON.stringify({ user_id: 'user-1', email: 'user@example.com', is_admin: false }), {CODE
LOW…/frontend/web/src/services/events/useSocketIO.test.tsx67 email: 'user@example.com',CODE
LOWtests/app/routers/test_auth.py271 "email": "admin@example.com",CODE
LOWtests/app/routers/test_auth.py280 assert json_response["user"]["email"] == "admin@example.com"CODE
LOWtests/app/routers/test_auth.py63def setup_test_admin(mock_invoker: Invoker, email: str = "admin@example.com", password: str = "AdminPass123") -> str:CODE
LOWtests/app/routers/test_app_info.py41 return Mock(user_id="user-1", email="user@example.com", is_admin=False, is_active=True, token_epoch=0)CODE
LOWtests/app/routers/test_app_info.py407 lambda _: TokenData(user_id="user-1", email="user@example.com", is_admin=False),CODE
LOWtests/app/routers/test_app_info.py429 lambda _: TokenData(user_id="user-1", email="user@example.com", is_admin=False),CODE
LOWtests/app/routers/test_app_info.py451 lambda _: TokenData(user_id="user-1", email="user@example.com", is_admin=False),CODE
LOWtests/app/api/test_sliding_window_token.py352 SimpleNamespace(user_id="test-user", email="test@test.com", is_admin=False, is_active=True, token_epoch=0),CODE
LOWtests/app/api/test_sliding_window_token.py357 TokenData(user_id="test-user", email="test@test.com", is_admin=True, remember_me=False)CODE
LOWtests/app/api/test_sliding_window_token.py374 SimpleNamespace(user_id="test-user", email="test@test.com", is_admin=True, is_active=True, token_epoch=0),CODE
LOWtests/app/api/test_sliding_window_token.py379 TokenData(user_id="test-user", email="test@test.com", is_admin=False, remember_me=False)CODE
LOWtests/app/api/test_sliding_window_token.py394 SimpleNamespace(user_id="test-user", email="test@test.com", is_admin=False, is_active=False, token_epoch=0),CODE
LOWtests/app/api/test_sliding_window_token.py21 email="test@test.com",CODE
LOWtests/app/api/test_sliding_window_token.py106 email="test@test.com",CODE
LOWtests/app/api/test_sliding_window_token.py425 SimpleNamespace(user_id="test-user", email="test@test.com", is_admin=False, is_active=True, token_epoch=0),CODE
LOWtests/app/api/test_video_upload_limits.py372 token_data = TokenData(user_id="user", email="user@example.com", is_admin=False)CODE
LOWtests/app/api/test_video_upload_limits.py391 token = create_access_token(TokenData(user_id="user", email="user@example.com", is_admin=False))CODE
LOWtests/app/api/test_video_upload_limits.py472 current_user=TokenData(user_id="user", email="user@example.com", is_admin=False),CODE
LOWtests/app/services/auth/test_security.py62def setup_test_admin(mock_invoker: Invoker, email: str = "admin@example.com", password: str = "AdminPass123") -> str:CODE
LOWtests/app/services/auth/test_data_isolation.py166 email="admin@example.com", display_name="Admin", password="AdminPass123", is_admin=TrueCODE
LOWtests/app/services/auth/test_data_isolation.py172 email="user@example.com", display_name="User", password="TestPass123", is_admin=FalseCODE
LOWtests/app/services/auth/test_data_isolation.py302 email="admin@example.com", display_name="Admin", password="AdminPass123", is_admin=TrueCODE
LOWtests/app/services/auth/test_token_service.py64 email="admin@example.com",CODE
LOWtests/app/services/auth/test_token_service.py273 email="admin@example.com",CODE
LOWtests/app/services/auth/test_token_service.py187 email="user@example.com",CODE
LOWtests/app/services/auth/test_token_service.py198 email="admin@example.com",CODE
LOWtests/app/services/users/test_user_service.py223 email="admin@example.com",CODE
LOWtests/app/services/users/test_user_service.py236 email="admin@example.com",CODE
LOWtests/app/services/users/test_user_service.py244 assert admin.email == "admin@example.com"CODE
LOWtests/app/services/users/test_user_service.py251 email="admin@example.com",CODE
Cross-Language Confusion6 hits · 32 pts
SeverityFileLineSnippetContext
HIGHinvokeai/frontend/install/import_images.py411VALUES ('{filename}', 'internal', 'general', {width}, {height}, null, null, '{metadata}', 0, '{modified_date_string}', 'CODE
HIGHtests/app/routers/test_images.py551 # Optional fields are wrapped in anyOf: [{array}, {null}].COMMENT
HIGH…kend/model_manager/model_metadata/metadata_examples.py4{"_id":"6564b36f4eb2f55240230f48","id":"stabilityai/sdxl-turbo","modelId":"stabilityai/sdxl-turbo","author":"test_authorCODE
HIGH…kend/model_manager/model_metadata/metadata_examples.py9{"_id":"6564b36f4eb2f55240230f48","id":"stabilityai/sdxl-turbo","modelId":"stabilityai/sdxl-turbo","author":"test_authorCODE
HIGH…kend/model_manager/model_metadata/metadata_examples.py20{"id":242807,"modelId":215485,"name":"v1-128dim","createdAt":"2023-11-29T01:21:22.372Z","updatedAt":"2023-12-16T17:46:14CODE
HIGH…kend/model_manager/model_metadata/metadata_examples.py26{"id":215485,"name":"SDXL Turbo-LoRA-Stable Diffusion XL faster than light","description":"<p>v1: 128 dim</p><p>v1-64dimCODE
Verbosity Indicators16 hits · 32 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/invocations/image.py1618 # Step 1: Load all imagesCOMMENT
LOWinvokeai/app/invocations/image.py1624 # Step 2: Determine target resolution for the first imageCOMMENT
LOWinvokeai/app/invocations/image.py1651 # Step 3: Process and resize all images with consistent heightCOMMENT
LOWinvokeai/app/invocations/image.py1675 # Step 4: Concatenate images horizontallyCOMMENT
LOW…a_conversions/flux_onetrainer_lora_conversion_utils.py146 # Step 1: Convert the Kohya-style keys with underscores to classic keys with periods.COMMENT
LOW…a_conversions/flux_onetrainer_lora_conversion_utils.py163 # Step 2: Convert diffusers module names to the BFL module names.COMMENT
LOW…nversions/flux_onetrainer_bfl_lora_conversion_utils.py101 # Step 1: Strip prefix and group by layer name.COMMENT
LOW…nversions/flux_onetrainer_bfl_lora_conversion_utils.py116 # Step 2: Build LoRA layers, merging split QKV and linear1.COMMENT
LOWinvokeai/backend/z_image/z_image_patchify_utils.py80 # Step 1: Rearrange to put spatial dims together for proper patchingCOMMENT
LOWinvokeai/backend/z_image/z_image_patchify_utils.py84 # Step 2: Split H and W into tokens and patch sizesCOMMENT
LOWinvokeai/backend/z_image/z_image_patchify_utils.py88 # Step 3: Rearrange to group patches and featuresCOMMENT
LOWinvokeai/backend/z_image/z_image_patchify_utils.py92 # Step 4: For F > 1, we'd need to handle F similarly, but for F=1 this is simplerCOMMENT
LOWscripts/check_classifiers.py9# Step 1: Get pyproject.toml path from argsCOMMENT
LOWscripts/check_classifiers.py19# Step 1: Download the official Trove classifier listCOMMENT
LOWscripts/check_classifiers.py24# Step 2: Extract classifiers from pyproject.tomlCOMMENT
LOWscripts/check_classifiers.py36# Step 3: Check for invalid classifiersCOMMENT
Structural Annotation Overuse16 hits · 32 pts
SeverityFileLineSnippetContext
LOWinvokeai/app/invocations/image.py1618 # Step 1: Load all imagesCOMMENT
LOWinvokeai/app/invocations/image.py1624 # Step 2: Determine target resolution for the first imageCOMMENT
LOWinvokeai/app/invocations/image.py1651 # Step 3: Process and resize all images with consistent heightCOMMENT
LOWinvokeai/app/invocations/image.py1675 # Step 4: Concatenate images horizontallyCOMMENT
LOW…a_conversions/flux_onetrainer_lora_conversion_utils.py146 # Step 1: Convert the Kohya-style keys with underscores to classic keys with periods.COMMENT
LOW…a_conversions/flux_onetrainer_lora_conversion_utils.py163 # Step 2: Convert diffusers module names to the BFL module names.COMMENT
LOW…nversions/flux_onetrainer_bfl_lora_conversion_utils.py101 # Step 1: Strip prefix and group by layer name.COMMENT
LOW…nversions/flux_onetrainer_bfl_lora_conversion_utils.py116 # Step 2: Build LoRA layers, merging split QKV and linear1.COMMENT
LOWinvokeai/backend/z_image/z_image_patchify_utils.py80 # Step 1: Rearrange to put spatial dims together for proper patchingCOMMENT
LOWinvokeai/backend/z_image/z_image_patchify_utils.py84 # Step 2: Split H and W into tokens and patch sizesCOMMENT
LOWinvokeai/backend/z_image/z_image_patchify_utils.py88 # Step 3: Rearrange to group patches and featuresCOMMENT
LOWinvokeai/backend/z_image/z_image_patchify_utils.py92 # Step 4: For F > 1, we'd need to handle F similarly, but for F=1 this is simplerCOMMENT
LOWscripts/check_classifiers.py9# Step 1: Get pyproject.toml path from argsCOMMENT
LOWscripts/check_classifiers.py19# Step 1: Download the official Trove classifier listCOMMENT
LOWscripts/check_classifiers.py24# Step 2: Extract classifiers from pyproject.tomlCOMMENT
LOWscripts/check_classifiers.py36# Step 3: Check for invalid classifiersCOMMENT
Cross-Language Confusion (JS/TS)1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…frontend/web/src/features/ui/layouts/navigation-api.ts185 * @return True if the switch was successful, false otherwiseCOMMENT
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMinvokeai/backend/image_util/imwatermark/vendor.py258CODE
MEDIUMtests/app/util/test_video_thumbnails.py95CODE
MEDIUMtests/app/util/test_video_thumbnails.py636CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMinvokeai/backend/text_llm_pipeline.py158 # chain of thought, so prompt expansion returns the prompt rather than the model'sCOMMENT
Overly Generic Function Names1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/app/routers/test_no_blocking_async_routes.py97 "async def handler():\n async def helper():\n await something()\n return blocking_service_call()\n"CODE
Slop Phrases2 hits · 0 pts
SeverityFileLineSnippetContext
LOWinvokeai/backend/hidiffusion/hidiffusion.py1873 # make sure to the functional Conv2D function as otherwise torch.compile's graph will breakSTRING
LOWinvokeai/backend/hidiffusion/hidiffusion.py1950 # make sure to the functional Conv2D function as otherwise torch.compile's graph will breakSTRING