mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-19 08:00:25 +00:00
* sd: sync to master-540-f16a110 * tae post-merge fixes * build fixes * restore image mask for non-inpainting models * sd: sync to master-551-99c1de3 * avoid nlohmann/json.hpp include diffs * Euler A now works on Flux * sd: sync to master-555-7397dda avi_writer.h got removed upstream, but I've simply kept the local copy for now. * sd: sync to master-558-8afbeb6 * sd: sync to master-560-e8323ca
21 lines
566 B
C++
21 lines
566 B
C++
#pragma once
|
|
|
|
#include <iosfwd>
|
|
#include <string>
|
|
|
|
enum class MetadataOutputFormat {
|
|
TEXT,
|
|
JSON,
|
|
};
|
|
|
|
struct MetadataReadOptions {
|
|
MetadataOutputFormat output_format = MetadataOutputFormat::TEXT;
|
|
bool include_raw = false;
|
|
bool brief = false;
|
|
bool include_structural = false;
|
|
};
|
|
|
|
bool print_image_metadata(const std::string& image_path,
|
|
const MetadataReadOptions& options,
|
|
std::ostream& out,
|
|
std::string& error);
|