mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-27 02:01:40 +00:00
Add playwright E2E tests (#2174)
This commit is contained in:
@@ -212,12 +212,23 @@ public class NeuralNetworkModelManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the singleton instance of the NeuralNetworkModelManager
|
||||
* Returns the singleton instance of the NeuralNetworkModelManager. Call getInstance() to use the
|
||||
* default (no reset), or getInstance(true) to reset.
|
||||
*
|
||||
* @return The singleton instance
|
||||
*/
|
||||
public static NeuralNetworkModelManager getInstance() {
|
||||
if (INSTANCE == null) {
|
||||
return getInstance(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the singleton instance of the NeuralNetworkModelManager, optionally resetting it.
|
||||
*
|
||||
* @param reset If true, resets the instance
|
||||
* @return The singleton instance
|
||||
*/
|
||||
public static NeuralNetworkModelManager getInstance(boolean reset) {
|
||||
if (INSTANCE == null || reset) {
|
||||
INSTANCE = new NeuralNetworkModelManager();
|
||||
}
|
||||
return INSTANCE;
|
||||
|
||||
Reference in New Issue
Block a user