3using System.Collections.Generic;
5using System.Runtime.Serialization;
425#pragma warning disable 1591
428 public interface IXDatabaseEvent
430 [OperationContract(IsOneWay =
false)]
431 void OnResult(
string strMsg,
double dfProgress);
433 [OperationContract(IsOneWay =
false)]
434 void OnError(DatabaseErrorData err);
437#pragma warning restore 1591
442 [ServiceContract(CallbackContract = typeof(IXDatabaseEvent), SessionMode = SessionMode.Required)]
445 #region Initialization and Cleanup
451 [OperationContract(IsOneWay =
false)]
462 [OperationContract(IsOneWay =
false)]
473 [OperationContract(IsOneWay =
false)]
486 [OperationContract(IsOneWay =
false)]
499 [OperationContract(IsOneWay =
false)]
512 [OperationContract(IsOneWay =
false)]
520 [OperationContract(IsOneWay =
false)]
521 void CleanUp(
int nDsId = 0,
bool bForce =
false);
530 [OperationContract(IsOneWay =
false)]
536 [OperationContract(IsOneWay =
false)]
542 [OperationContract(IsOneWay =
false)]
552 [OperationContract(IsOneWay =
false)]
562 [OperationContract(IsOneWay =
false)]
575 [OperationContract(IsOneWay =
false)]
576 int GetItemCount(
int nSrcId,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
582 [OperationContract(IsOneWay =
false)]
590 [OperationContract(IsOneWay =
false)]
600 [OperationContract(IsOneWay =
false)]
608 [OperationContract(IsOneWay =
false)]
616 [OperationContract(IsOneWay =
false)]
624 [OperationContract(IsOneWay =
false)]
634 [OperationContract(IsOneWay =
false)]
642 [OperationContract(IsOneWay =
false)]
650 [OperationContract(IsOneWay =
false)]
658 [OperationContract(IsOneWay =
false)]
666 [OperationContract(IsOneWay =
false)]
674 [OperationContract(IsOneWay =
false)]
683 [OperationContract(IsOneWay =
false)]
687 #region Image Acquisition
700 [OperationContract(IsOneWay =
false)]
716 [OperationContract(IsOneWay =
false)]
717 List<SimpleDatum>
GetItemsFromIndex(
int nSrcId,
int nStartIdx,
int nQueryCount =
int.MaxValue,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false,
bool bAttemptDirectLoad =
false);
731 [OperationContract(IsOneWay =
false)]
732 List<SimpleDatum>
GetItemsFromTime(
int nSrcId, DateTime dtStart,
int nQueryCount =
int.MaxValue,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
745 [OperationContract(IsOneWay =
false)]
746 List<SimpleDatum>
GetItems(
int nSrcId,
int[] rgIdx,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
755 [OperationContract(IsOneWay =
false)]
769 [OperationContract(IsOneWay =
false)]
782 [OperationContract(IsOneWay =
false)]
783 [FaultContract(typeof(DatabaseErrorData))]
796 [OperationContract(IsOneWay =
false)]
797 [FaultContract(typeof(DatabaseErrorData))]
806 [OperationContract(IsOneWay =
false)]
807 [FaultContract(typeof(DatabaseErrorData))]
816 [OperationContract(IsOneWay =
false)]
825 [ServiceContract(CallbackContract = typeof(IXDatabaseEvent), SessionMode = SessionMode.Required)]
833 [OperationContract(IsOneWay =
false)]
844 [OperationContract(IsOneWay =
false)]
860 [OperationContract(IsOneWay =
false)]
869 [OperationContract(IsOneWay =
false)]
876 [ServiceContract(CallbackContract = typeof(IXDatabaseEvent), SessionMode = SessionMode.Required)]
886 [OperationContract(IsOneWay =
false)]
894 [OperationContract(IsOneWay =
false)]
902 [OperationContract(IsOneWay =
false)]
914 [OperationContract(IsOneWay =
false)]
926 [OperationContract(IsOneWay =
false)]
935 [OperationContract(IsOneWay =
false)]
943 [OperationContract(IsOneWay =
false)]
952 [OperationContract(IsOneWay =
false)]
960 [OperationContract(IsOneWay =
false)]
968 [OperationContract(IsOneWay =
false)]
976 [OperationContract(IsOneWay =
false)]
977 [FaultContract(typeof(DatabaseErrorData))]
985 [OperationContract(IsOneWay =
false)]
993 [OperationContract(IsOneWay =
false)]
1002 [ServiceContract(CallbackContract = typeof(IXDatabaseEvent), SessionMode = SessionMode.Required)]
1010 [OperationContract(IsOneWay =
false)]
1017 [OperationContract(IsOneWay =
false)]
1026 [OperationContract(IsOneWay =
false)]
1034 [OperationContract(IsOneWay =
false)]
1042 [OperationContract(IsOneWay =
false)]
1048 [OperationContract(IsOneWay =
false)]
1056 [OperationContract(IsOneWay =
false)]
1066 [OperationContract(IsOneWay =
false)]
1075 [OperationContract(IsOneWay =
false)]
1083 [OperationContract(IsOneWay =
false)]
1090 [ServiceContract(CallbackContract = typeof(IXDatabaseEvent), SessionMode = SessionMode.Required)]
1093 #region Initialization and Cleanup
1102 [OperationContract(IsOneWay =
false)]
1112 [OperationContract(IsOneWay =
false)]
1124 [OperationContract(IsOneWay =
false)]
1137 [OperationContract(IsOneWay =
false)]
1150 [OperationContract(IsOneWay =
false)]
1158 [OperationContract(IsOneWay =
false)]
1166 [OperationContract(IsOneWay =
false)]
1191 #region Query States
1201 [OperationContract(IsOneWay =
false)]
1212 [OperationContract(IsOneWay =
false)]
1221 [OperationContract(IsOneWay =
false)]
1230 [OperationContract(IsOneWay =
false)]
1239 [OperationContract(IsOneWay =
false)]
1248 [OperationContract(IsOneWay =
false)]
1257 [OperationContract(IsOneWay =
false)]
1266 [OperationContract(IsOneWay =
false)]
1275 [OperationContract(IsOneWay =
false)]
1293 [OperationContract(IsOneWay =
false)]
1294 int GetImageCount(
long lQueryState,
int nSrcId,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
1298 #region Image Acquisition
1314 [OperationContract(IsOneWay =
false)]
1315 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);
1330 [OperationContract(IsOneWay =
false)]
1331 List<SimpleDatum>
GetImagesFromTime(
long lQueryState,
int nSrcId, DateTime dtStart,
int nQueryCount =
int.MaxValue,
string strFilterVal =
null,
int? nBoostVal =
null,
bool bBoostValIsExact =
false);
1345 [OperationContract(IsOneWay =
false)]
1359 [OperationContract(IsOneWay =
false)]
1364 #region Load Limit Refresh
1415 bool StartRefresh(
string strDs,
bool bTraining,
bool bTesting,
double dfReplacementPct);
1440 bool StartRefresh(
int nDsID,
bool bTraining,
bool bTesting,
double dfReplacementPct);
1527 List<SimpleResult>
GetAllResults(
string strSource,
bool bRequireExtraData,
int nMax = -1);
1532#pragma warning disable 1591
1535 public class DatabaseErrorData
1538 public bool Result {
get;
set; }
1540 public string ErrorMessage {
get;
set; }
1542 public string ErrorDetails {
get;
set; }
1545#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.
Specifies a key-value pair of properties.
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 SimpleTemporalDatumCollection manages a collection of SimpleTemporalDatum objects.
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 IXDatabaseBase interface defines the general interface to the in-memory database.
bool InitializeWithDs1(SettingsCaffe s, DatasetDescriptor ds, string strEvtCancel=null, PropertySet prop=null)
Initializes the image database.
SimpleDatum QueryItemMeanFromDb(int nSrcId)
Queries the item (e.g., image or temporal item) mean for a data source from the database on disk.
bool UnloadDatasetByName(string strDataset)
The UnloadDataset function unloads a given dataset from memory.
SimpleDatum GetItem(int nItemID, params int[] rgSrcId)
Get the item (e.g., image or temporal item) with a given Raw Item ID.
void SetConnection(ConnectInfo ci)
Set the database connection to use.
SimpleDatum GetItemMean(int nSrcId)
Returns the item (e.g., image or temporal item) mean for a data source.
bool GetLoadItemDebugData()
Returns whether or not the item debug data is loaded with each item.
int GetSourceID(string strSrc)
Returns a data source ID given its name.
SimpleDatum QueryItem(int nSrcId, int nIdx, DB_LABEL_SELECTION_METHOD? labelSelectionOverride=null, DB_ITEM_SELECTION_METHOD? imageSelectionOverride=null, int? nLabel=null, bool bLoadDataCriteria=false, bool bLoadDebugData=false)
Query an image in a given data source.
bool LoadDatasetByName1(string strDs, string strEvtCancel=null)
Load another, 'secondary' dataset.
double GetDatasetLoadedPercentById(int nDatasetID, out double dfTraining, out double dfTesting)
Returns the percentage that a dataset is loaded into memory.
Tuple< DB_LABEL_SELECTION_METHOD, DB_ITEM_SELECTION_METHOD > GetSelectionMethod()
Returns the label and image selection method used.
bool InitializeWithDsName1(SettingsCaffe s, string strDs, string strEvtCancel=null, PropertySet prop=null)
Initializes the image database.
SimpleDatum QueryItemMean(int nSrcId)
Queries the item (e.g., image or temporal item) mean for a data source from the database on disk.
string GetSourceName(int nSrcId)
Returns a data source name given its ID.
double GetDatasetLoadedPercentByName(string strDataset, out double dfTraining, out double dfTesting)
Returns the percentage that a dataset is loaded into memory.
void SetSelectionMethod(DB_LABEL_SELECTION_METHOD? lbl, DB_ITEM_SELECTION_METHOD? img)
Sets the label and image selection methods.
void CleanUp(int nDsId=0, bool bForce=false)
Releases the image database, and if this is the last instance using the in-memory database,...
SimpleDatum QueryItemMeanFromDataset(int nDatasetId)
Returns the item (e.g., image or temporal item) mean for the Training data source of a given data set...
int GetDatasetID(string strDs)
Returns a data set ID given its name.
SourceDescriptor GetSourceByName(string strSrc)
Returns the SourceDescriptor for a given data source name.
DatasetDescriptor GetDatasetById(int nDsId)
Returns the DatasetDescriptor for a given data set ID.
int FindItemIndex(int nSrcId, DateTime dt, string strDescription)
Searches for the item (e.g., image or temporal item) index of an image within a data source matching ...
SourceDescriptor GetSourceById(int nSrcId)
Returns the SourceDescriptor for a given data source ID.
string GetDatasetName(int nDsId)
Returns a data set name given its ID.
DB_VERSION GetVersion()
Returns the version of the MyCaffe Image Database being used.
DatasetDescriptor GetDatasetByName(string strDs)
Returns the DatasetDescriptor for a given data set name.
List< SimpleDatum > GetItems(int nSrcId, int[] rgIdx, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false)
Returns the array of items (e.g., images or temporal items) in the item set, possibly filtered with t...
bool InitializeWithDsId1(SettingsCaffe s, int nDataSetID, string strEvtCancel=null, int nPadW=0, int nPadH=0, PropertySet prop=null)
Initializes the image database.
bool UnloadDatasetById(int nDatasetID)
The UnloadDataset function unloads a given dataset from memory.
List< SimpleDatum > GetItemsFromIndex(int nSrcId, int nStartIdx, int nQueryCount=int.MaxValue, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false, bool bAttemptDirectLoad=false)
Returns the array of items (e.g., images or temporal items) in the item set, possibly filtered with t...
int GetItemCount(int nSrcId, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false)
Returns the number of items (e.g., images, or temporal items) in a given data source.
bool GetLoadItemDataCriteria()
Returns whether or not the item data criteria is loaded with each item.
bool ReloadDataset(int nDsId)
Reload a data set.
bool LoadDatasetByID1(int nDsId, string strEvtCancel=null)
Load another, 'secondary' dataset.
List< SimpleDatum > GetItemsFromTime(int nSrcId, DateTime dtStart, int nQueryCount=int.MaxValue, string strFilterVal=null, int? nBoostVal=null, bool bBoostValIsExact=false)
Returns the array of items (e.g., images or temporal items) in the item set, possibly filtered with t...
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.
SimpleDatum QueryImage(long lQueryState, int nSrcId, int nIdx, DB_LABEL_SELECTION_METHOD? labelSelectionOverride=null, DB_ITEM_SELECTION_METHOD? imageSelectionOverride=null, int? nLabel=null, bool bLoadDataCriteria=false, bool bLoadDebugData=false)
Query an image in a given data source.
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.
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.
List< LabelDescriptor > GetLabels(int nSrcId)
Returns a list of LabelDescriptors associated with the labels within a data source.
void SetLabelMapping(int nSrcId, LabelMapping map)
Sets the label mapping to the database for a given data source.
string GetLabelCountsAsTextFromSourceId(int nSrcId)
Returns a string with all label counts for a data source.
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.
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...
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...
void ResetLabels(int nProjectId, int nSrcId)
Resets all labels within a data source, used by a project, to their original labels.
void UpdateLabelCounts(int nProjectId, int nSrcId)
Updates the number of images of each label within a data source.
string GetLabelName(int nSrcId, int nLabel)
Returns the text name of a given label within a data source.
Teh IXTemporalDatabaseBase interface defines the general interface to the in-memory temporal database...
void SetInitializationProperties(PropertySet prop)
The SetInitializationProperties method is used to set the initialization properties of the database.
int GetTotalSize(int nDsId, Phase phase, int nHistoricalSteps, int nFutureSteps)
Returns the total number of blocks in the database where one block is a set of (historical and future...
SimpleTemporalDatumCollection QueryTemporalItem(int nQueryIdx, int nSrcId, ref int? nItemIdx, ref int? nValueIdx, DB_LABEL_SELECTION_METHOD? itemSelectionOverride=null, DB_ITEM_SELECTION_METHOD? valueSelectionOverride=null, bool bEnableDebug=false, string strDebugPath=null)
Returns a block of static, observed and known data from the database where one block is a set of (his...
void Reset()
Reset the database indexes.
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.
DB_ITEM_SELECTION_METHOD
Defines the item (e.g., image or temporal item) 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.
DB_LOAD_METHOD
Defines how to laod the items into the in-memory 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 items as they are queried - this option cahces items into memory as needed,...
@ LOAD_EXTERNAL
Load the items from an external source such as a Windows Service - this option provides the best bala...
@ LOAD_ON_DEMAND_NOCACHE
Load the items on demand, but do not cache the items - this option loads items from disk as needed an...
@ LOAD_ALL
Load all of the items into memory - this option provides the highest training speeds,...
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.
DB_VERSION
Defines the image database version to use.
@ TEMPORAL
Specifies to use the tempoal database.
@ IMG_V2
Specifies to use the new image database v2.
@ IMG_V1
Specifies to use the original image database.
SPECIAL_TOKENS
Specifies the special tokens.
@ PAD
The PAD token is used to pad the input to the same length.
@ EOS
The EOS token indicates the end of sequence.
@ BOS
The BOS token indicates the begin of sequence. /summary>
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.
DB_LABEL_SELECTION_METHOD
Defines the label selection method.
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.
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.
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-...