-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54ca041
commit b07977b
Showing
2 changed files
with
692 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,81 @@ | ||
/************************************************ | ||
* Copyright MaybeShewill-CV. All Rights Reserved. | ||
* Author: MaybeShewill-CV | ||
* File: DepthAnything.h | ||
* File: depth_anything.h | ||
* Date: 24-1-25 | ||
************************************************/ | ||
|
||
#ifndef MORTRED_MODEL_SERVER_DEPTHANYTHING_H | ||
#define MORTRED_MODEL_SERVER_DEPTHANYTHING_H | ||
#ifndef MORTRED_MODEL_SERVER_DEPTH_ANYTHING_H | ||
#define MORTRED_MODEL_SERVER_DEPTH_ANYTHING_H | ||
|
||
class DepthAnything {}; | ||
#include <memory> | ||
|
||
#endif // MORTRED_MODEL_SERVER_DEPTHANYTHING_H | ||
#include "toml/toml.hpp" | ||
|
||
#include "common/status_code.h" | ||
#include "models/base_model.h" | ||
#include "models/model_io_define.h" | ||
|
||
namespace jinq { | ||
namespace models { | ||
namespace mono_depth_estimation { | ||
|
||
template <typename INPUT, typename OUTPUT> | ||
class DepthAnything : public jinq::models::BaseAiModel<INPUT, OUTPUT> { | ||
public: | ||
/*** | ||
* constructor | ||
* @param config | ||
*/ | ||
DepthAnything(); | ||
|
||
/*** | ||
* | ||
*/ | ||
~DepthAnything() override; | ||
|
||
/*** | ||
* constructor | ||
* @param transformer | ||
*/ | ||
DepthAnything(const DepthAnything &transformer) = delete; | ||
|
||
/*** | ||
* constructor | ||
* @param transformer | ||
* @return | ||
*/ | ||
DepthAnything &operator=(const DepthAnything &transformer) = delete; | ||
|
||
/*** | ||
* | ||
* @param toml | ||
* @return | ||
*/ | ||
jinq::common::StatusCode init(const decltype(toml::parse("")) &cfg) override; | ||
|
||
/*** | ||
* | ||
* @param input | ||
* @param output | ||
* @return | ||
*/ | ||
jinq::common::StatusCode run(const INPUT &input, OUTPUT &output) override; | ||
|
||
/*** | ||
* if model successfully initialized | ||
* @return | ||
*/ | ||
bool is_successfully_initialized() const override; | ||
|
||
private: | ||
class Impl; | ||
std::unique_ptr<Impl> _m_pimpl; | ||
}; | ||
} // namespace mono_depth_estimation | ||
} // namespace models | ||
} // namespace jinq | ||
|
||
#include "depth_anything.inl" | ||
|
||
#endif // MORTRED_MODEL_SERVER_DEPTH_ANYTHING_H |
Oops, something went wrong.