3using System.Collections.Generic;
5using System.Runtime.Serialization;
396#pragma warning disable 1591
399 public interface IXImageDatabaseEvent
401 [OperationContract(IsOneWay =
false)]
402 void OnResult(
string strMsg,
double dfProgress);
404 [OperationContract(IsOneWay =
false)]
405 void OnError(ImageDatabaseErrorData err);
408#pragma warning restore 1591
413 [ServiceContract(CallbackContract = typeof(IXImageDatabaseEvent), SessionMode = SessionMode.Required)]
416 #region Initialization and Cleanup
422 [OperationContract(IsOneWay =
false)]
432 [OperationContract(IsOneWay =
false)]
442 [OperationContract(IsOneWay =
false)]
454 [OperationContract(IsOneWay =
false)]
467 [OperationContract(IsOneWay =
false)]
480 [OperationContract(IsOneWay =
false)]
488 [OperationContract(IsOneWay =
false)]
489 void CleanUp(
int nDsId = 0,
bool bForce =
false);
499 [OperationContract(IsOneWay =
false)]
505 [OperationContract(IsOneWay =
false)]
511 [OperationContract(IsOneWay =
false)]
518 [OperationContract(IsOneWay =
false)]
526 [OperationContract(IsOneWay =
false)]
536 [OperationContract(IsOneWay =
false)]
546 [OperationContract(IsOneWay =
false)]
554 [OperationContract(IsOneWay =
false)]
562 [OperationContract(IsOneWay =
false)]
570 [OperationContract(IsOneWay =
false)]
583 [OperationContract(IsOneWay =
false)]
584 int GetImageCount(
int nSrcId,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
595 [OperationContract(IsOneWay =
false)]
603 [OperationContract(IsOneWay =
false)]
611 [OperationContract(IsOneWay =
false)]
619 [OperationContract(IsOneWay =
false)]
631 [OperationContract(IsOneWay =
false)]
639 [OperationContract(IsOneWay =
false)]
647 [OperationContract(IsOneWay =
false)]
655 [OperationContract(IsOneWay =
false)]
663 [OperationContract(IsOneWay =
false)]
671 [OperationContract(IsOneWay =
false)]
679 [OperationContract(IsOneWay =
false)]
688 [OperationContract(IsOneWay =
false)]
693 #region Image Acquisition
706 [OperationContract(IsOneWay =
false)]
722 [OperationContract(IsOneWay =
false)]
723 List<SimpleDatum>
GetImagesFromIndex(
int nSrcId,
int nStartIdx,
int nQueryCount =
int.MaxValue,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false,
bool bAttemptDirectLoad =
false);
737 [OperationContract(IsOneWay =
false)]
738 List<SimpleDatum>
GetImagesFromTime(
int nSrcId, DateTime dtStart,
int nQueryCount =
int.MaxValue,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
751 [OperationContract(IsOneWay =
false)]
752 List<SimpleDatum>
GetImages(
int nSrcId,
int[] rgIdx,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
760 [OperationContract(IsOneWay =
false)]
774 [OperationContract(IsOneWay =
false)]
786 [OperationContract(IsOneWay =
false)]
787 [FaultContract(typeof(ImageDatabaseErrorData))]
799 [OperationContract(IsOneWay =
false)]
800 [FaultContract(typeof(ImageDatabaseErrorData))]
808 [OperationContract(IsOneWay =
false)]
809 [FaultContract(typeof(ImageDatabaseErrorData))]
817 [OperationContract(IsOneWay =
false)]
829 [OperationContract(IsOneWay =
false)]
838 [OperationContract(IsOneWay =
false)]
846 [OperationContract(IsOneWay =
false)]
855 [OperationContract(IsOneWay =
false)]
863 [OperationContract(IsOneWay =
false)]
871 [OperationContract(IsOneWay =
false)]
879 [OperationContract(IsOneWay =
false)]
880 [FaultContract(typeof(ImageDatabaseErrorData))]
888 [OperationContract(IsOneWay =
false)]
896 [OperationContract(IsOneWay =
false)]
905 [ServiceContract(CallbackContract = typeof(IXImageDatabaseEvent), SessionMode = SessionMode.Required)]
913 [OperationContract(IsOneWay =
false)]
920 [OperationContract(IsOneWay =
false)]
929 [OperationContract(IsOneWay =
false)]
937 [OperationContract(IsOneWay =
false)]
945 [OperationContract(IsOneWay =
false)]
951 [OperationContract(IsOneWay =
false)]
959 [OperationContract(IsOneWay =
false)]
969 [OperationContract(IsOneWay =
false)]
978 [OperationContract(IsOneWay =
false)]
986 [OperationContract(IsOneWay =
false)]
993 [ServiceContract(CallbackContract = typeof(IXImageDatabaseEvent), SessionMode = SessionMode.Required)]
996 #region Initialization and Cleanup
1005 [OperationContract(IsOneWay =
false)]
1015 [OperationContract(IsOneWay =
false)]
1027 [OperationContract(IsOneWay =
false)]
1040 [OperationContract(IsOneWay =
false)]
1053 [OperationContract(IsOneWay =
false)]
1061 [OperationContract(IsOneWay =
false)]
1069 [OperationContract(IsOneWay =
false)]
1094 #region Query States
1104 [OperationContract(IsOneWay =
false)]
1115 [OperationContract(IsOneWay =
false)]
1124 [OperationContract(IsOneWay =
false)]
1133 [OperationContract(IsOneWay =
false)]
1142 [OperationContract(IsOneWay =
false)]
1151 [OperationContract(IsOneWay =
false)]
1160 [OperationContract(IsOneWay =
false)]
1169 [OperationContract(IsOneWay =
false)]
1178 [OperationContract(IsOneWay =
false)]
1196 [OperationContract(IsOneWay =
false)]
1197 int GetImageCount(
long lQueryState,
int nSrcId,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
1201 #region Image Acquisition
1217 [OperationContract(IsOneWay =
false)]
1218 List<SimpleDatum>
GetImagesFromIndex(
long lQueryState,
int nSrcId,
int nStartIdx,
int nQueryCount =
int.MaxValue,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false,
bool bAttemptDirectLoad =
false);
1233 [OperationContract(IsOneWay =
false)]
1234 List<SimpleDatum>
GetImagesFromTime(
long lQueryState,
int nSrcId, DateTime dtStart,
int nQueryCount =
int.MaxValue,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
1248 [OperationContract(IsOneWay =
false)]
1262 [OperationContract(IsOneWay =
false)]
1267 #region Load Limit Refresh
1318 bool StartRefresh(
string strDs,
bool bTraining,
bool bTesting,
double dfReplacementPct);
1343 bool StartRefresh(
int nDsID,
bool bTraining,
bool bTesting,
double dfReplacementPct);
1430 List<SimpleResult>
GetAllResults(
string strSource,
bool bRequireExtraData,
int nMax = -1);
1435#pragma warning disable 1591
1438 public class ImageDatabaseErrorData
1441 public bool Result {
get;
set; }
1443 public string ErrorMessage {
get;
set; }
1445 public string ErrorDetails {
get;
set; }
1448#pragma warning restore 1591
The ConnectInfo class specifies the server, database and username/password used to connect to a datab...
The LabelMapping class represents a single label mapping.
The Result class contains a single result.
The SettingsCaffe defines the settings used by the MyCaffe CaffeControl.
The SimpleDatum class holds a data input within host memory.
The DatasetDescriptor class describes a dataset which contains both a training data source and testin...
The SourceDescriptor class contains all information describing a data source.
Defines the ITest interface used by the Test module to return its known failures.
List< Tuple< string, string, string > > KnownFailures
Get the known failures of the test module.
int GetPriority(string strClass, string strMethod)
Get the priority of a class::method pair.
The IXImageDatabase interface defines the eneral interface to the in-memory image database.
void DeleteAllCreatedDatasets()
Delete all datasets created with CreateDatasetOrganizedByTime.
string GetLabelBoostsAsTextFromProject(int nProjectId, int nSrcId)
Returns the label boosts as a text string for all boosted labels within a data source associated with...
int CreateDatasetOranizedByTime(int nDsId)
Create a dynamic dataset organized by time from a pre-existing dataset.
bool LoadNextSet(string strEvtCancel)
When using a Load Limit that is greater than 0, this function loads the next set of images.
bool DeleteCreatedDataset(int nDsId)
Delete a dataset created with CreateDatasetOrganizedByTime.
void AddLabelBoost(int nProjectId, int nSrcId, int nLabel, double dfBoost)
Add a label boost for a data source associated with a given project.
bool Sort(int nSrcId, IMGDB_SORT method)
Sort the internal images.
void DeleteLabelBoosts(int nProjectId, int nSrcId)
Delete all label boosts for a given data source associated with a given project.
void UpdateLabelBoosts(int nProjectId, int nSrcId)
Updates the label boosts for the images based on the label boosts set for the given project.
void ResetQuery(int nDsID)
Reset the query for the given data set ID.
The IXImageDatabase2 interface defines the general interface to the in-memory image database (v2).
bool ReloadIndexing(string strDs)
Reload the indexing for a data set.
string GetLabelQueryEpocsAsTextFromSourceName(long lQueryState, string strSource)
Returns a string with the query epoch counts for each label (e.g. the number of times all images with...
List< SimpleResult > GetAllResults(string strSource, bool bRequireExtraData, int nMax=-1)
Query all results for a given data source.
bool GetScheduledAutoRefreshInformation(string strDs, out int nPeriodInMs, out double dfReplacementPct, out int nTrainingRefreshCount, out int nTestingRefreshCount)
Returns whether or not a scheduled refresh is running and if so at what period and replacement percen...
long CreateQueryState(int nDsId, bool bUseUniqueLabelIndexes=true, bool bUseUniqueImageIndexes=true, IMGDB_SORT sort=IMGDB_SORT.NONE)
Create a new query state, optionally with a certain ordering.
bool StartRefresh(string strDs, bool bTraining, bool bTesting, double dfReplacementPct)
Start a refresh on the dataset by replacing a specified percentage of the images with images from the...
long CreateQueryState(string strDs, bool bUseUniqueLabelIndexes=true, bool bUseUniqueImageIndexes=true, IMGDB_SORT sort=IMGDB_SORT.NONE)
Create a new query state, optionally with a certain ordering.
bool StopRefresh(int nDsID, bool bTraining, bool bTesting)
Stop a refresh operation running on the dataset.
bool FreeQueryState(string strDs, long lHandle)
Frees a query state from a given dataset.
bool StopAutomaticRefreshSchedule(string strDs, bool bTraining, bool bTesting)
Stop the automatic refresh schedule running on a dataset.
long InitializeWithDsId(SettingsCaffe s, int nDataSetID, string strEvtCancel=null, int nPadW=0, int nPadH=0)
Initializes the image database.
string GetBoostQueryHitPercentsAsTextFromSourceName(long lQueryState, string strSource)
Returns a string with the query hit percent for each boost (e.g. the percentage that each boost value...
bool ReloadIndexing(int nDsId)
Reload the indexing for a data set.
bool WaitForDatasetToRefresh(string strDs, bool bTraining, bool bTesting, int nWait=int.MaxValue)
Wait for the dataset refreshing to complete.
bool GetScheduledAutoRefreshInformation(int nDsID, out int nPeriodInMs, out double dfReplacementPct, out int nTrainingRefreshCount, out int nTestingRefreshCount)
Returns whether or not a scheduled refresh is running and if so at what period and replacement percen...
long LoadDatasetByName(string strDs, string strEvtCancel=null)
Load another, 'secondary' dataset.
bool StartAutomaticRefreshSchedule(string strDs, bool bTraining, bool bTesting, int nPeriodInMs, double dfReplacementPct)
Start the automatic refresh cycle to occur on specified period increments.
bool StopAutomaticRefreshSchedule(int nDsID, bool bTraining, bool bTesting)
Stop the automatic refresh schedule running on a dataset.
bool SetDefaultQueryState(string strDs, long lQueryState)
Set the default query state to the query state specified for the dataset specified.
int GetImageCount(long lQueryState, int nSrcId, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false)
Returns the number of images in a given data source.
bool FreeQueryState(int nDsId, long lHandle)
Frees a query state from a given dataset.
void ResetAllBoosts(int nSrcId)
Reset all in-memory image boosts.
long InitializeWithDs(SettingsCaffe s, DatasetDescriptor ds, string strEvtCancel=null)
Initializes the image database.
bool WaitForDatasetToLoad(string strDs, bool bTraining, bool bTesting, int nWait=int.MaxValue)
Wait for the dataset loading to complete.
SimpleDatum QueryImage(long lQueryState, int nSrcId, int nIdx, IMGDB_LABEL_SELECTION_METHOD? labelSelectionOverride=null, IMGDB_IMAGE_SELECTION_METHOD? imageSelectionOverride=null, int? nLabel=null, bool bLoadDataCriteria=false, bool bLoadDebugData=false)
Query an image in a given data source.
bool WaitForDatasetToLoad(int nDsId, bool bTraining, bool bTesting, int nWait=int.MaxValue)
Wait for the dataset loading to complete.
bool StopRefresh(string strDs, bool bTraining, bool bTesting)
Stop a refresh operation running on the dataset.
bool IsRefreshRunning(int nDsId, bool bTraining, bool bTesting)
Returns true if the refresh operation running.
bool StartRefresh(int nDsID, bool bTraining, bool bTesting, double dfReplacementPct)
Start a refresh on the dataset by replacing a specified percentage of the images with images from the...
List< SimpleDatum > GetImagesFromIndex(long lQueryState, int nSrcId, int nStartIdx, int nQueryCount=int.MaxValue, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false, bool bAttemptDirectLoad=false)
Returns the array of images in the image set, possibly filtered with the filtering parameters.
bool WaitForDatasetToRefresh(int nDsId, bool bTraining, bool bTesting, int nWait=int.MaxValue)
Wait for the dataset refreshing to complete.
bool IsRefreshRunning(string strDs, bool bTraining, bool bTesting)
Returns true if the refresh operation running.
long LoadDatasetByID(int nDsId, string strEvtCancel=null)
Load another, 'secondary' dataset.
string GetLabelQueryHitPercentsAsTextFromSourceName(long lQueryState, string strSource)
Returns a string with the query hit percent for each label (e.g. the percentage that each label has b...
long InitializeWithDsName(SettingsCaffe s, string strDs, string strEvtCancel=null)
Initializes the image database.
bool SetDefaultQueryState(int nDsId, long lQueryState)
Set the default query state to the query state specified for the dataset specified.
List< SimpleDatum > GetImagesFromTime(long lQueryState, int nSrcId, DateTime dtStart, int nQueryCount=int.MaxValue, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false)
Returns the array of images in the image set, possibly filtered with the filtering parameters.
bool StartAutomaticRefreshSchedule(int nDsID, bool bTraining, bool bTesting, int nPeriodInMs, double dfReplacementPct)
Start the automatic refresh cycle to occur on specified period increments.
The IXImageDatabaseBase interface defines the general interface to the in-memory image database.
bool UnloadDatasetByName(string strDataset)
The UnloadDataset function unloads a given dataset from memory.
List< LabelDescriptor > GetLabels(int nSrcId)
Returns a list of LabelDescriptors associated with the labels within a data source.
string GetDatasetName(int nDsId)
Returns a data set name given its ID.
void SetLabelMapping(int nSrcId, LabelMapping map)
Sets the label mapping to the database for a given data source.
bool GetLoadImageDebugData()
Returns whether or not the image debug data is loaded with each image.
SourceDescriptor GetSourceByName(string strSrc)
Returns the SourceDescriptor for a given data source name.
List< SimpleDatum > GetImagesFromTime(int nSrcId, DateTime dtStart, int nQueryCount=int.MaxValue, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false)
Returns the array of images in the image set, possibly filtered with the filtering parameters.
void SetSelectionMethod(IMGDB_LABEL_SELECTION_METHOD? lbl, IMGDB_IMAGE_SELECTION_METHOD? img)
Sets the label and image selection methods.
bool GetLoadImageDataCriteria()
Returns whether or not the image data criteria is loaded with each image.
SourceDescriptor GetSourceById(int nSrcId)
Returns the SourceDescriptor for a given data source ID.
void CleanUp(int nDsId=0, bool bForce=false)
Releases the image database, and if this is the last instance using the in-memory database,...
bool LoadDatasetByName1(string strDs, string strEvtCancel=null)
Load another, 'secondary' dataset.
SimpleDatum QueryImageMean(int nSrcId)
Queries the image mean for a data source from the database on disk.
SimpleDatum GetImageMean(int nSrcId)
Returns the image mean for a data source.
void SetConnection(ConnectInfo ci)
Set the database connection to use.
SimpleDatum QueryImage(int nSrcId, int nIdx, IMGDB_LABEL_SELECTION_METHOD? labelSelectionOverride=null, IMGDB_IMAGE_SELECTION_METHOD? imageSelectionOverride=null, int? nLabel=null, bool bLoadDataCriteria=false, bool bLoadDebugData=false)
Query an image in a given data source.
int GetSourceID(string strSrc)
Returns a data source ID given its name.
DatasetDescriptor GetDatasetByName(string strDs)
Returns the DatasetDescriptor for a given data set name.
IMGDB_VERSION GetVersion()
Returns the version of the MyCaffe Image Database being used.
bool InitializeWithDsName1(SettingsCaffe s, string strDs, string strEvtCancel=null)
Initializes the image database.
List< SimpleDatum > GetImages(int nSrcId, int[] rgIdx, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false)
Returns the array of images in the image set, possibly filtered with the filtering parameters.
string GetLabelCountsAsTextFromSourceId(int nSrcId)
Returns a string with all label counts for a data source.
int GetImageCount(int nSrcId, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false)
Returns the number of images in a given data source.
bool UnloadDatasetById(int nDatasetID)
The UnloadDataset function unloads a given dataset from memory.
string GetLabelQueryHitPercentsAsTextFromSourceName(string strSource)
Returns a string with the query hit percent for each label (e.g. the percentage that each label has b...
Dictionary< int, int > LoadLabelCounts(int nSrcId)
Returns a label lookup of counts for a given data source.
bool ReloadDataset(int nDsId)
Reload a data set.
void UpdateLabelMapping(int nSrcId, int nNewLabel, List< int > rgOriginalLabels)
Updates the label mapping in the database for a given data source.
string GetLabelQueryEpocsAsTextFromSourceName(string strSource)
Returns a string with the query epoch counts for each label (e.g. the number of times all images with...
Tuple< IMGDB_LABEL_SELECTION_METHOD, IMGDB_IMAGE_SELECTION_METHOD > GetSelectionMethod()
Returns the label and image selection method used.
bool InitializeWithDs1(SettingsCaffe s, DatasetDescriptor ds, string strEvtCancel=null)
Initializes the image database.
bool InitializeWithDsId1(SettingsCaffe s, int nDataSetID, string strEvtCancel=null, int nPadW=0, int nPadH=0)
Initializes the image database.
int GetDatasetID(string strDs)
Returns a data set ID given its name.
SimpleDatum QueryImageMeanFromDb(int nSrcId)
Queries the image mean for a data source from the database on disk.
bool ReloadImageSet(int nSrcId)
Reloads the images of a data source.
string GetLabelCountsAsTextFromSourceName(string strSource)
Returns a string with all label counts for a data source.
string GetBoostQueryHitPercentsAsTextFromSourceName(string strSource)
Returns a string with the query hit percent for each boost (e.g. the percentage that each boost value...
int FindImageIndex(int nSrcId, DateTime dt, string strDescription)
Searches for the image index of an image within a data source matching a DateTime/description pattern...
SimpleDatum GetImage(int nImageID, params int[] rgSrcId)
Get the image with a given Raw Image ID.
List< SimpleDatum > GetImagesFromIndex(int nSrcId, int nStartIdx, int nQueryCount=int.MaxValue, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false, bool bAttemptDirectLoad=false)
Returns the array of images in the image set, possibly filtered with the filtering parameters.
DatasetDescriptor GetDatasetById(int nDsId)
Returns the DatasetDescriptor for a given data set ID.
void ResetLabels(int nProjectId, int nSrcId)
Resets all labels within a data source, used by a project, to their original labels.
SimpleDatum QueryImageMeanFromDataset(int nDatasetId)
Returns the image mean for the Training data source of a given data set.
double GetDatasetLoadedPercentByName(string strDataset, out double dfTraining, out double dfTesting)
Returns the percentage that a dataset is loaded into memory.
double GetDatasetLoadedPercentById(int nDatasetID, out double dfTraining, out double dfTesting)
Returns the percentage that a dataset is loaded into memory.
bool LoadDatasetByID1(int nDsId, string strEvtCancel=null)
Load another, 'secondary' dataset.
void UpdateLabelCounts(int nProjectId, int nSrcId)
Updates the number of images of each label within a data source.
string GetSourceName(int nSrcId)
Returns a data source name given its ID.
string GetLabelName(int nSrcId, int nLabel)
Returns the text name of a given label within a data source.
The descriptors namespace contains all descriptor used to describe various items stored within the da...
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
Phase
Defines the Phase under which to run a Net.
@ TEST
Run a testing phase.
@ ALL
Applies to all phases.
@ RUN
Run on an image given to the Net.
@ TRAIN
Run a training phase.
IMGDB_LABEL_SELECTION_METHOD
Defines the label selection method.
SNAPSHOT_LOAD_METHOD
Defines the snapshot load method.
@ STATE_BEST_ACCURACY
Load the state with the best accuracy (which may not be the last).
@ LAST_STATE
Load the last solver state snapshotted.
@ STATE_BEST_ERROR
Load the state with the best error (which may not be the last).
@ WEIGHTS_BEST_ERROR
Load the weights with the best error (which may not be the last).
@ WEIGHTS_BEST_ACCURACY
Load the weights with the best accuracy (which may not be the last).
IMGDB_SORT
Defines the sorting method.
@ BYIDX
Sort by image Index.
@ BYDESC
Sort by description first.
@ BYID_DESC
Sort by image ID in decending order.
IMAGEDB_LOAD_METHOD
Defines how to laod the images into the image database.
@ LOAD_ON_DEMAND_BACKGROUND
Load the image as they are queried AND start the background loading at the same time.
@ LOAD_ON_DEMAND
Load the images as they are queried - this option cahces images into memory as needed,...
@ LOAD_EXTERNAL
Load the images from an external source such as a Windows Service - this option provides the best bal...
@ LOAD_ON_DEMAND_NOCACHE
Load the images on demand, but do not cache the images - this option loads images from disk as needed...
@ LOAD_ALL
Load all of the images into memory - this option provides the highest training speeds,...
GYM_TYPE
Defines the gym type (if any).
@ DYNAMIC
Specifies a dynamic gym type that dynamically produces its data.
@ DATA
Specifies a data gym that collects data from a data source, such as a database.
IMGDB_IMAGE_SELECTION_METHOD
Defines the image selection method.
@ RANDOM
Randomly select the images, ignore the input index.
@ RANDOM_AND_PAIR
Combines RANDOM + PAIR for marshalling.
@ FIXEDINDEX
Specifically select based on the input index.
@ PAIR
Pair select the images where the first query returns a randomly selected image, and the next query re...
@ RANDOM_AND_PAIR_AND_BOOST
Combines RANDOM + PAIR + BOOST for marshalling.
@ BOOST
Randomly select, but given higher priority to boosted images using the super-boost setting.
@ CLEARFIXEDINDEX
Clear the fixed index.
@ RANDOM_AND_BOOST
Combines RANDOM + BOOST for marshalling.
SNAPSHOT_WEIGHT_UPDATE_METHOD
Defines the snapshot weight update method.
@ DISABLED
Disables all snapshots.
@ FAVOR_ACCURACY
Update the snapshot weights when the accuracy increases.
@ FAVOR_ERROR
Update the snapshot weights when the error decreases.
@ FAVOR_BOTH
Update the snapshot weights when the accuracy increases or the error decreases.
TRAINING_CATEGORY
Defines the category of training.
@ CUSTOM
Defines a purely custom training method.
@ RECURRENT
Defines the recurrent training method.
@ REINFORCEMENT
Defines the reinforcement training method such as PG.
@ NONE
No training category specified.
@ DUAL
Defines the reinforcement training method such as PG that also uses a recurrent model such as LSTM.
IMGDB_VERSION
Defines the image database version to use.
@ V1
Specifies to use the original image database.
@ V2
Specifies to use the new image database v2.
ApVersion
Defines the different way of computing average precision.
@ ELEVENPOINT
Specifies the 11-point interpolated average precision, used in VOC2007.
@ MAXINTEGRAL
Specifies the maximally interpolated AP, used in VOC2012/ILSVRC.
@ INTEGRAL
Specifies the natural integral of the precision-recall curve.
DATA_TYPE
Defines the gym data type.
@ BLOB
Specifies to use a SimpleDatum blob of data of the gym (if supported).
@ DEFAULT
Specifies to use the default data type of the gym used.
@ VALUES
Specifies to use the raw state values of the gym (if supported).
Stage
Specifies the stage underwhich to run a custom trainer.
@ RNN
Run the trainer in RNN mode.
@ RL
Run the trainer in RL mode.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...