Browse Source

Merge pull request #489 from ionite34/controlnet-fix

Fix error when ControlNet module image paths are not found, even if the module is disabled
pull/438/head
Ionite 10 months ago committed by GitHub
parent
commit
145a8da9f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 6
      StabilityMatrix.Avalonia/ViewModels/Inference/Modules/ControlNetModule.cs

4
CHANGELOG.md

@ -5,6 +5,10 @@ All notable changes to Stability Matrix will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
## v2.8.0-pre.5
### Fixed
- Fixed error when ControlNet module image paths are not found, even if the module is disabled
## v2.8.0-pre.4
### Added
- Added Recommended Models dialog after one-click installer

6
StabilityMatrix.Avalonia/ViewModels/Inference/Modules/ControlNetModule.cs

@ -24,7 +24,11 @@ public class ControlNetModule : ModuleBase
protected override IEnumerable<ImageSource> GetInputImages()
{
if (GetCard<ControlNetCardViewModel>().SelectImageCardViewModel.ImageSource is { } image)
if (
IsEnabled
&& GetCard<ControlNetCardViewModel>().SelectImageCardViewModel
is { ImageSource: { } image, IsImageFileNotFound: false }
)
{
yield return image;
}

Loading…
Cancel
Save