1#ifndef ACMXVK_DEEP_DREAM_MODEL_HPP
2#define ACMXVK_DEEP_DREAM_MODEL_HPP
12#include <opencv2/core/cuda.hpp>
13#include <opencv2/core/mat.hpp>
64 [[nodiscard]] static
Model load(std::string_view filename,
int cuda_device, std::string_view layer = {},
bool use_half =
false);
69 [[nodiscard]] GradientAscentResult
apply_gradient_ascent_cuda(
const cv::cuda::GpuMat &rgba, cv::cuda::GpuMat &output, cv::cuda::Stream &stream,
const GradientAscentOptions &options = {});
70 void print(std::ostream &output)
const;
std::size_t selected_channels() const
GradientAscentResult apply_gradient_ascent(cv::Mat &rgba, const GradientAscentOptions &options={})
static Model load(std::string_view filename, int cuda_device, std::string_view layer={}, bool use_half=false)
const ModelMetadata & metadata() const
std::unique_ptr< Impl > implementation
std::size_t selected_layer() const
void print(std::ostream &output) const
GradientAscentResult apply_gradient_ascent_cuda(const cv::cuda::GpuMat &rgba, cv::cuda::GpuMat &output, cv::cuda::Stream &stream, const GradientAscentOptions &options={})