-
Notifications
You must be signed in to change notification settings - Fork 15
multi user mode
To make it easier to use DREM when running events for a single customer DREM needs to be able to be switched into “MUM Mode” where the racer names and models are drawn from the AWS DeepRacer “sponsoring” account that all of the racers initially access to train their models (before they log into their racer profiles)
- Decouple cognito users from racer names
-
- Cognito login changes to username / password combination
-
- As part of this change racer profiles will need to be automatically created with the same username and recorded race runs updated to maintain the association
-
- Users can change their racer name in the racer profile page (and add an avatar etc) (Pro Status ?)
Bonus: this work also paves the wave for support for DeepRacer arcade leaderboard support
This will mean that racers won’t need to create an account in DREM prior to racing their models. The sponsoring account has access to the S3 bucket containing all of the models.
The required information can be accessed through a single API call
ListModels
{
"MaxResults":100,
"ModelType":"REINFORCEMENT_LEARNING",
"SortBy":"CREATION_TIME",
"SortOrder":"DESCENDING"
}
{
"Models":[
{
"AgentAlgorithm":"PPO",
"AgentNetwork":"SIX_LAYER_DOUBLE_HEAD_OUTPUT",
"CarArn":"arn:aws:deepracer:<region>:<account number>:car/fPC6u0y1R8OZy6bEf7mr6Q",
"CarConfiguration":{
"ActionSpace":{
"ActionSpaceType":"DISCRETE",
"MaximumSpeed":4,
"MaximumSteeringAngle":30,
"SpeedGranularity":2,
"SteeringGranularity":5
},
"NeuralNetwork":"DEEP_CONVOLUTIONAL_NETWORK_SHALLOW",
"Sensors":[
"FRONT_FACING_CAMERA"
]
},
"CreatedByAlias":"Alias",
"CreatedInDataAccount":true,
"CreationTime":1704226115586,
"ModelArn":"arn:aws:deepracer:<region>:<account number>:model/reinforcement_learning/05a658c3-f89e-4481-9697-783bc4dbfc20",
"ModelArtifactS3Location":"s3://...../model.tar.gz",
"ModelFramework":"TENSOR_FLOW",
"ModelName":"model",
"ModelPackagingComplete":false,
"ModelSizeInGb":0.34985216800123453,
"Status":"READY",
"WasImported":false,
"WasMigrated":false
}
],
"NextToken":"<next token>"
}
To enable this to work with DREM the current user model relation of user = racer needs to be changed to enable racers to exist without the need for a cognito account