#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 ModelMetadata & | metadata () const |
| Model (const Model &)=delete | |
| Model (Model &&) noexcept | |
| Model & | operator= (const Model &)=delete |
| Model & | operator= (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< Impl > | implementation |
Definition at line 55 of file deep_dream_model.hpp.
|
defaultnoexcept |
References Model().
Referenced by load(), Model(), Model(), operator=(), operator=(), and ~Model().
|
default |
References Model().
|
delete |
References Model().
|
explicitprivate |
Definition at line 524 of file deep_dream_model.cpp.
References implementation.
|
nodiscard |
Definition at line 613 of file deep_dream_model.cpp.
References acmxvk::dream::GradientAscentOptions::feedback, implementation, acmxvk::dream::GradientAscentOptions::max_dimension, acmxvk::dream::GradientAscentOptions::rotation_degrees, and acmxvk::dream::GradientAscentOptions::zoom.
Referenced by acmxvk::dream::probe().
|
nodiscard |
|
staticnodiscard |
Definition at line 531 of file deep_dream_model.cpp.
References implementation, load(), Model(), acmxvk::input::Path, acmxvk::input::validate_file_size(), and acmxvk::input::validate_string().
Referenced by acmxvk::MainWindow::apply_interface_deep_dream_state(), acmxvk::MainWindow::initializeDeepDream(), load(), operator=(), and acmxvk::dream::probe().
|
nodiscard |
Definition at line 600 of file deep_dream_model.cpp.
References implementation.
Referenced by acmxvk::dream::probe().
| void acmxvk::dream::Model::print | ( | std::ostream & | output | ) | const |
Definition at line 846 of file deep_dream_model.cpp.
References implementation, acmxvk::dream::LayerMetadata::name, selected_channels(), and acmxvk::dream::LayerMetadata::source_index.
Referenced by acmxvk::dream::probe().
|
nodiscard |
Definition at line 608 of file deep_dream_model.cpp.
References implementation.
Referenced by acmxvk::MainWindow::apply_interface_deep_dream_state(), and print().
|
nodiscard |
Definition at line 604 of file deep_dream_model.cpp.
References implementation.
|
private |
Definition at line 83 of file deep_dream_model.hpp.
Referenced by apply_gradient_ascent(), apply_gradient_ascent_cuda(), load(), metadata(), Model(), print(), selected_channels(), and selected_layer().