ACMX 2.136.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
acmxvk::dream::Model Class Reference

#include <deep_dream_model.hpp>

Classes

struct  Impl

Public Member Functions

GradientAscentResult apply_gradient_ascent (cv::Mat &rgba, const GradientAscentOptions &options={})
GradientAscentResult apply_gradient_ascent_cuda (const cv::cuda::GpuMat &rgba, cv::cuda::GpuMat &output, cv::cuda::Stream &stream, const GradientAscentOptions &options={})
const ModelMetadatametadata () const
 Model (const Model &)=delete
 Model (Model &&) noexcept
Modeloperator= (const Model &)=delete
Modeloperator= (Model &&) noexcept
void print (std::ostream &output) const
std::size_t selected_channels () const
std::size_t selected_layer () const
 ~Model ()

Static Public Member Functions

static Model load (std::string_view filename, int cuda_device, std::string_view layer={}, bool use_half=false)

Private Member Functions

 Model (std::unique_ptr< Impl > implementation)

Private Attributes

std::unique_ptr< Implimplementation

Detailed Description

Definition at line 55 of file deep_dream_model.hpp.

Constructor & Destructor Documentation

◆ Model() [1/3]

acmxvk::dream::Model::Model ( Model && )
defaultnoexcept

References Model().

Referenced by load(), Model(), Model(), operator=(), operator=(), and ~Model().

◆ ~Model()

acmxvk::dream::Model::~Model ( )
default

References Model().

◆ Model() [2/3]

acmxvk::dream::Model::Model ( const Model & )
delete

References Model().

◆ Model() [3/3]

acmxvk::dream::Model::Model ( std::unique_ptr< Impl > implementation)
explicitprivate

Definition at line 524 of file deep_dream_model.cpp.

References implementation.

Member Function Documentation

◆ apply_gradient_ascent()

◆ apply_gradient_ascent_cuda()

GradientAscentResult acmxvk::dream::Model::apply_gradient_ascent_cuda ( const cv::cuda::GpuMat & rgba,
cv::cuda::GpuMat & output,
cv::cuda::Stream & stream,
const GradientAscentOptions & options = {} )
nodiscard

◆ load()

Model acmxvk::dream::Model::load ( std::string_view filename,
int cuda_device,
std::string_view layer = {},
bool use_half = false )
staticnodiscard

◆ metadata()

const ModelMetadata & acmxvk::dream::Model::metadata ( ) const
nodiscard

Definition at line 600 of file deep_dream_model.cpp.

References implementation.

Referenced by acmxvk::dream::probe().

◆ operator=() [1/2]

Model & acmxvk::dream::Model::operator= ( const Model & )
delete

References load(), and Model().

◆ operator=() [2/2]

Model & acmxvk::dream::Model::operator= ( Model && )
defaultnoexcept

References Model().

◆ print()

void acmxvk::dream::Model::print ( std::ostream & output) const

◆ selected_channels()

std::size_t acmxvk::dream::Model::selected_channels ( ) const
nodiscard

Definition at line 608 of file deep_dream_model.cpp.

References implementation.

Referenced by acmxvk::MainWindow::apply_interface_deep_dream_state(), and print().

◆ selected_layer()

std::size_t acmxvk::dream::Model::selected_layer ( ) const
nodiscard

Definition at line 604 of file deep_dream_model.cpp.

References implementation.

Member Data Documentation

◆ implementation

std::unique_ptr<Impl> acmxvk::dream::Model::implementation
private

The documentation for this class was generated from the following files: