|
nndeploy C++ API
0.2.0
nndeploy C++ API
|
Classes | |
| class | DDIMScheduler |
| class | DDIMSchedulerParam |
| class | ProgressBar |
| class | Scheduler |
| class | SchedulerCreator |
| 推理框架的创建类 More... | |
| class | SchedulerParam |
| class | Text2ImageParam |
| class | TypeSchedulerCreator |
| 推理框架的创建类模板 More... | |
| class | TypeSchedulerRegister |
| 推理框架的创建类的注册类模板 More... | |
Enumerations | |
| enum | SchedulerType : int { kSchedulerTypeDDIM = 0x0000 , kSchedulerTypeDPM , kSchedulerTypeEulerA , kSchedulerTypeLMSD , kSchedulerTypePNDM , kSchedulerTypeNotSupport } |
| enum | StableDiffusionType : int { kStableDiffusionTypeTextToImage = 0x0000 , kStableDiffusionTypeImageToImage , kStableDiffusionTypeInpaint , kStableDiffusionTypeNotSupport } |
Functions | |
| dag::Graph * | createCLIPGraph (const std::string &name, dag::Edge *prompt, dag::Edge *negative_prompt, dag::Edge *output, base::InferenceType inference_type, std::vector< base::Param * > ¶m) |
| dag::Graph * | createDenoiseGraph (const std::string &name, dag::Edge *text_embeddings, dag::Edge *output, SchedulerType scheduler_type, base::InferenceType inference_type, std::vector< base::Param * > ¶m, int iter) |
| Scheduler * | createScheduler (SchedulerType type) |
| Create a Scheduler object. More... | |
| dag::Graph * | createStableDiffusionText2ImageGraph (const std::string name, std::string prompt, std::string negative_prompt, base::InferenceType inference_type, SchedulerType scheduler_type, std::vector< base::Param * > ¶m, int iter) |
| dag::Graph * | createVAEGraph (const std::string &name, dag::Edge *latents, dag::Edge *output, base::InferenceType inference_type, std::vector< base::Param * > ¶m) |
| std::map< SchedulerType, std::shared_ptr< SchedulerCreator > > & | getGlobalSchedulerCreatorMap () |
| Get the Global Scheduler Creator Map object. More... | |
| base::Status | initializeLatents (std::mt19937 &generator, float init_noise_sigma, device ::Tensor *latents) |
| enum nndeploy::stable_diffusion::SchedulerType : int |
| dag::Graph* nndeploy::stable_diffusion::createCLIPGraph | ( | const std::string & | name, |
| dag::Edge * | prompt, | ||
| dag::Edge * | negative_prompt, | ||
| dag::Edge * | output, | ||
| base::InferenceType | inference_type, | ||
| std::vector< base::Param * > & | param | ||
| ) |
| dag::Graph* nndeploy::stable_diffusion::createDenoiseGraph | ( | const std::string & | name, |
| dag::Edge * | text_embeddings, | ||
| dag::Edge * | output, | ||
| SchedulerType | scheduler_type, | ||
| base::InferenceType | inference_type, | ||
| std::vector< base::Param * > & | param, | ||
| int | iter | ||
| ) |
| Scheduler* nndeploy::stable_diffusion::createScheduler | ( | SchedulerType | type | ) |
| dag::Graph* nndeploy::stable_diffusion::createStableDiffusionText2ImageGraph | ( | const std::string | name, |
| std::string | prompt, | ||
| std::string | negative_prompt, | ||
| base::InferenceType | inference_type, | ||
| SchedulerType | scheduler_type, | ||
| std::vector< base::Param * > & | param, | ||
| int | iter | ||
| ) |
| dag::Graph* nndeploy::stable_diffusion::createVAEGraph | ( | const std::string & | name, |
| dag::Edge * | latents, | ||
| dag::Edge * | output, | ||
| base::InferenceType | inference_type, | ||
| std::vector< base::Param * > & | param | ||
| ) |
| std::map<SchedulerType, std::shared_ptr<SchedulerCreator> >& nndeploy::stable_diffusion::getGlobalSchedulerCreatorMap | ( | ) |
Get the Global Scheduler Creator Map object.
| base::Status nndeploy::stable_diffusion::initializeLatents | ( | std::mt19937 & | generator, |
| float | init_noise_sigma, | ||
| device ::Tensor * | latents | ||
| ) |
| generator | |
| init_noise_sigma | |
| latents |