Browse Source

fix bad crc on inference outputs

pull/269/head
JT 1 year ago
parent
commit
dd0b17bf88
  1. 1
      CHANGELOG.md
  2. 2
      StabilityMatrix.Avalonia/Helpers/PngDataHelper.cs

1
CHANGELOG.md

@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
- Better error reporting including outputs for git subprocess errors during package install / update
- Fixed `'accelerate' is not recognized as an internal or external command` error when starting training in kohya_ss
- Fixed some instances of `ModuleNotFoundError: No module named 'bitsandbytes.cuda_setup.paths'` error when using 8-bit optimizers in kohya_ss
- Fixed errors preventing Inference outputs from loading in the img2img tabs of other packages
## v2.6.1
### Changed

2
StabilityMatrix.Avalonia/Helpers/PngDataHelper.cs

@ -104,7 +104,7 @@ public static class PngDataHelper
var dataBytes = Encoding.UTF8.GetBytes(textData);
var textDataLength = BitConverter.GetBytes(dataBytes.Length).Reverse();
var textDataBytes = Text.Concat(dataBytes).ToArray();
var crc = BitConverter.GetBytes(Crc32Algorithm.Compute(textDataBytes));
var crc = BitConverter.GetBytes(Crc32Algorithm.Compute(textDataBytes)).Reverse();
return textDataLength.Concat(textDataBytes).Concat(crc).ToArray();
}

Loading…
Cancel
Save