Change object detector learning rate decay to cosine decay.

PiperOrigin-RevId: 527337105
This commit is contained in:
MediaPipe Team
2023-04-26 12:13:17 -07:00
committed by Copybara-Service
parent 507ed0d91d
commit 48aa88f39d
15 changed files with 35 additions and 69 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ class Contract {
std::tuple<T...> items;
// TODO -, check for conflicts.
// TODO: when forwarding nested items (e.g. ports), check for conflicts.
decltype(ExtractNestedItems(items)) all_items{ExtractNestedItems(items)};
constexpr auto inputs() const {
+1 -1
View File
@@ -150,7 +150,7 @@ class CalculatorBase {
// Packets may be output during a call to Close(). However, output packets
// are silently discarded if Close() is called after a graph run has ended.
//
// NOTE - needs to perform an action only when processing is
// NOTE: If Close() needs to perform an action only when processing is
// complete, Close() must check if cc->GraphStatus() is OK.
virtual absl::Status Close(CalculatorContext* cc) { return absl::OkStatus(); }
+1 -1
View File
@@ -111,7 +111,7 @@ class CalculatorContext {
// Returns the status of the graph run.
//
// NOTE -.
// NOTE: This method should only be called during CalculatorBase::Close().
absl::Status GraphStatus() const { return graph_status_; }
ProfilingContext* GetProfilingContext() const {
+1 -1
View File
@@ -66,7 +66,7 @@ class CalculatorRunner {
explicit CalculatorRunner(const std::string& node_config_string);
// Convenience constructor to initialize a calculator which uses indexes
// (not tags) for all its fields.
// NOTE -, which
// NOTE: This constructor calls proto_ns::TextFormat::ParseFromString(), which
// is not available when using lite protos.
CalculatorRunner(const std::string& calculator_type,
const std::string& options_string, int num_inputs,
+1 -1
View File
@@ -30,7 +30,7 @@ class OutputSidePacket {
// Sets the output side packet. The Packet must contain the data.
//
// NOTE - cannot report errors via the return value. It uses an error
// NOTE: Set() cannot report errors via the return value. It uses an error
// callback function to report errors.
virtual void Set(const Packet& packet) = 0;
};
@@ -48,7 +48,7 @@ class OutputSidePacketImpl : public OutputSidePacket {
// Sets the output side packet. The Packet must contain the data.
//
// NOTE - cannot report errors via the return value. It uses an error
// NOTE: Set() cannot report errors via the return value. It uses an error
// callback function to report errors.
void Set(const Packet& packet) override;
+1 -1
View File
@@ -50,7 +50,7 @@ class OutputStream {
// the only packet in the stream.
// Violation of any of these conditions causes a CHECK-failure.
//
// NOTE - cannot report errors via the return value. Instead of a
// NOTE: AddPacket() cannot report errors via the return value. Instead of a
// CHECK-failure, a subclass of OutputStream should use a callback function
// to report errors.
virtual void AddPacket(const Packet& packet) = 0;
+1 -1
View File
@@ -102,7 +102,7 @@ class SchedulerQueue : public TaskQueue {
// Implements the TaskQueue interface.
void RunNextTask() override;
// NOTE -, the caller must call
// NOTE: After calling SetRunning(true), the caller must call
// SubmitWaitingTasksToExecutor since tasks may have been added while the
// queue was not running.
void SetRunning(bool running) ABSL_LOCKS_EXCLUDED(mutex_);