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.
This report presents the forensic synthetic code analysis of invoke-ai/InvokeAI, a Python project with 27,616 GitHub stars. SynthScan v2.0 examined 922,437 lines of code across 2899 source files, recording 3812 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 5.5 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).
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.
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.
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.
The scanner identified 3812 distinct pattern matches across 20 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/app/util/misc.py | 16 | def get_datetime_from_iso_timestamp(iso_timestamp: str) -> datetime.datetime: | CODE |
| LOW | invokeai/app/util/torch_cuda_allocator.py | 6 | def configure_torch_cuda_allocator(pytorch_cuda_alloc_conf: str, logger: logging.Logger): | CODE |
| LOW | invokeai/app/util/ti_utils.py | 11 | def extract_ti_triggers_from_prompt(prompt: str) -> List[str]: | CODE |
| LOW | invokeai/app/util/step_callback.py | 183 | def sample_to_lowres_estimated_image( | CODE |
| LOW | invokeai/app/invocations/latent_noise.py | 11 | def validate_noise_dimensions(noise_type: LatentNoiseType, width: int, height: int) -> None: | CODE |
| LOW | invokeai/app/invocations/latent_noise.py | 46 | def validate_noise_tensor_shape(noise: torch.Tensor, noise_type: LatentNoiseType, width: int, height: int) -> None: | CODE |
| LOW | invokeai/app/invocations/t2i_adapter.py | 33 | def validate_ip_adapter_weight(cls, v): | CODE |
| LOW | invokeai/app/invocations/t2i_adapter.py | 38 | def validate_begin_end_step_percent(self): | CODE |
| LOW | invokeai/app/invocations/t2i_adapter.py | 83 | def validate_ip_adapter_weight(cls, v): | CODE |
| LOW | invokeai/app/invocations/t2i_adapter.py | 88 | def validate_begin_end_step_percent(self): | CODE |
| LOW | invokeai/app/invocations/compel.py | 425 | def get_tokens_for_prompt_object( | CODE |
| LOW | invokeai/app/invocations/compel.py | 447 | def log_tokenization_for_conjunction( | CODE |
| LOW | invokeai/app/invocations/compel.py | 460 | def log_tokenization_for_prompt_object( | CODE |
| LOW | invokeai/app/invocations/compel.py | 502 | def log_tokenization_for_text( | CODE |
| LOW | invokeai/app/invocations/blend_latents.py | 85 | def replace_tensor_from_masked_tensor( | CODE |
| LOW | invokeai/app/invocations/controlnet.py | 53 | def validate_begin_end_step_percent(self): | CODE |
| LOW | invokeai/app/invocations/controlnet.py | 97 | def validate_begin_end_step_percent(self) -> "ControlNetInvocation": | CODE |
| LOW | invokeai/app/invocations/cogview4_denoise.py | 175 | def _convert_timesteps_to_sigmas(self, image_seq_len: int, timesteps: torch.Tensor) -> list[float]: | CODE |
| LOW | invokeai/app/invocations/flux_ip_adapter.py | 56 | def validate_ip_adapter_weight(cls, v: float) -> float: | CODE |
| LOW | invokeai/app/invocations/flux_ip_adapter.py | 61 | def validate_begin_end_step_percent(self) -> Self: | CODE |
| LOW | invokeai/app/invocations/denoise_latents.py | 220 | def _get_text_embeddings_and_masks( | CODE |
| LOW | invokeai/app/invocations/denoise_latents.py | 241 | def _preprocess_regional_prompt_mask( | CODE |
| LOW | invokeai/app/invocations/denoise_latents.py | 267 | def _concat_regional_text_embeddings( | CODE |
| LOW | invokeai/app/invocations/denoise_latents.py | 553 | def prep_ip_adapter_image_prompts( | CODE |
| LOW | invokeai/app/invocations/denoise_latents.py | 781 | def prepare_noise_and_latents( | CODE |
| LOW | invokeai/app/invocations/anima_denoise.py | 101 | def inverse_loglinear_timestep_shift(alpha: float, sigma: float) -> float: | CODE |
| LOW | invokeai/app/invocations/anima_denoise.py | 153 | def merge_intermediate_latents_with_init_latents( | CODE |
| LOW | invokeai/app/invocations/anima_denoise.py | 270 | def _normalize_control_lllite( | CODE |
| LOW | invokeai/app/invocations/anima_denoise.py | 462 | def _run_llm_adapter_for_regions( | CODE |
| LOW | invokeai/app/invocations/anima_denoise.py | 899 | def _estimate_preview_latents(self, latents: torch.Tensor, sigma: float, noise_pred: torch.Tensor) -> torch.Tensor: | CODE |
| LOW | invokeai/app/invocations/flux2_klein_model_loader.py | 173 | def _validate_diffusers_format( | CODE |
| LOW | invokeai/app/invocations/z_image_model_loader.py | 126 | def _validate_diffusers_format( | CODE |
| LOW | invokeai/app/invocations/call_saved_workflow.py | 12 | def is_call_saved_workflow_dynamic_input(field_name: str) -> bool: | CODE |
| LOW | invokeai/app/invocations/call_saved_workflow.py | 16 | def parse_call_saved_workflow_dynamic_input(field_name: str) -> tuple[str, str]: | CODE |
| LOW | invokeai/app/invocations/call_saved_workflow.py | 51 | def validate_selected_workflow(self, context: InvocationContext): | CODE |
| LOW | invokeai/app/invocations/external_image_generation.py | 179 | def _build_output_provider_metadata(self) -> dict[str, Any]: | CODE |
| LOW | invokeai/app/invocations/external_image_generation.py | 231 | def _build_output_provider_metadata(self) -> dict[str, Any]: | CODE |
| LOW | invokeai/app/invocations/external_image_generation.py | 282 | def _build_output_provider_metadata(self) -> dict[str, Any]: | CODE |
| LOW | invokeai/app/invocations/external_image_generation.py | 326 | def _build_output_provider_metadata(self) -> dict[str, Any]: | CODE |
| LOW | invokeai/app/invocations/composition-nodes.py | 430 | def scale_and_pad_or_crop_to_base(self, image_upper: Image.Image, image_base: Image.Image): | CODE |
| LOW | invokeai/app/invocations/composition-nodes.py | 515 | def prepare_tensors_from_images( | CODE |
| LOW | invokeai/app/invocations/baseinvocation.py | 323 | def get_invocation_typeadapter(cls) -> TypeAdapter[Any]: | CODE |
| LOW | invokeai/app/invocations/baseinvocation.py | 337 | def invalidate_invocation_typeadapter(cls) -> None: | CODE |
| LOW | invokeai/app/invocations/baseinvocation.py | 440 | def invalidate_output_typeadapter(cls) -> None: | CODE |
| LOW | invokeai/app/invocations/qwen_image_denoise.py | 225 | def _maybe_clamp_ref_latent_size(cls, ref_latents: torch.Tensor) -> torch.Tensor: | CODE |
| LOW | invokeai/app/invocations/segment_anything.py | 84 | def validate_points_and_boxes_len(self): | CODE |
| LOW | invokeai/app/invocations/segment_anything.py | 170 | def _apply_polygon_refinement(self, masks: list[torch.Tensor]) -> list[torch.Tensor]: | CODE |
| LOW | invokeai/app/invocations/ip_adapter.py | 49 | def validate_ip_adapter_weight(cls, v: float) -> float: | CODE |
| LOW | invokeai/app/invocations/ip_adapter.py | 54 | def validate_begin_end_step_percent(self) -> Self: | CODE |
| LOW | invokeai/app/invocations/ip_adapter.py | 114 | def validate_ip_adapter_weight(cls, v: float) -> float: | CODE |
| LOW | invokeai/app/invocations/ip_adapter.py | 119 | def validate_begin_end_step_percent(self) -> Self: | CODE |
| LOW | invokeai/app/invocations/flux_denoise.py | 707 | def _prep_controlnet_extensions( | CODE |
| LOW | invokeai/app/invocations/flux_denoise.py | 806 | def _prep_structural_control_img_cond(self, context: InvocationContext) -> torch.Tensor | None: | CODE |
| LOW | invokeai/app/invocations/flux_denoise.py | 892 | def _normalize_ip_adapter_fields(self) -> list[IPAdapterField]: | CODE |
| LOW | invokeai/app/invocations/flux_denoise.py | 902 | def _prep_ip_adapter_image_prompt_clip_embeds( | CODE |
| LOW | invokeai/app/invocations/flux_denoise.py | 958 | def _prep_ip_adapter_extensions( | CODE |
| LOW | invokeai/app/invocations/flux_controlnet.py | 37 | def validate_begin_end_step_percent(self): | CODE |
| LOW | invokeai/app/invocations/flux_controlnet.py | 85 | def validate_begin_end_step_percent(self): | CODE |
| LOW | invokeai/app/invocations/facetools.py | 542 | def validate_comma_separated_ints(cls, v) -> str: | CODE |
| LOW | invokeai/app/invocations/math.py | 190 | def no_unrepresentable_results(cls, v: int, info: ValidationInfo): | CODE |
| 2257 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | invokeai/app/api/routers/model_manager.py | 364 | installed_models = ApiDependencies.invoker.services.model_manager.store.search_by_attr() | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 233 | configs = ApiDependencies.invoker.services.model_manager.store.search_by_attr( | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 252 | configs = ApiDependencies.invoker.services.model_manager.store.search_by_hash(hash) | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 276 | config = ApiDependencies.invoker.services.model_manager.store.get_model(key) | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 300 | config = ApiDependencies.invoker.services.model_manager.store.get_model(key) | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 322 | new_config = ApiDependencies.invoker.services.model_manager.store.replace_model(config.key, result.config) | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 446 | dropped = ApiDependencies.invoker.services.model_manager.load.ram_cache.drop_model(key) | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 1105 | ApiDependencies.invoker.services.model_manager.install.prune_jobs() | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 1262 | installed_models = ApiDependencies.invoker.services.model_manager.store.search_by_attr() | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 1309 | ApiDependencies.invoker.services.model_manager.load.ram_cache.make_room(1000 * 2**30) | CODE |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 957 | jobs: List[ModelInstallJob] = ApiDependencies.invoker.services.model_manager.install.list_jobs() | STRING |
| CRITICAL | invokeai/app/api/routers/model_manager.py | 977 | result: ModelInstallJob = ApiDependencies.invoker.services.model_manager.install.get_job_by_id(id) | STRING |
| CRITICAL | invokeai/app/api/routers/recall_parameters.py | 146 | models = ApiDependencies.invoker.services.model_manager.store.search_by_attr( | CODE |
| CRITICAL | invokeai/app/services/shared/invocation_context.py | 220 | graph_ = self._data.queue_item.session.graph.model_dump_json() | CODE |
| CRITICAL | …onents/RasterLayer/RasterLayerMenuItemsAdjustments.tsx | 16 | s.canvas.present.rasterLayers.entities.find((e: CanvasRasterLayerState) => e.id === entityIdentifier.id) | CODE |
| CRITICAL | …ures/controlLayers/konva/CanvasEntityRendererModule.ts | 126 | this.manager.background.konva.layer.zIndex(zIndex++); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 976 | this.manager.stage.konva.stage.on('pointerdown', this.onStagePointerDown); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 977 | this.manager.stage.konva.stage.on('pointermove', this.onStagePointerMove); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 978 | this.manager.stage.konva.stage.on('pointerup', this.onStagePointerUp); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 981 | this.manager.stage.konva.stage.on('pointermove', this.onBboxDragMove); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 982 | this.manager.stage.konva.stage.on('pointerup', this.onBboxDragEnd); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 985 | this.manager.stage.konva.stage.off('pointerdown', this.onStagePointerDown); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 986 | this.manager.stage.konva.stage.off('pointermove', this.onStagePointerMove); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 987 | this.manager.stage.konva.stage.off('pointerup', this.onStagePointerUp); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 988 | this.manager.stage.konva.stage.off('pointermove', this.onBboxDragMove); | CODE |
| CRITICAL⚡ | …res/controlLayers/konva/CanvasSegmentAnythingModule.ts | 989 | this.manager.stage.konva.stage.off('pointerup', this.onBboxDragEnd); | CODE |
| CRITICAL | …Layers/konva/CanvasTool/CanvasColorPickerToolModule.ts | 448 | this.manager.background.konva.layer.visible(false); | CODE |
| CRITICAL | …Layers/konva/CanvasTool/CanvasColorPickerToolModule.ts | 450 | this.manager.background.konva.layer.visible(true); | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityAdapterBase.ts | 404 | this.renderer.konva.compositing.group.zIndex(zIndex++); | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 583 | this.parent.renderer.konva.objectGroup.setAttrs({ | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 627 | this.parent.renderer.konva.objectGroup.setAttrs({ | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 951 | this.parent.renderer.konva.objectGroup.setAttrs(attrs); | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 952 | this.parent.bufferRenderer.konva.group.setAttrs(attrs); | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 972 | this.parent.renderer.konva.objectGroup.setAttrs(groupAttrs); | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 973 | this.parent.bufferRenderer.konva.group.setAttrs(groupAttrs); | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 1033 | this.parent.renderer.konva.objectGroup.setAttrs(groupAttrs); | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 1034 | this.parent.bufferRenderer.konva.group.setAttrs(groupAttrs); | CODE |
| CRITICAL | …olLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 1066 | const rect = this.parent.renderer.konva.objectGroup.getClientRect({ skipTransform: true }); | CODE |
| CRITICAL | …konva/CanvasEntity/CanvasEntityBufferObjectRenderer.ts | 92 | this.manager.tool.tools.rect.hasSuspendableSession() | CODE |
| CRITICAL | …ayers/konva/CanvasEntity/CanvasEntityObjectRenderer.ts | 335 | this.parent.bufferRenderer.konva.group.opacity(opacity); | CODE |
| CRITICAL | …vokeai/frontend/web/src/features/cropper/lib/editor.ts | 504 | this.konva.crop.interaction.rect.setAttrs({ ...this.cropBox }); | CODE |
| CRITICAL⚡ | …vokeai/frontend/web/src/features/cropper/lib/editor.ts | 518 | this.konva.crop.interaction.guides.left.points([x + verticalThird, y, x + verticalThird, y + height]); | CODE |
| CRITICAL⚡ | …vokeai/frontend/web/src/features/cropper/lib/editor.ts | 519 | 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.ts | 522 | this.konva.crop.interaction.guides.top.points([x, y + horizontalThird, x + width, y + horizontalThird]); | CODE |
| CRITICAL⚡ | …vokeai/frontend/web/src/features/cropper/lib/editor.ts | 523 | 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.ts | 638 | this.konva.crop.overlay.full.setAttrs({ | CODE |
| CRITICAL | …vokeai/frontend/web/src/features/cropper/lib/editor.ts | 644 | this.konva.crop.overlay.clear.setAttrs({ ...this.cropBox }); | CODE |
| CRITICAL | …vokeai/frontend/web/src/features/cropper/lib/editor.ts | 1029 | if (this.konva.crop.interaction.rect.isDragging()) { | CODE |
| CRITICAL | …vokeai/frontend/web/src/features/cropper/lib/editor.ts | 1030 | this.konva.crop.interaction.rect.stopDrag(); | CODE |
| CRITICAL | invokeai/backend/onnx/onnx_runtime.py | 38 | self.model.proto.graph.initializer.insert(self.indexes[key], new_node) | CODE |
| CRITICAL | tests/app/routers/test_utilities.py | 56 | mock_invoker.services.model_manager.store.get_model.assert_not_called() | CODE |
| CRITICAL | tests/app/routers/test_utilities.py | 133 | mock_invoker.services.model_manager.store.get_model.assert_not_called() | CODE |
| CRITICAL | tests/app/routers/test_utilities.py | 153 | mock_invoker.services.model_manager.store.get_model.assert_called_once() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | invokeai/app/util/user_management.py | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/util/user_management.py | 26 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/util/user_management.py | 162 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/util/user_management.py | 164 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/util/user_management.py | 286 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/util/user_management.py | 288 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/util/user_management.py | 392 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM | invokeai/app/util/user_management.py | 394 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM | invokeai/app/api/routers/auth.py | 275 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/api/routers/auth.py | 277 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/api/routers/auth.py | 320 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/app/api/routers/auth.py | 322 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ai/app/services/model_install/model_install_default.py | 989 | # -------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ai/app/services/model_install/model_install_default.py | 991 | # -------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ai/app/services/model_install/model_install_default.py | 1360 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …ai/app/services/model_install/model_install_default.py | 1362 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …ai/app/services/model_install/model_install_default.py | 1433 | # ------------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …ai/app/services/model_install/model_install_default.py | 1435 | # ------------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ai/app/services/model_install/model_install_default.py | 811 | # -------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ai/app/services/model_install/model_install_default.py | 813 | # -------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/backend/flux/controlnet/state_dict_utils.py | 188 | # ---------------- | COMMENT |
| MEDIUM | …ai/backend/flux/controlnet/instantx_controlnet_flux.py | 51 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | …ai/backend/flux/controlnet/instantx_controlnet_flux.py | 91 | # ----------------------------------------------------------- | COMMENT |
| MEDIUM | …ckend/patches/lora_conversions/anima_lora_constants.py | 12 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ckend/patches/lora_conversions/anima_lora_constants.py | 18 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | invokeai/backend/anima/anima_transformer.py | 30 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | invokeai/backend/anima/anima_transformer.py | 34 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | invokeai/backend/anima/anima_transformer.py | 197 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | invokeai/backend/anima/anima_transformer.py | 201 | # ============================================================================ | COMMENT |
| MEDIUM | invokeai/backend/anima/anima_transformer.py | 769 | # ============================================================================ | COMMENT |
| MEDIUM | invokeai/backend/anima/anima_transformer.py | 773 | # ============================================================================ | COMMENT |
| MEDIUM | invokeai/backend/anima/anima_transformer.py | 974 | # ============================================================================ | COMMENT |
| MEDIUM | invokeai/backend/anima/anima_transformer.py | 978 | # ============================================================================ | COMMENT |
| MEDIUM | invokeai/backend/anima/control_net_lllite.py | 57 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/backend/anima/control_net_lllite.py | 59 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/backend/anima/control_net_lllite.py | 121 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/backend/anima/control_net_lllite.py | 123 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/backend/anima/control_net_lllite.py | 219 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/backend/anima/control_net_lllite.py | 221 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/backend/anima/control_net_lllite.py | 347 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | invokeai/backend/anima/control_net_lllite.py | 349 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/backend/model_manager/load/model_cache/model_cache.py | 669 | # ------------------ | COMMENT |
| MEDIUM | …/backend/model_manager/load/model_cache/model_cache.py | 677 | # ------------------ | COMMENT |
| MEDIUM | …/backend/model_manager/load/model_cache/model_cache.py | 689 | # ------------------ | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_workflows_multiuser.py | 171 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_workflows_multiuser.py | 173 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_workflows_multiuser.py | 186 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_workflows_multiuser.py | 188 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_workflows_multiuser.py | 280 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_workflows_multiuser.py | 282 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/app/routers/test_workflows_multiuser.py | 514 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/app/routers/test_workflows_multiuser.py | 516 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/app/routers/test_workflows_multiuser.py | 633 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/app/routers/test_workflows_multiuser.py | 635 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_boards_multiuser.py | 106 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_boards_multiuser.py | 108 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_boards_multiuser.py | 147 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_boards_multiuser.py | 149 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_boards_multiuser.py | 213 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_boards_multiuser.py | 215 | # --------------------------------------------------------------------------- | COMMENT |
| 62 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/app/util/dynamicprompts.py | 1 | CODE | |
| LOW | invokeai/app/util/startup_utils.py | 66 | CODE | |
| LOW | invokeai/app/invocations/external_image_generation.py | 24 | CODE | |
| LOW | invokeai/app/invocations/baseinvocation.py | 3 | CODE | |
| LOW | invokeai/app/invocations/baseinvocation.py | 50 | CODE | |
| LOW | invokeai/app/invocations/model.py | 15 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 2 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 6 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 7 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 8 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 11 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 13 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 15 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 16 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 17 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 18 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 19 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 20 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 21 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 22 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 23 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 24 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 25 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 26 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 27 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 28 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 29 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 30 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 31 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 32 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 33 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 36 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 37 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 38 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 39 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 40 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 41 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 42 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 43 | CODE | |
| LOW | invokeai/app/services/invocation_services.py | 44 | CODE | |
| LOW | invokeai/app/services/app_settings/__init__.py | 3 | CODE | |
| LOW | invokeai/app/services/config/config_common.py | 11 | CODE | |
| LOW | invokeai/app/services/config/config_default.py | 4 | CODE | |
| LOW | invokeai/app/services/config/__init__.py | 3 | CODE | |
| LOW | invokeai/app/services/config/__init__.py | 4 | CODE | |
| LOW | invokeai/app/services/config/__init__.py | 4 | CODE | |
| LOW | …okeai/app/services/model_install/model_install_base.py | 17 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 3 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 4 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 4 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 4 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 4 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 4 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 4 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 4 | CODE | |
| LOW | invokeai/app/services/model_install/__init__.py | 13 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 78 | CODE | |
| LOW | invokeai/app/services/image_moves/__init__.py | 1 | CODE | |
| LOW | …pp/services/session_processor/workflow_call_runtime.py | 1 | CODE | |
| LOW | …/app/services/session_processor/workflow_call_batch.py | 1 | CODE | |
| 375 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/app/api_app.py | 123 | except Exception: | CODE |
| LOW | invokeai/app/util/ti_utils.py | 45 | except Exception: | CODE |
| MEDIUM⚡ | invokeai/app/util/user_management.py | 42 | print("Error: Email is required") | CODE |
| MEDIUM⚡ | invokeai/app/util/user_management.py | 52 | print("Error: Passwords do not match. Please try again.\n") | CODE |
| MEDIUM⚡ | invokeai/app/util/user_management.py | 57 | print(f"Error: {error_msg}\n") | CODE |
| MEDIUM | invokeai/app/util/user_management.py | 178 | print("Error: Email is required") | CODE |
| MEDIUM | invokeai/app/util/user_management.py | 327 | print(f"Error listing users: {e}") | CODE |
| MEDIUM | invokeai/app/util/user_management.py | 410 | print("Error: Email is required") | CODE |
| MEDIUM | invokeai/app/util/user_management.py | 448 | print("Error: Passwords do not match. Please try again.\n") | CODE |
| MEDIUM | invokeai/app/util/user_management.py | 453 | print(f"Error: {error_msg}\n") | CODE |
| LOW | invokeai/app/util/user_management.py | 84 | except Exception as e: | CODE |
| LOW | invokeai/app/util/user_management.py | 125 | except Exception as e: | CODE |
| LOW | invokeai/app/util/user_management.py | 210 | except Exception as e: | CODE |
| LOW | invokeai/app/util/user_management.py | 255 | except Exception as e: | CODE |
| LOW | invokeai/app/util/user_management.py | 326 | except Exception as e: | CODE |
| LOW | invokeai/app/util/user_management.py | 360 | except Exception as e: | CODE |
| LOW | invokeai/app/util/user_management.py | 484 | except Exception as e: | CODE |
| LOW | invokeai/app/util/user_management.py | 540 | except Exception as e: | CODE |
| LOW | invokeai/app/invocations/anima_denoise.py | 880 | except Exception as e: | CODE |
| LOW | invokeai/app/invocations/baseinvocation.py | 619 | except Exception as e: | CODE |
| LOW | invokeai/app/invocations/baseinvocation.py | 761 | except Exception: | CODE |
| LOW | invokeai/app/invocations/load_custom_nodes.py | 72 | except Exception: | CODE |
| LOW | invokeai/app/invocations/qwen_image_text_encoder.py | 180 | except Exception: | CODE |
| LOW | invokeai/app/api/sockets.py | 166 | except Exception: | CODE |
| LOW | invokeai/app/api/sockets.py | 214 | except Exception: | CODE |
| LOW | invokeai/app/api/sockets.py | 488 | except Exception as e: | CODE |
| LOW | invokeai/app/api/extract_metadata_from_image.py | 67 | except Exception as e: | CODE |
| LOW | invokeai/app/api/extract_metadata_from_image.py | 90 | except Exception: | CODE |
| LOW | invokeai/app/api/extract_metadata_from_image.py | 128 | except Exception as e: | CODE |
| LOW | invokeai/app/api/dependencies.py | 84 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/custom_nodes.py | 243 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/custom_nodes.py | 313 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/custom_nodes.py | 444 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/custom_nodes.py | 460 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/custom_nodes.py | 481 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/custom_nodes.py | 498 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/style_presets.py | 132 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/style_presets.py | 221 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/style_presets.py | 287 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/board_images.py | 24 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/board_images.py | 83 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/board_images.py | 119 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/board_images.py | 165 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/board_images.py | 173 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/board_images.py | 214 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/board_images.py | 222 | except Exception: | CODE |
| MEDIUM | invokeai/app/api/routers/model_manager.py | 1320 | def get_status(cls) -> HFTokenStatus: | CODE |
| LOW⚡ | invokeai/app/api/routers/model_manager.py | 374 | except Exception as e: | CODE |
| LOW | invokeai/app/api/routers/model_manager.py | 509 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/model_manager.py | 536 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/model_manager.py | 641 | except Exception as e: | CODE |
| LOW | invokeai/app/api/routers/model_manager.py | 702 | except Exception as e: | CODE |
| LOW | invokeai/app/api/routers/model_manager.py | 1182 | except Exception as e: | CODE |
| LOW | invokeai/app/api/routers/model_manager.py | 1327 | except Exception: | CODE |
| LOW | invokeai/app/api/routers/model_manager.py | 925 | except Exception as e: | STRING |
| LOW | invokeai/app/api/routers/client_state.py | 24 | except Exception as e: | CODE |
| LOW⚡ | invokeai/app/api/routers/client_state.py | 43 | except Exception as e: | CODE |
| LOW⚡ | invokeai/app/api/routers/client_state.py | 63 | except Exception as e: | CODE |
| LOW⚡ | invokeai/app/api/routers/client_state.py | 81 | except Exception as e: | CODE |
| LOW | invokeai/app/api/routers/client_state.py | 98 | except Exception as e: | CODE |
| 215 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | invokeai/app/invocations/anima_text_encoder.py | 0 | iterate over lora models to apply to the qwen3 text encoder. | STRING |
| HIGH | invokeai/app/invocations/z_image_text_encoder.py | 0 | iterate over lora models to apply to the qwen3 text encoder. | STRING |
| HIGH | invokeai/app/invocations/flux2_klein_text_encoder.py | 0 | iterate over lora models to apply to the qwen3 text encoder. | STRING |
| HIGH | invokeai/app/invocations/z_image_denoise.py | 0 | iterate over lora models to apply to the transformer. | STRING |
| HIGH | invokeai/app/invocations/anima_denoise.py | 0 | iterate over lora models to apply to the transformer. | STRING |
| HIGH | invokeai/app/invocations/qwen_image_denoise.py | 0 | iterate over lora models to apply to the transformer. | STRING |
| HIGH | …okeai/app/services/model_install/model_install_base.py | 0 | pause the indicated job, preserving partial downloads. | STRING |
| HIGH | …ai/app/services/model_install/model_install_default.py | 0 | pause the indicated job, preserving partial downloads. | STRING |
| HIGH | invokeai/app/services/download/download_default.py | 0 | pause the indicated job, preserving partial downloads. | STRING |
| HIGH | invokeai/app/services/model_images/model_images_base.py | 0 | low-level service responsible for storing and retrieving image files. | STRING |
| HIGH | …rvices/style_preset_images/style_preset_images_base.py | 0 | low-level service responsible for storing and retrieving image files. | STRING |
| HIGH | invokeai/app/services/image_files/image_files_base.py | 0 | low-level service responsible for storing and retrieving image files. | STRING |
| HIGH | …keai/app/services/model_images/model_images_default.py | 0 | checks if the required output folders exist and create them if they don't | STRING |
| HIGH | …rvices/workflow_thumbnails/workflow_thumbnails_disk.py | 0 | checks if the required output folders exist and create them if they don't | STRING |
| HIGH | …rvices/style_preset_images/style_preset_images_disk.py | 0 | checks if the required output folders exist and create them if they don't | STRING |
| HIGH | invokeai/app/services/image_files/image_files_disk.py | 0 | checks if the required output folders exist and create them if they don't | STRING |
| HIGH | …eai/app/services/session_queue/session_queue_sqlite.py | 0 | --sql insert into session_queue (queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, dest | STRING |
| HIGH | …p/services/session_queue/test_session_queue_dequeue.py | 0 | --sql insert into session_queue (queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, dest | STRING |
| HIGH | …app/services/session_queue/test_session_queue_clear.py | 0 | --sql insert into session_queue (queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, dest | STRING |
| HIGH | …eai/app/services/session_queue/session_queue_sqlite.py | 0 | --sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, des | STRING |
| HIGH | tests/app/routers/test_session_queue_workflow_call.py | 0 | --sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, des | STRING |
| HIGH | …ion_queue/test_session_queue_workflow_call_metadata.py | 0 | --sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, des | STRING |
| HIGH | invokeai/backend/image_util/lineart.py | 0 | get the url to download the model from the hugging face hub. | STRING |
| HIGH | invokeai/backend/image_util/lineart_anime.py | 0 | get the url to download the model from the hugging face hub. | STRING |
| HIGH | invokeai/backend/image_util/hed.py | 0 | get the url to download the model from the hugging face hub. | STRING |
| HIGH | invokeai/backend/image_util/pidi/__init__.py | 0 | get the url to download the model from the hugging face hub. | STRING |
| HIGH | invokeai/backend/image_util/normal_bae/__init__.py | 0 | get the url to download the model from the hugging face hub. | STRING |
| HIGH | invokeai/backend/image_util/mlsd/__init__.py | 0 | get the url to download the model from the hugging face hub. | STRING |
| HIGH | …d/quantization/scripts/load_flux_model_bnb_llm_int8.py | 0 | a script for quantizing a t5 text encoder model using the bitsandbytes llm.int8() quantization method. this script is pr | STRING |
| HIGH | …ackend/quantization/scripts/load_flux_model_bnb_nf4.py | 0 | a script for quantizing a t5 text encoder model using the bitsandbytes llm.int8() quantization method. this script is pr | STRING |
| HIGH | …d/quantization/scripts/quantize_t5_xxl_bnb_llm_int8.py | 0 | a script for quantizing a t5 text encoder model using the bitsandbytes llm.int8() quantization method. this script is pr | STRING |
| HIGH | invokeai/backend/model_manager/configs/t2i_adapter.py | 0 | raise `notamatch` if the model base does not match this config class. | STRING |
| HIGH | invokeai/backend/model_manager/configs/controlnet.py | 0 | raise `notamatch` if the model base does not match this config class. | STRING |
| HIGH | invokeai/backend/model_manager/configs/ip_adapter.py | 0 | raise `notamatch` if the model base does not match this config class. | STRING |
| HIGH | invokeai/backend/model_manager/configs/lora.py | 0 | raise `notamatch` if the model base does not match this config class. | STRING |
| HIGH | invokeai/backend/model_manager/configs/main.py | 0 | raise `notamatch` if the model base does not match this config class. | STRING |
| HIGH | invokeai/backend/model_manager/configs/vae.py | 0 | raise `notamatch` if the model base does not match this config class. | STRING |
| HIGH | tests/app/routers/test_auth.py | 0 | enable multiuser mode for auth tests. auth tests need multiuser mode enabled since the login/setup endpoints return 403 | STRING |
| HIGH | tests/app/services/auth/test_security.py | 0 | enable multiuser mode for auth tests. auth tests need multiuser mode enabled since the login/setup endpoints return 403 | STRING |
| HIGH | tests/app/services/auth/test_data_isolation.py | 0 | enable multiuser mode for auth tests. auth tests need multiuser mode enabled since the login/setup endpoints return 403 | STRING |
| HIGH | tests/app/routers/test_multiuser_authorization.py | 0 | --sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, des | STRING |
| HIGH | …es/session_queue/test_session_queue_status_sequence.py | 0 | --sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, des | STRING |
| HIGH | …ion_queue/test_session_queue_status_event_isolation.py | 0 | --sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, des | STRING |
| HIGH | …ession_queue/test_session_queue_status_user_scoping.py | 0 | --sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, des | STRING |
| HIGH | …ion_queue/test_session_queue_workflow_call_metadata.py | 0 | --sql insert into session_queue ( queue_id, session, session_id, batch_id, field_values, priority, workflow, origin, des | STRING |
| HIGH | …conversions/test_flux_control_lora_conversion_utils.py | 0 | test 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.py | 0 | test 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.py | 0 | test that is_state_dict_likely_in_flux_onetrainer_format() returns false for a state dict that is in the diffusers flux | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | invokeai/app/api_app.py | 74 | # Create the app | COMMENT |
| MEDIUM | invokeai/app/util/profiler.py | 13 | # Create a profiler | STRING |
| MEDIUM⚡ | invokeai/app/invocations/facetools.py | 197 | # Create a FaceMesh object for face landmark detection and mesh generation. | COMMENT |
| MEDIUM | invokeai/app/invocations/facetools.py | 597 | # Create an RGBA image with transparency | COMMENT |
| MEDIUM | invokeai/app/invocations/facetools.py | 678 | # Create an RGBA image with transparency | COMMENT |
| MEDIUM | invokeai/app/invocations/create_gradient_mask.py | 102 | # Create a circular distance kernel that fades from center outward | COMMENT |
| MEDIUM | invokeai/app/invocations/create_gradient_mask.py | 112 | # Create a Gaussian kernel | COMMENT |
| MEDIUM | …p/invocations/tiled_multi_diffusion_denoise_latents.py | 42 | # Create a shallow copy of the control_data object. | COMMENT |
| MEDIUM | invokeai/app/invocations/image.py | 215 | # Create a temporary image to paste the image with transparency | COMMENT |
| MEDIUM | invokeai/app/invocations/image.py | 1271 | # Create a mask based on the threshold and the distance calculated above | COMMENT |
| MEDIUM⚡ | invokeai/app/invocations/image.py | 1357 | # Create a mask for the black region (1 where black, 0 otherwise) | COMMENT |
| MEDIUM⚡ | invokeai/app/invocations/image.py | 1363 | # Create a distance transform of the inverted mask | COMMENT |
| MEDIUM | invokeai/app/invocations/image.py | 1512 | # Create a noisy version of the input image | COMMENT |
| MEDIUM | invokeai/app/services/config/config_default.py | 637 | # Create the example config file, with some extra example values provided | COMMENT |
| MEDIUM | …vices/shared/sqlite_migrator/sqlite_migrator_common.py | 54 | # Define the migration callback class | STRING |
| MEDIUM | …vices/shared/sqlite_migrator/sqlite_migrator_common.py | 74 | # Define the migration builder function. This function creates an instance of the migration callback | COMMENT |
| MEDIUM | …ices/board_image_records/board_image_records_sqlite.py | 110 | # Create the correct length of placeholders | STRING |
| MEDIUM | …ices/board_image_records/board_image_records_sqlite.py | 158 | # Create the correct length of placeholders | STRING |
| MEDIUM | …ices/board_image_records/board_image_records_sqlite.py | 177 | # Create the correct length of placeholders | STRING |
| MEDIUM | …eai/app/services/image_records/image_records_sqlite.py | 183 | # Create the correct length of placeholders | STRING |
| MEDIUM | invokeai/backend/llava_onevision_pipeline.py | 21 | # Define a chat history and use `apply_chat_template` to get correctly formatted prompt. | COMMENT |
| MEDIUM | invokeai/backend/image_util/controlnet_processor.py | 133 | # Create a minimal context to run the invocation | COMMENT |
| MEDIUM | invokeai/backend/image_util/imwatermark/vendor.py | 1 | # This file is vendored from https://github.com/ShieldMnt/invisible-watermark | COMMENT |
| MEDIUM | invokeai/backend/image_util/infill_methods/tile.py | 108 | # Create the pool of tiles that we will use to infill | COMMENT |
| MEDIUM | invokeai/backend/image_util/infill_methods/tile.py | 111 | # Create an image from the tiles, same size as the original | COMMENT |
| MEDIUM | …backend/image_util/segment_anything/mask_refinement.py | 1 | # This file contains utilities for Grounded-SAM mask refinement based on: | COMMENT |
| MEDIUM | …backend/image_util/segment_anything/mask_refinement.py | 41 | # Create an empty mask. | COMMENT |
| MEDIUM | invokeai/backend/flux/custom_block_processor.py | 24 | """This function is a direct copy of DoubleStreamBlock.forward(), but it returns some of the intermediate | STRING |
| MEDIUM | invokeai/backend/flux/custom_block_processor.py | 109 | """This function is a direct copy of SingleStreamBlock.forward().""" | STRING |
| MEDIUM | …nd/flux/ip_adapter/ip_double_stream_block_processor.py | 1 | # This file is based on: | COMMENT |
| MEDIUM | …s/lora_conversions/flux_xlabs_lora_conversion_utils.py | 77 | # Create the InvokeAI-style layer key | COMMENT |
| MEDIUM | invokeai/backend/quantization/bnb_llm_int8.py | 6 | # This file contains utils for working with models that use bitsandbytes LLM.int8() quantization. | COMMENT |
| MEDIUM | invokeai/backend/quantization/bnb_nf4.py | 4 | # This file contains utils for working with models that use bitsandbytes NF4 quantization. | COMMENT |
| MEDIUM | invokeai/backend/quantization/bnb_nf4.py | 29 | """This method is based on the logic in the bitsandbytes serialization unit tests for `Linear4bit`: | STRING |
| MEDIUM | …end/stable_diffusion/diffusion/regional_prompt_data.py | 92 | # Create an empty attention mask with the correct shape. | COMMENT |
| MEDIUM | …table_diffusion/diffusion/shared_invokeai_diffusion.py | 327 | # 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.py | 103 | # Create an empty AnimaTransformer with Anima's default architecture parameters | COMMENT |
| MEDIUM | …ai/backend/model_manager/load/model_loaders/z_image.py | 232 | # Create an empty model with the default Z-Image config | COMMENT |
| MEDIUM | …ai/backend/model_manager/load/model_loaders/z_image.py | 353 | # Create an empty model with the default Z-Image config | COMMENT |
| MEDIUM | …ai/backend/model_manager/load/model_loaders/z_image.py | 502 | # Create an empty control adapter | COMMENT |
| MEDIUM | tests/dangerously_run_function_in_subprocess.py | 30 | # Create a script that calls the function | COMMENT |
| MEDIUM | tests/legacy_tests.sh | 3 | # This file contains bunch of compatibility tests that ensures | COMMENT |
| MEDIUM | tests/app/test_extract_metadata_from_image.py | 32 | # Create a mock image with valid metadata | COMMENT |
| MEDIUM | tests/app/routers/test_auth.py | 80 | # Create a test user | COMMENT |
| MEDIUM | tests/app/routers/test_session_queue_sanitization.py | 15 | # Define a minimal test invocation for the test | COMMENT |
| MEDIUM | tests/app/routers/test_client_state_multiuser.py | 79 | # Create a regular user | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_multiuser_authorization.py | 451 | # Create a shared board and add the image to it | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_multiuser_authorization.py | 652 | # Create a board owned by user1 and add the image to it | COMMENT |
| MEDIUM⚡ | tests/app/routers/test_multiuser_authorization.py | 1731 | # Create a token for a user_id that was never created in the user service | COMMENT |
| MEDIUM | tests/app/routers/test_multiuser_authorization.py | 1710 | # Create the user in the database so the active-user check passes | COMMENT |
| MEDIUM | tests/app/routers/test_multiuser_authorization.py | 1750 | # Create a real user, then deactivate them | COMMENT |
| MEDIUM | tests/app/routers/test_multiuser_authorization.py | 2256 | # Create a fake installed pack directory | COMMENT |
| MEDIUM | tests/app/routers/test_custom_nodes.py | 347 | # Create a mock invocation class | COMMENT |
| MEDIUM | tests/app/util/test_step_callback.py | 18 | # Create a small 1x16x4x4 latent tensor (batch=1, channels=16, 4x4 spatial) | COMMENT |
| MEDIUM⚡ | tests/app/api/test_sliding_window_token.py | 98 | # Create a remember-me token with only 1 hour remaining (less than 24h) | COMMENT |
| MEDIUM⚡ | tests/app/services/auth/test_security.py | 252 | # Create a regular user | COMMENT |
| MEDIUM | tests/app/services/auth/test_security.py | 82 | # Create a legitimate user first | COMMENT |
| MEDIUM | tests/app/services/auth/test_security.py | 115 | # Create a legitimate user | COMMENT |
| MEDIUM | tests/app/services/auth/test_security.py | 142 | # Create a test user | COMMENT |
| MEDIUM | tests/app/services/auth/test_security.py | 191 | # Create a regular user and login | COMMENT |
| 12 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/app/api_app.py | 94 | CODE | |
| LOW | invokeai/app/util/dynamicprompts.py | 17 | CODE | |
| LOW | invokeai/app/util/step_callback.py | 230 | CODE | |
| LOW | invokeai/app/util/user_management.py | 397 | CODE | |
| LOW | invokeai/app/invocations/metadata_linked.py | 916 | CODE | |
| LOW | invokeai/app/invocations/metadata_linked.py | 993 | CODE | |
| LOW | invokeai/app/invocations/compel.py | 460 | CODE | |
| LOW | invokeai/app/invocations/z_image_denoise.py | 275 | CODE | |
| LOW | invokeai/app/invocations/z_image_latents_to_image.py | 45 | CODE | |
| LOW | invokeai/app/invocations/anima_denoise.py | 512 | CODE | |
| LOW | invokeai/app/invocations/flux2_denoise.py | 147 | CODE | |
| LOW | invokeai/app/invocations/anima_latents_to_image.py | 92 | CODE | |
| LOW | invokeai/app/invocations/composition-nodes.py | 85 | CODE | |
| LOW | invokeai/app/invocations/composition-nodes.py | 449 | CODE | |
| LOW | invokeai/app/invocations/composition-nodes.py | 679 | CODE | |
| LOW | invokeai/app/invocations/composition-nodes.py | 1312 | CODE | |
| LOW | invokeai/app/invocations/composition-nodes.py | 1422 | CODE | |
| LOW | invokeai/app/invocations/composition-nodes.py | 1475 | CODE | |
| LOW | invokeai/app/invocations/composition-nodes.py | 1507 | CODE | |
| LOW | invokeai/app/invocations/baseinvocation.py | 488 | CODE | |
| LOW | invokeai/app/invocations/baseinvocation.py | 210 | CODE | |
| LOW | invokeai/app/invocations/ip_adapter.py | 123 | CODE | |
| LOW | invokeai/app/invocations/flux_denoise.py | 707 | CODE | |
| LOW | invokeai/app/invocations/anima_image_to_latents.py | 59 | CODE | |
| LOW | invokeai/app/invocations/facetools.py | 356 | CODE | |
| LOW | invokeai/app/invocations/spandrel_image_to_image.py | 200 | CODE | |
| LOW | invokeai/app/invocations/math.py | 199 | CODE | |
| LOW | invokeai/app/invocations/math.py | 273 | CODE | |
| LOW | invokeai/app/invocations/create_gradient_mask.py | 80 | CODE | |
| LOW | invokeai/app/invocations/strings.py | 31 | CODE | |
| LOW | invokeai/app/invocations/z_image_image_to_latents.py | 44 | CODE | |
| LOW | invokeai/app/api/sockets.py | 128 | CODE | |
| LOW | invokeai/app/api/sockets.py | 292 | CODE | |
| LOW | invokeai/app/api/routers/board_images.py | 186 | CODE | |
| LOW | invokeai/app/api/routers/model_manager.py | 1212 | CODE | |
| LOW | invokeai/app/api/routers/model_manager.py | 1261 | CODE | |
| LOW | invokeai/app/api/routers/recall_parameters.py | 213 | CODE | |
| LOW | invokeai/app/api/routers/recall_parameters.py | 269 | CODE | |
| LOW | invokeai/app/api/routers/recall_parameters.py | 348 | CODE | |
| LOW | invokeai/app/api/routers/session_queue.py | 179 | CODE | |
| LOW | invokeai/app/api/routers/session_queue.py | 328 | CODE | |
| LOW | invokeai/app/services/config/config_default.py | 434 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 203 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 421 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 470 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 614 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 782 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 852 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 1207 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 1279 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 1378 | CODE | |
| LOW | …ai/app/services/model_install/model_install_default.py | 1412 | CODE | |
| LOW | …vokeai/app/services/image_moves/image_moves_default.py | 465 | CODE | |
| LOW | …pp/services/session_processor/workflow_call_runtime.py | 273 | CODE | |
| LOW | …ervices/session_processor/session_processor_default.py | 437 | CODE | |
| LOW | …/app/services/session_processor/workflow_call_batch.py | 456 | CODE | |
| LOW | invokeai/app/services/shared/graph.py | 1028 | CODE | |
| LOW | invokeai/app/services/shared/graph.py | 795 | CODE | |
| LOW | …eai/app/services/shared/workflow_call_compatibility.py | 147 | CODE | |
| LOW | invokeai/app/services/shared/workflow_graph_builder.py | 52 | CODE | |
| 108 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | invokeai/app/util/controlnet_utils.py | 378 | Pre-process images for ControlNets or T2I-Adapters. Args: image (Image): The PIL image to pre-process. | STRING |
| HIGH | invokeai/app/invocations/metadata_linked.py | 137 | Combines any number of items or lists into a single list, ensuring consistency in type. Args: item_cls: | STRING |
| HIGH | invokeai/app/api/auth_dependencies.py | 21 | Get current authenticated user from Bearer token. Note: This function accesses ApiDependencies.invoker.services.use | STRING |
| HIGH | invokeai/app/api/auth_dependencies.py | 70 | Get current authenticated user from Bearer token, or return a default system user if not authenticated. This depend | STRING |
| HIGH | invokeai/app/api/auth_dependencies.py | 122 | Require admin role for the current user. Args: current_user: The current authenticated user's token data | STRING |
| HIGH | invokeai/app/api/auth_dependencies.py | 141 | Require admin role for the current user, or return default system admin in single-user mode. This dependency is use | STRING |
| HIGH | invokeai/app/api/routers/auth.py | 124 | Authenticate user and return access token. Args: request: Login credentials (email and password) Retur | STRING |
| HIGH | invokeai/app/api/routers/auth.py | 203 | Get current authenticated user's information. Args: current_user: The authenticated user's token data | STRING |
| HIGH | invokeai/app/api/routers/auth.py | 227 | Set up initial administrator account. This endpoint can only be called once, when no admin user exists. It creates | STRING |
| HIGH | invokeai/app/api/routers/auth.py | 367 | Create a new user. Requires admin privileges. Args: request: New user details Returns: The cre | STRING |
| HIGH | invokeai/app/api/routers/auth.py | 397 | Get a user by ID. Requires admin privileges. Args: user_id: The user ID Returns: The user | STRING |
| HIGH | invokeai/app/api/routers/auth.py | 421 | Update a user. Requires admin privileges. Args: user_id: The user ID request: Fields to update | STRING |
| HIGH | invokeai/app/api/routers/auth.py | 488 | Update the current user's own profile. To change the password, both ``current_password`` and ``new_password`` must | STRING |
| HIGH | invokeai/app/api/routers/recall_parameters.py | 419 | Update recallable parameters that can be recalled on the frontend. This endpoint allows updating parameters su | STRING |
| HIGH | invokeai/app/services/users/users_common.py | 10 | Validate email address, allowing special-use domains like .local for testing. This validator first tries standard e | STRING |
| HIGH | invokeai/app/services/users/users_base.py | 13 | Create a new user. Args: user_data: User creation data strict_password_checking: If Tru | STRING |
| HIGH | invokeai/app/services/users/users_base.py | 54 | Update user. Args: user_id: The user ID changes: Fields to update strict_pa | STRING |
| HIGH | invokeai/app/services/users/users_base.py | 106 | Create an admin user (for initial setup). Args: user_data: User creation data strict_pa | STRING |
| HIGH | …es/style_preset_records/style_preset_records_common.py | 91 | Parses style presets from a file. The file must be a CSV or JSON file. If CSV, the file must have the following col | STRING |
| HIGH | invokeai/backend/image_util/util.py | 164 | Apply non-maximum suppression to an image. If both threshold and sigma are provided, the image will blurred be | STRING |
| HIGH | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 464 | Decode block definition string Gets a list of block arg (dicts) through a string notation of arguments. E.g. i | STRING |
| HIGH | …patches/lora_conversions/sdxl_lora_conversion_utils.py | 8 | Convert the keys of an SDXL LoRA state_dict to diffusers format. The input state_dict can be in either Stability AI | STRING |
| HIGH | …/backend/model_manager/configs/identification_utils.py | 24 | Load the diffusers/transformers model config file and return it as a dictionary. The config file is expected to be i | STRING |
| HIGH | …/backend/model_manager/configs/identification_utils.py | 58 | Load the diffusers/transformers model config file and return the class name. Args: config_path: The path to | STRING |
| HIGH | invokeai/backend/model_manager/configs/factory.py | 483 | Classify a model on disk and return the best matching model config. Args: mod: The model on disk to | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/app/invocations/flux2_klein_model_loader.py | 117 | # Check if main model is Diffusers format (can extract VAE directly) | COMMENT |
| LOW | invokeai/app/invocations/flux2_klein_model_loader.py | 196 | # Check if the config has a variant field | COMMENT |
| LOW | invokeai/app/invocations/flux2_denoise.py | 402 | # Check if we're doing inpainting (have a mask or a clipped schedule) | COMMENT |
| LOW⚡ | invokeai/app/invocations/facetools.py | 192 | # Check if the input image has four channels (RGBA). | COMMENT |
| LOW⚡ | invokeai/app/invocations/facetools.py | 207 | # Check if any face is detected. | COMMENT |
| LOW | invokeai/app/api/sockets.py | 229 | # Check if we have user info for this socket. In multiuser mode _handle_connect | COMMENT |
| LOW | invokeai/app/api/sockets.py | 248 | # Add socket to the queue room | COMMENT |
| LOW | invokeai/app/api/routers/auth.py | 138 | # Check if multiuser is enabled | COMMENT |
| LOW | invokeai/app/api/routers/auth.py | 244 | # Check if multiuser is enabled | COMMENT |
| LOW | invokeai/app/api/routers/auth.py | 253 | # Check if any admin exists | COMMENT |
| LOW | invokeai/app/api/routers/custom_nodes.py | 414 | # Check if this looks like a workflow (must have nodes and edges) | COMMENT |
| LOW⚡ | invokeai/app/api/routers/model_manager.py | 368 | # Check if the model is installed by comparing paths, appending to the scan result. | COMMENT |
| LOW | invokeai/app/api/routers/model_manager.py | 1218 | # Check if source matches exactly | COMMENT |
| LOW | invokeai/app/api/routers/model_manager.py | 1221 | # Check if name (or previous names), base and type match | COMMENT |
| LOW | invokeai/app/services/shared/graph.py | 1037 | # Check if any of the types in the Union is a List | COMMENT |
| LOW | invokeai/app/services/users/users_common.py | 35 | # Check if the error is specifically about special-use/reserved domains or localhost | COMMENT |
| LOW | invokeai/app/services/users/users_default.py | 34 | # Check if email already exists | COMMENT |
| LOW | invokeai/app/services/users/users_default.py | 114 | # Check if user exists | COMMENT |
| LOW | …pp/services/orphaned_models/orphaned_models_service.py | 79 | # Check if disk_file is under model_dir | COMMENT |
| LOW | invokeai/backend/image_util/infill_methods/tile.py | 26 | # Check if the image has an alpha channel and the tile is completely opaque | COMMENT |
| LOW | …ra_conversions/flux_diffusers_lora_conversion_utils.py | 29 | # Check if keys use transformer prefix | COMMENT |
| LOW | …ra_conversions/flux_diffusers_lora_conversion_utils.py | 38 | # Check if keys use base_model.model prefix | COMMENT |
| LOW | …ra_conversions/flux_diffusers_lora_conversion_utils.py | 105 | # Check if any key starts with "base_model.model." prefix | COMMENT |
| LOW | …s/lora_conversions/qwen_image_lora_conversion_utils.py | 56 | # Check if any key matches the Kohya pattern | COMMENT |
| LOW | …ora_conversions/flux_bfl_peft_lora_conversion_utils.py | 442 | # Check if any layer keys are in BFL format (contain double_blocks or single_blocks) | COMMENT |
| LOW | invokeai/backend/flux2/denoise.py | 98 | # Check if scheduler supports sigmas parameter using inspect.signature | COMMENT |
| LOW | …end/z_image/extensions/regional_prompting_extension.py | 89 | # Check if any regional masks exist | COMMENT |
| LOW | invokeai/backend/model_manager/util/select_hf_files.py | 171 | # Check if at least one of the files has the explicit fp16 variant. | COMMENT |
| LOW | invokeai/backend/model_manager/load/load_default.py | 112 | # Check if this is a text encoder submodel of a main model with cpu_only setting | COMMENT |
| LOW | invokeai/backend/model_manager/load/load_default.py | 119 | # 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.py | 288 | # Check if there are any unlocked models that can be cleared | COMMENT |
| LOW | …/backend/model_manager/load/model_cache/model_cache.py | 441 | # Check if the model's specific compute_device is CPU, not just the cache's default execution_device | COMMENT |
| LOW | …ai/backend/model_manager/load/model_loaders/z_image.py | 224 | # Check if the state dict is in original format (not diffusers format) | COMMENT |
| LOW | …ai/backend/model_manager/load/model_loaders/z_image.py | 398 | # 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.py | 856 | # 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.py | 973 | # Check if lm_head.weight is still a meta tensor (wasn't in GGUF state dict) | COMMENT |
| LOW | …okeai/backend/model_manager/load/model_loaders/flux.py | 577 | # Check if this is a Klein model without guidance (guidance_embeds=False in config) | COMMENT |
| LOW | …okeai/backend/model_manager/load/model_loaders/flux.py | 642 | # Check if keys have ComfyUI-style prefix and strip if needed | COMMENT |
| LOW | …okeai/backend/model_manager/load/model_loaders/flux.py | 842 | # Check if keys have ComfyUI-style prefix and strip if needed | COMMENT |
| LOW | invokeai/backend/model_manager/configs/factory.py | 425 | # Check if it has config files at root (diffusers/transformers marker) | COMMENT |
| LOW | scripts/remove_orphaned_models.py | 288 | # Check if this file is under any registered model directory | COMMENT |
| LOW | scripts/remove_orphaned_models.py | 292 | # Check if disk_file is under model_dir | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/app/invocations/__init__.py | 5 | __all__ = [f.stem for f in python_files] # type: ignore | CODE |
| LOW | invokeai/app/api/auth_dependencies.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | invokeai/app/api/routers/utilities.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | invokeai/app/services/app_settings/__init__.py | 5 | __all__ = ["AppSettingsService"] | CODE |
| LOW | invokeai/app/services/config/config_default.py | 263 | def update_config(self, config: dict[str, Any] | InvokeAIAppConfig, clobber: bool = True) -> None: | CODE |
| LOW | invokeai/app/services/config/__init__.py | 6 | __all__ = ["InvokeAIAppConfig", "get_config", "PagingArgumentParser"] | CODE |
| LOW | invokeai/app/services/auth/token_service.py | 27 | def set_jwt_secret(secret: str) -> None: | CODE |
| LOW | invokeai/app/services/model_install/__init__.py | 15 | __all__ = [ | CODE |
| LOW | …eai/app/services/model_install/model_install_common.py | 206 | def set_error(self, e: Exception) -> None: | CODE |
| LOW | …ai/app/services/model_install/model_install_default.py | 975 | def _set_error(self, install_job: ModelInstallJob, excp: Exception) -> None: | CODE |
| LOW | invokeai/app/services/image_moves/__init__.py | 3 | __all__ = ["ImageMoveService"] | CODE |
| LOW⚡ | …vokeai/app/services/image_moves/image_moves_default.py | 98 | def set_session_queue(self, session_queue) -> None: | CODE |
| LOW | …vokeai/app/services/image_moves/image_moves_default.py | 682 | def _set_job_state(self, job_id: int, state: MoveJobState) -> None: | CODE |
| LOW⚡ | invokeai/app/services/shared/graph.py | 170 | def set_state(self, exec_node_id: str, state: PreparedExecState) -> None: | CODE |
| LOW⚡ | invokeai/app/services/shared/graph.py | 177 | def set_iteration_path(self, exec_node_id: str, iteration_path: tuple[int, ...]) -> None: | CODE |
| LOW⚡ | invokeai/app/services/shared/graph.py | 2021 | def _set_prepared_exec_state(self, exec_node_id: str, state: PreparedExecState) -> None: | CODE |
| LOW⚡ | invokeai/app/services/shared/graph.py | 2039 | def set_ready_order(self, order: Iterable[Type[BaseInvocation] | str]) -> None: | CODE |
| LOW⚡ | invokeai/app/services/shared/graph.py | 2271 | def set_waiting_workflow_call_child_item_ids(self, child_item_ids: list[int]) -> None: | CODE |
| LOW | invokeai/app/services/shared/graph.py | 1554 | def update_node(self, node_id: str, new_node: BaseInvocation) -> None: | CODE |
| LOW | invokeai/app/services/shared/graph.py | 2386 | def update_node(self, node_id: str, new_node: BaseInvocation) -> None: | CODE |
| LOW | invokeai/app/services/model_records/__init__.py | 14 | __all__ = [ | CODE |
| LOW | invokeai/app/services/model_load/__init__.py | 6 | __all__ = ["ModelLoadServiceBase", "ModelLoadService"] | CODE |
| LOW | …eai/app/services/session_queue/session_queue_sqlite.py | 129 | def _set_in_progress_to_canceled(self) -> None: | STRING |
| LOW | …app/services/workflow_records/workflow_records_base.py | 86 | def update_opened_at(self, workflow_id: str, user_id: Optional[str] = None) -> None: | CODE |
| LOW | …p/services/workflow_records/workflow_records_sqlite.py | 424 | def update_opened_at(self, workflow_id: str, user_id: Optional[str] = None) -> None: | STRING |
| LOW | invokeai/app/services/download/__init__.py | 12 | __all__ = [ | CODE |
| LOW | invokeai/app/services/model_manager/__init__.py | 6 | __all__ = [ | CODE |
| LOW | invokeai/app/services/external_generation/__init__.py | 14 | __all__ = [ | CODE |
| LOW | …app/services/external_generation/providers/__init__.py | 6 | __all__ = ["AlibabaCloudProvider", "GeminiProvider", "OpenAIProvider", "SeedreamProvider"] | CODE |
| LOW | invokeai/app/services/orphaned_models/__init__.py | 5 | __all__ = ["OrphanedModelsService", "OrphanedModelInfo"] | CODE |
| LOW | invokeai/invocation_api/__init__.py | 146 | __all__ = [ | CODE |
| LOW | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 11 | __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.py | 5 | __all__ = [ | CODE |
| LOW | …ts/submodules/efficientnet_repo/geffnet/mobilenetv3.py | 20 | __all__ = ['mobilenetv3_rw', 'mobilenetv3_large_075', 'mobilenetv3_large_100', 'mobilenetv3_large_minimal_100', | CODE |
| LOW | …bmodules/efficientnet_repo/geffnet/gen_efficientnet.py | 39 | __all__ = ['GenEfficientNet', 'mnasnet_050', 'mnasnet_075', 'mnasnet_100', 'mnasnet_b1', 'mnasnet_140', | CODE |
| LOW | …fficientnet_repo/geffnet/activations/activations_me.py | 17 | __all__ = ['swish_me', 'SwishMe', 'mish_me', 'MishMe', | CODE |
| LOW | …ficientnet_repo/geffnet/activations/activations_jit.py | 17 | __all__ = ['swish_jit', 'SwishJit', 'mish_jit', 'MishJit', | CODE |
| LOW | invokeai/backend/util/__init__.py | 8 | __all__ = [ | CODE |
| LOW | invokeai/backend/flux/dype/embed.py | 48 | def set_step_state(self, sigma: float, height: int, width: int) -> None: | CODE |
| LOW | invokeai/backend/flux/dype/__init__.py | 23 | __all__ = [ | CODE |
| LOW⚡ | invokeai/backend/anima/anima_transformer.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | invokeai/backend/anima/control_net_lllite.py | 493 | def set_cond_image(self, cond: torch.Tensor | None) -> None: | CODE |
| LOW | invokeai/backend/anima/control_net_lllite.py | 508 | def set_multiplier(self, multiplier: float) -> None: | CODE |
| LOW | invokeai/backend/rectified_flow/er_sde_scheduler.py | 193 | def set_begin_index(self, begin_index: int = 0) -> None: | CODE |
| LOW | invokeai/backend/z_image/__init__.py | 10 | __all__ = [ | CODE |
| LOW | …vokeai/backend/z_image/z_image_controlnet_extension.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | invokeai/backend/stable_diffusion/__init__.py | 11 | __all__ = [ | CODE |
| LOW | …vokeai/backend/stable_diffusion/schedulers/__init__.py | 3 | __all__ = ["SCHEDULER_MAP"] | CODE |
| LOW | invokeai/backend/model_manager/omi/__init__.py | 7 | __all__ = ["flux_dev_1_lora", "stable_diffusion_xl_1_lora", "convert_from_omi"] | CODE |
| LOW | …/backend/model_manager/util/lora_metadata_extractor.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | invokeai/backend/model_manager/load/__init__.py | 19 | __all__ = [ | CODE |
| LOW | invokeai/backend/model_manager/configs/factory.py | 137 | logger = logging.getLogger(__name__) | CODE |
| LOW | invokeai/backend/model_manager/metadata/__init__.py | 30 | __all__ = [ | CODE |
| LOW | …okeai/backend/model_manager/metadata/fetch/__init__.py | 16 | __all__ = ["ModelMetadataFetchBase", "HuggingFaceMetadataFetch"] | CODE |
| LOW | tests/app/routers/test_multiuser_authorization.py | 215 | def _set_board_visibility(client: TestClient, token: str, board_id: str, visibility: str) -> None: | CODE |
| LOW | tests/app/invocations/test_denoise_noise_inputs.py | 490 | def set_timesteps(self, num_inference_steps: int, device: str | torch.device, mu: float | None = None) -> None: | CODE |
| LOW⚡ | tests/app/services/workflow_call_test_utils.py | 1116 | def set_waiting_workflow_call_child_item_ids(self, child_item_ids: list[int]) -> None: | CODE |
| LOW⚡ | tests/app/services/workflow_call_test_utils.py | 1133 | def set_node_error(self, node_id: str, error: str) -> None: | CODE |
| LOW | tests/backend/flux/test_denoise.py | 37 | def update_step_state(self, embedder: object, sigma: float) -> None: | CODE |
| LOW | tests/backend/flux/test_denoise.py | 47 | def set_timesteps(self, sigmas: list[float], device: torch.device) -> None: | CODE |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/app/api_app.py | 144 | CODE | |
| LOW | invokeai/app/invocations/fields.py | 612 | CODE | |
| LOW | invokeai/app/invocations/fields.py | 819 | CODE | |
| LOW | invokeai/app/invocations/facetools.py | 516 | CODE | |
| LOW | invokeai/app/invocations/facetools.py | 620 | CODE | |
| LOW | invokeai/app/api/routers/images.py | 442 | CODE | |
| LOW | invokeai/app/api/routers/workflows.py | 168 | CODE | |
| LOW | invokeai/app/services/images/images_default.py | 37 | CODE | |
| LOW | invokeai/app/services/images/images_default.py | 229 | CODE | |
| LOW | invokeai/app/services/images/images_default.py | 345 | CODE | |
| LOW | invokeai/app/services/images/images_base.py | 46 | CODE | |
| LOW | invokeai/app/services/images/images_base.py | 118 | CODE | |
| LOW | invokeai/app/services/images/images_base.py | 156 | CODE | |
| LOW | invokeai/app/services/model_load/model_load_default.py | 107 | CODE | |
| LOW | …okeai/app/services/image_records/image_records_base.py | 43 | CODE | |
| LOW | …okeai/app/services/image_records/image_records_base.py | 113 | CODE | |
| LOW | …eai/app/services/image_records/image_records_sqlite.py | 141 | CODE | |
| LOW | …eai/app/services/image_records/image_records_sqlite.py | 414 | CODE | |
| LOW | invokeai/backend/llava_onevision_pipeline.py | 35 | CODE | |
| LOW | invokeai/backend/text_llm_pipeline.py | 56 | CODE | |
| LOW | invokeai/backend/image_util/lineart.py | 98 | CODE | |
| LOW | invokeai/backend/image_util/lineart.py | 228 | CODE | |
| LOW | invokeai/backend/image_util/lineart_anime.py | 274 | CODE | |
| LOW | invokeai/backend/image_util/hed.py | 217 | CODE | |
| LOW | invokeai/backend/image_util/basicsr/rrdbnet_arch.py | 125 | CODE | |
| LOW | …keai/backend/image_util/pbr_maps/architecture/block.py | 70 | CODE | |
| LOW | …keai/backend/image_util/pbr_maps/architecture/block.py | 350 | CODE | |
| LOW | …keai/backend/image_util/pbr_maps/architecture/block.py | 126 | CODE | |
| LOW | …keai/backend/image_util/pbr_maps/architecture/block.py | 143 | CODE | |
| LOW | …keai/backend/image_util/pbr_maps/architecture/block.py | 175 | CODE | |
| LOW | …keai/backend/image_util/pbr_maps/architecture/block.py | 219 | CODE | |
| LOW | …keai/backend/image_util/pbr_maps/architecture/block.py | 292 | CODE | |
| LOW | invokeai/backend/image_util/normal_bae/nets/baseline.py | 78 | CODE | |
| LOW | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 100 | CODE | |
| LOW | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 144 | CODE | |
| LOW | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 193 | CODE | |
| LOW | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 257 | CODE | |
| LOW | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 309 | CODE | |
| LOW | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 367 | CODE | |
| LOW | …ts/submodules/efficientnet_repo/geffnet/mobilenetv3.py | 59 | CODE | |
| LOW | …/submodules/efficientnet_repo/geffnet/conv2d_layers.py | 287 | CODE | |
| LOW | …bmodules/efficientnet_repo/geffnet/gen_efficientnet.py | 228 | CODE | |
| LOW | invokeai/backend/util/hotfixes.py | 108 | CODE | |
| LOW | invokeai/backend/util/hotfixes.py | 569 | CODE | |
| LOW | invokeai/backend/anima/anima_transformer.py | 565 | CODE | |
| LOW | invokeai/backend/rectified_flow/er_sde_scheduler.py | 114 | CODE | |
| LOW | invokeai/backend/ip_adapter/resampler.py | 81 | CODE | |
| LOW | invokeai/backend/z_image/z_image_control_transformer.py | 136 | CODE | |
| LOW | invokeai/backend/z_image/z_image_control_adapter.py | 84 | CODE | |
| LOW | …i/backend/model_manager/load/model_loaders/cogview4.py | 59 | CODE | |
| LOW | …/model_manager/load/model_loaders/generic_diffusers.py | 51 | CODE | |
| LOW | …d/model_manager/load/model_loaders/stable_diffusion.py | 94 | CODE | |
| LOW | …d/model_manager/load/model_loaders/stable_diffusion.py | 160 | CODE | |
| LOW | …backend/model_manager/load/model_loaders/qwen_image.py | 249 | CODE | |
| LOW | …ai/backend/model_manager/load/model_loaders/z_image.py | 167 | CODE | |
| LOW | …okeai/backend/model_manager/load/model_loaders/flux.py | 520 | CODE | |
| LOW | …okeai/backend/model_manager/load/model_loaders/flux.py | 597 | CODE | |
| LOW | invokeai/backend/model_manager/configs/lora.py | 90 | CODE | |
| LOW | …ion_queue/test_session_queue_workflow_call_metadata.py | 34 | CODE | |
| LOW | …external_generation/test_external_provider_adapters.py | 330 | CODE | |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | invokeai/app/invocations/z_image_latents_to_image.py | 64 | # FLUX VAE doesn't support seamless, so only apply for AutoencoderKL | COMMENT |
| MEDIUM | invokeai/app/invocations/denoise_latents.py | 896 | ### seamless | COMMENT |
| MEDIUM | invokeai/app/invocations/denoise_latents.py | 948 | # ext: freeu, seamless, ip adapter, lora | COMMENT |
| MEDIUM | invokeai/app/invocations/baseinvocation.py | 550 | # 2. ui_type was set in conjunction with any of the new ui_model_[base|type|variant|format] fields, which | COMMENT |
| LOW | invokeai/app/invocations/baseinvocation.py | 718 | # You'd be tempted to just add the type field and rebuild the model, like this: | COMMENT |
| MEDIUM | invokeai/app/invocations/model.py | 558 | """Applies the seamless transformation to the Model UNet and VAE.""" | STRING |
| LOW | invokeai/app/invocations/qwen_image_denoise.py | 484 | # For txt2img models: just use noisy patches | COMMENT |
| LOW⚡ | invokeai/app/invocations/image.py | 1347 | # If the fade size is 0, just return the mask as-is. | COMMENT |
| LOW | invokeai/app/services/config/config_default.py | 627 | # 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.py | 151 | # to do any handling here, and no error should be set - just pass and the cancellation will be handled | COMMENT |
| MEDIUM | …rc/features/nodes/util/graph/generation/addSeamless.ts | 26 | // Always write seamless metadata to ensure recalling all parameters will reset the seamless settings | COMMENT |
| MEDIUM | …b/src/features/nodes/util/graph/generation/addLoRAs.ts | 40 | // Use seamless as UNet input if it exists, otherwise use the model loader | COMMENT |
| MEDIUM | …features/nodes/util/graph/generation/buildSDXLGraph.ts | 159 | // We might get the VAE from the main model, custom VAE, or seamless node. | COMMENT |
| MEDIUM | …/features/nodes/util/graph/generation/buildSD1Graph.ts | 157 | // We might get the VAE from the main model, custom VAE, or seamless node. | COMMENT |
| MEDIUM | …c/features/nodes/util/graph/generation/addSDXLLoRAs.ts | 37 | // Use seamless as UNet input if it exists, otherwise use the model loader | COMMENT |
| MEDIUM | …ents/RasterLayer/RasterLayerCurvesAdjustmentsGraph.tsx | 137 | // Exact fractional coordinates for seamless coverage (no gaps as width grows) | COMMENT |
| MEDIUM | invokeai/backend/util/hotfixes.py | 784 | # this needed to make work seamless patch | STRING |
| LOW | invokeai/backend/flux/extensions/kontext_extension.py | 189 | # First image - just set canvas dimensions | COMMENT |
| LOW | invokeai/backend/quantization/bnb_llm_int8.py | 90 | # We could simply call the `super()._load_from_state_dict()` method here, but then we wouldn't be able to | COMMENT |
| LOW | invokeai/backend/quantization/bnb_nf4.py | 52 | # We could simply call the `super()._load_from_state_dict()` method here, but then we wouldn't be able to | COMMENT |
| LOW | invokeai/backend/model_manager/util/select_hf_files.py | 55 | # if the subfolder is a single file, then bypass the selection and just return it | COMMENT |
| LOW | scripts/build_wheel.sh | 17 | # we can't just call 'deactivate' because this function is not exported | COMMENT |
| LOW | .github/workflows/python-checks.yml | 38 | # uv requires a venv by default - but for this, we can simply use the system python | COMMENT |
| LOW | .github/workflows/typegen-checks.yml | 37 | # uv requires a venv by default - but for this, we can simply use the system python | COMMENT |
| LOW | .github/workflows/openapi-checks.yml | 37 | # uv requires a venv by default - but for this, we can simply use the system python | COMMENT |
| LOW | .github/workflows/uv-lock-checks.yml | 35 | # uv requires a venv by default - but for this, we can simply use the system python | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/app/invocations/denoise_latents.py | 741 | timesteps = timesteps[t_start_idx : t_start_idx + t_end_idx] | COMMENT |
| LOW | invokeai/app/invocations/anima_denoise.py | 641 | ) | COMMENT |
| LOW | invokeai/app/invocations/flux2_denoise.py | 361 | # - The transformer operates in BN-normalized space | COMMENT |
| LOW | invokeai/app/invocations/flux2_denoise.py | 401 | COMMENT | |
| LOW | invokeai/app/invocations/baseinvocation.py | 541 | COMMENT | |
| LOW | invokeai/app/invocations/image.py | 1361 | bg_mask = 1 - black_mask | COMMENT |
| LOW | invokeai/app/api/extract_metadata_from_image.py | 101 | stringified_graph: str | None = None | COMMENT |
| LOW | …eai/app/services/session_queue/session_queue_common.py | 481 | for batch_datum in batch_datum_list: | COMMENT |
| LOW | …eai/app/services/session_queue/session_queue_common.py | 501 | # {"node_path": "1", "field_name": "a", "value": 1}, | COMMENT |
| LOW | …eai/app/services/session_queue/session_queue_common.py | 521 | # | COMMENT |
| LOW | …eai/app/services/session_queue/session_queue_sqlite.py | 41 | from invokeai.app.services.shared.sqlite.sqlite_database import SqliteDatabase | COMMENT |
| LOW | invokeai/frontend/web/src/i18.d.ts | 1 | // TODO: Disabled for IDE performance issues with our translation JSON | COMMENT |
| LOW | …b/src/app/store/middleware/devtools/actionsDenylist.ts | 1 | /** | COMMENT |
| LOW | …nd/web/src/app/store/enhancers/reduxRemember/driver.ts | 21 | return url; | COMMENT |
| LOW | …nd/web/src/app/store/enhancers/reduxRemember/driver.ts | 41 | // whole slice, even if the final, _serialized_ slice value is unchanged. | COMMENT |
| LOW | …features/nodes/util/graph/generation/buildFLUXGraph.ts | 81 | if (isFLUXFill) { | COMMENT |
| LOW | …i/frontend/web/src/features/dnd/FullscreenDropzone.tsx | 21 | import { z } from 'zod'; | COMMENT |
| LOW | …rc/features/gallery/components/ImageViewer/context.tsx | 81 | } | COMMENT |
| LOW | …eb/src/services/events/workflowExecutionCoordinator.ts | 81 | } | COMMENT |
| LOW | …frontend/web/src/services/events/setEventListeners.tsx | 801 | }); | COMMENT |
| LOW | invokeai/backend/image_util/composition.py | 81 | # 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and | COMMENT |
| LOW | invokeai/backend/image_util/composition.py | 101 | # PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF | COMMENT |
| LOW | invokeai/backend/image_util/composition.py | 121 | # to be bound by the terms and conditions of this License Agreement. | COMMENT |
| LOW | …/submodules/efficientnet_repo/geffnet/conv2d_layers.py | 261 | out = conv2d_same( | COMMENT |
| LOW | invokeai/backend/util/vae_working_memory.py | 141 | w = latent_scale_factor_for_operation * image_tensor.shape[-1] | COMMENT |
| LOW | invokeai/backend/onnx/onnx_runtime.py | 121 | self.nodes = self._access_helper(self.proto.graph.node) # type: ignore | COMMENT |
| LOW | …ai/backend/flux/controlnet/instantx_controlnet_flux.py | 21 | @dataclass | COMMENT |
| LOW | …ackend/flux/extensions/regional_prompting_extension.py | 61 | # | COMMENT |
| LOW | …ackend/flux/extensions/regional_prompting_extension.py | 81 | # # 2. txt attends to corresponding regional img | COMMENT |
| LOW | …ackend/flux/extensions/regional_prompting_extension.py | 101 | # regional_attention_mask[t5_embedding_range.start : t5_embedding_range.end, txt_seq_len:] = fill_value | COMMENT |
| LOW | invokeai/backend/patches/layer_patcher.py | 101 | ) | COMMENT |
| LOW | …s/lora_conversions/flux_kohya_lora_conversion_utils.py | 21 | r"lora_unet_(\w+_blocks)_(\d+)_(img_attn|img_mlp|img_mod|txt_attn|txt_mlp|txt_mod|linear1|linear2|modulation)_?(.*)" | COMMENT |
| LOW | …ckend/patches/lora_conversions/anima_lora_constants.py | 1 | # Anima LoRA prefix constants | COMMENT |
| LOW | invokeai/backend/tiles/utils.py | 141 | # copy ia2 over ia1 while applying the seam mask | COMMENT |
| LOW | invokeai/backend/z_image/z_image_transformer_patch.py | 121 | COMMENT | |
| LOW | …i/backend/stable_diffusion/multi_diffusion_pipeline.py | 61 | # full noise. Investigate the history of why this got commented out. | COMMENT |
| LOW | invokeai/backend/stable_diffusion/denoise_context.py | 101 | COMMENT | |
| LOW | invokeai/backend/model_manager/load/load_default.py | 221 | # We use our own hook-based path for every nn.Module — including diffusers ModelMixin — | COMMENT |
| LOW | …/backend/model_manager/load/model_cache/model_cache.py | 641 | return int(self._max_ram_cache_size_gb * GB) | COMMENT |
| LOW | invokeai/backend/model_manager/configs/spandrel.py | 41 | @classmethod | COMMENT |
| LOW | invokeai/backend/model_manager/configs/main.py | 421 | COMMENT | |
| LOW | docker/docker-entrypoint.sh | 1 | #!/bin/bash | COMMENT |
| LOW | scripts/generate_profile_graphs.sh | 1 | #!/bin/bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | invokeai/app/invocations/image.py | 1614 | # Step 1: Load all images | COMMENT |
| LOW⚡ | invokeai/app/invocations/image.py | 1620 | # Step 2: Determine target resolution for the first image | COMMENT |
| LOW | invokeai/app/invocations/image.py | 1647 | # Step 3: Process and resize all images with consistent height | COMMENT |
| LOW | invokeai/app/invocations/image.py | 1671 | # Step 4: Concatenate images horizontally | COMMENT |
| LOW⚡ | …a_conversions/flux_onetrainer_lora_conversion_utils.py | 146 | # Step 1: Convert the Kohya-style keys with underscores to classic keys with periods. | COMMENT |
| LOW | …a_conversions/flux_onetrainer_lora_conversion_utils.py | 163 | # Step 2: Convert diffusers module names to the BFL module names. | COMMENT |
| LOW⚡ | …nversions/flux_onetrainer_bfl_lora_conversion_utils.py | 101 | # Step 1: Strip prefix and group by layer name. | COMMENT |
| LOW | …nversions/flux_onetrainer_bfl_lora_conversion_utils.py | 116 | # Step 2: Build LoRA layers, merging split QKV and linear1. | COMMENT |
| LOW⚡ | invokeai/backend/z_image/z_image_patchify_utils.py | 80 | # Step 1: Rearrange to put spatial dims together for proper patching | COMMENT |
| LOW⚡ | invokeai/backend/z_image/z_image_patchify_utils.py | 84 | # Step 2: Split H and W into tokens and patch sizes | COMMENT |
| LOW⚡ | invokeai/backend/z_image/z_image_patchify_utils.py | 88 | # Step 3: Rearrange to group patches and features | COMMENT |
| LOW⚡ | invokeai/backend/z_image/z_image_patchify_utils.py | 92 | # Step 4: For F > 1, we'd need to handle F similarly, but for F=1 this is simpler | COMMENT |
| LOW⚡ | scripts/check_classifiers.py | 9 | # Step 1: Get pyproject.toml path from args | COMMENT |
| LOW⚡ | scripts/check_classifiers.py | 19 | # Step 1: Download the official Trove classifier list | COMMENT |
| LOW⚡ | scripts/check_classifiers.py | 24 | # Step 2: Extract classifiers from pyproject.toml | COMMENT |
| LOW | scripts/check_classifiers.py | 36 | # Step 3: Check for invalid classifiers | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | invokeai/app/invocations/image.py | 1614 | # Step 1: Load all images | COMMENT |
| LOW⚡ | invokeai/app/invocations/image.py | 1620 | # Step 2: Determine target resolution for the first image | COMMENT |
| LOW | invokeai/app/invocations/image.py | 1647 | # Step 3: Process and resize all images with consistent height | COMMENT |
| LOW | invokeai/app/invocations/image.py | 1671 | # Step 4: Concatenate images horizontally | COMMENT |
| LOW⚡ | …a_conversions/flux_onetrainer_lora_conversion_utils.py | 146 | # Step 1: Convert the Kohya-style keys with underscores to classic keys with periods. | COMMENT |
| LOW | …a_conversions/flux_onetrainer_lora_conversion_utils.py | 163 | # Step 2: Convert diffusers module names to the BFL module names. | COMMENT |
| LOW⚡ | …nversions/flux_onetrainer_bfl_lora_conversion_utils.py | 101 | # Step 1: Strip prefix and group by layer name. | COMMENT |
| LOW | …nversions/flux_onetrainer_bfl_lora_conversion_utils.py | 116 | # Step 2: Build LoRA layers, merging split QKV and linear1. | COMMENT |
| LOW⚡ | invokeai/backend/z_image/z_image_patchify_utils.py | 80 | # Step 1: Rearrange to put spatial dims together for proper patching | COMMENT |
| LOW⚡ | invokeai/backend/z_image/z_image_patchify_utils.py | 84 | # Step 2: Split H and W into tokens and patch sizes | COMMENT |
| LOW⚡ | invokeai/backend/z_image/z_image_patchify_utils.py | 88 | # Step 3: Rearrange to group patches and features | COMMENT |
| LOW⚡ | invokeai/backend/z_image/z_image_patchify_utils.py | 92 | # Step 4: For F > 1, we'd need to handle F similarly, but for F=1 this is simpler | COMMENT |
| LOW⚡ | scripts/check_classifiers.py | 9 | # Step 1: Get pyproject.toml path from args | COMMENT |
| LOW⚡ | scripts/check_classifiers.py | 19 | # Step 1: Download the official Trove classifier list | COMMENT |
| LOW⚡ | scripts/check_classifiers.py | 24 | # Step 2: Extract classifiers from pyproject.toml | COMMENT |
| LOW | scripts/check_classifiers.py | 36 | # Step 3: Check for invalid classifiers | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | invokeai/frontend/web/public/locales/ru.json | 2036 | "emailPlaceholder": "admin@example.com", | CODE |
| LOW | invokeai/frontend/web/public/locales/ru.json | 2080 | "emailPlaceholder": "user@example.com", | CODE |
| LOW | invokeai/frontend/web/public/locales/en.json | 35 | "emailPlaceholder": "admin@example.com", | CODE |
| LOW | invokeai/frontend/web/public/locales/en.json | 79 | "emailPlaceholder": "user@example.com", | CODE |
| LOW | invokeai/frontend/web/public/locales/es.json | 901 | "emailPlaceholder": "admin@example.com", | CODE |
| LOW | invokeai/frontend/web/public/locales/es.json | 945 | "emailPlaceholder": "user@example.com", | CODE |
| LOW | tests/app/routers/test_auth.py | 63 | def setup_test_admin(mock_invoker: Invoker, email: str = "admin@example.com", password: str = "AdminPass123") -> str: | CODE |
| LOW⚡ | tests/app/routers/test_auth.py | 268 | "email": "admin@example.com", | CODE |
| LOW⚡ | tests/app/routers/test_auth.py | 277 | assert json_response["user"]["email"] == "admin@example.com" | CODE |
| LOW | tests/app/routers/test_app_info.py | 278 | lambda _: TokenData(user_id="user-1", email="user@example.com", is_admin=False), | CODE |
| LOW | tests/app/routers/test_app_info.py | 300 | lambda _: TokenData(user_id="user-1", email="user@example.com", is_admin=False), | CODE |
| LOW | tests/app/routers/test_app_info.py | 322 | lambda _: TokenData(user_id="user-1", email="user@example.com", is_admin=False), | CODE |
| LOW | tests/app/api/test_sliding_window_token.py | 48 | email="test@test.com", | CODE |
| LOW | tests/app/services/auth/test_security.py | 62 | def setup_test_admin(mock_invoker: Invoker, email: str = "admin@example.com", password: str = "AdminPass123") -> str: | CODE |
| LOW⚡ | tests/app/services/auth/test_data_isolation.py | 166 | email="admin@example.com", display_name="Admin", password="AdminPass123", is_admin=True | CODE |
| LOW⚡ | tests/app/services/auth/test_data_isolation.py | 172 | email="user@example.com", display_name="User", password="TestPass123", is_admin=False | CODE |
| LOW | tests/app/services/auth/test_data_isolation.py | 302 | email="admin@example.com", display_name="Admin", password="AdminPass123", is_admin=True | CODE |
| LOW⚡ | tests/app/services/auth/test_token_service.py | 64 | email="admin@example.com", | CODE |
| LOW⚡ | tests/app/services/auth/test_token_service.py | 273 | email="admin@example.com", | CODE |
| LOW | tests/app/services/auth/test_token_service.py | 187 | email="user@example.com", | CODE |
| LOW | tests/app/services/auth/test_token_service.py | 198 | email="admin@example.com", | CODE |
| LOW | tests/app/services/users/test_user_service.py | 220 | email="admin@example.com", | CODE |
| LOW⚡ | tests/app/services/users/test_user_service.py | 233 | email="admin@example.com", | CODE |
| LOW⚡ | tests/app/services/users/test_user_service.py | 241 | assert admin.email == "admin@example.com" | CODE |
| LOW⚡ | tests/app/services/users/test_user_service.py | 247 | email="admin@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | invokeai/frontend/install/import_images.py | 411 | VALUES ('{filename}', 'internal', 'general', {width}, {height}, null, null, '{metadata}', 0, '{modified_date_string}', ' | CODE |
| HIGH | …kend/model_manager/model_metadata/metadata_examples.py | 4 | {"_id":"6564b36f4eb2f55240230f48","id":"stabilityai/sdxl-turbo","modelId":"stabilityai/sdxl-turbo","author":"test_author | CODE |
| HIGH | …kend/model_manager/model_metadata/metadata_examples.py | 9 | {"_id":"6564b36f4eb2f55240230f48","id":"stabilityai/sdxl-turbo","modelId":"stabilityai/sdxl-turbo","author":"test_author | CODE |
| HIGH | …kend/model_manager/model_metadata/metadata_examples.py | 20 | {"id":242807,"modelId":215485,"name":"v1-128dim","createdAt":"2023-11-29T01:21:22.372Z","updatedAt":"2023-12-16T17:46:14 | CODE |
| HIGH | …kend/model_manager/model_metadata/metadata_examples.py | 26 | {"id":215485,"name":"SDXL Turbo-LoRA-Stable Diffusion XL faster than light","description":"<p>v1: 128 dim</p><p>v1-64dim | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …frontend/web/src/features/ui/layouts/navigation-api.ts | 185 | * @return True if the switch was successful, false otherwise | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | invokeai/backend/image_util/imwatermark/vendor.py | 258 | CODE |