diff --git a/.github/workflows/backend_build.yml b/.github/workflows/backend_build.yml index 785fc586..10fd0583 100644 --- a/.github/workflows/backend_build.yml +++ b/.github/workflows/backend_build.yml @@ -45,7 +45,7 @@ jobs: run: pip install gdown - name: Download Basemodel - run: gdown --fuzzy https://drive.google.com/file/d/1wvJhkiOrSlHmmvJ0avkAdu9sslFf5_I0/view?usp=sharing + run: gdown --fuzzy https://drive.google.com/file/d/1YQsY61S_rGfJ_f6kLQq4ouYE2l3iRe1k/view?usp=sharing - name: Unzip and Move Basemodel run: unzip checkpoint.tf.zip -d ramp-code/ramp diff --git a/backend/docs/backend_README.md b/backend/docs/backend_README.md index 51ce73b2..56b9d5a0 100644 --- a/backend/docs/backend_README.md +++ b/backend/docs/backend_README.md @@ -24,11 +24,11 @@ The platform that fAIr provides is a further fine-tuning of the base-line model The backend codebase is organised into the following main directories and files: -- docker: This directory contains the Docker configurations for the project. +- [docker](../docker/): This directory contains the Docker configurations for the project. - ramp: This directory contains the RAMP (Rapid Analytics and Model Prototyping) configurations. - solaris: This directory contains the Solaris configurations, a Python library for piping and translation between geospatial and ML formats -- requirements.txt: This file lists the Python dependencies required by the project. +- [requirements.txt](../requirements.txt): This file lists the Python dependencies required by the project. ### Deploying diff --git a/frontend/src/components/Layout/AIModels/AIModelEditor/Trainings.js b/frontend/src/components/Layout/AIModels/AIModelEditor/Trainings.js index 3ddb602e..5b3a4cf7 100644 --- a/frontend/src/components/Layout/AIModels/AIModelEditor/Trainings.js +++ b/frontend/src/components/Layout/AIModels/AIModelEditor/Trainings.js @@ -109,13 +109,17 @@ const TrainingsList = (props) => { }, { field: "timeSpan", - headerName: "Time (hrs)", + headerName: "Time", minWidth: 40, flex: 1, valueGetter: (params) => { // console.log("params",params) - if (params.row.status === "FINISHED") - return timeSpan(params.row.started_at, params.row.finished_at); + if (params.row.status === "FINISHED") { + const time = + timeSpan(params.row.started_at, params.row.finished_at) * 1; + if (time < 1) return `${(time * 60).toFixed(1)} mins`; + else return `${time.toFixed(1)} hr(s)`; + } }, }, { diff --git a/frontend/src/components/Layout/Feedback/Feedback.js b/frontend/src/components/Layout/Feedback/Feedback.js index cfa19794..14c852b2 100644 --- a/frontend/src/components/Layout/Feedback/Feedback.js +++ b/frontend/src/components/Layout/Feedback/Feedback.js @@ -176,7 +176,7 @@ const Feedback = (props) => { function getFeatureStyle(feature) { return { - color: "green", + color: "blue", weight: 3, }; } diff --git a/frontend/src/components/Layout/Start/Prediction/EditableGeoJSON.js b/frontend/src/components/Layout/Start/Prediction/EditableGeoJSON.js index 805403bc..358a807c 100644 --- a/frontend/src/components/Layout/Start/Prediction/EditableGeoJSON.js +++ b/frontend/src/components/Layout/Start/Prediction/EditableGeoJSON.js @@ -66,8 +66,12 @@ function tile2boundingbox(xtile, ytile, zoom) { // } function getFeatureStyle(feature) { - let color = "red"; - if (feature.properties.action !== "INITIAL") { + let color = ""; + if (feature.properties.action === "ACCEPT") { + color = "blue"; + } else if (feature.properties.action === "INITIAL") { + color = "red"; + } else if (feature.properties.action === "JOSM") { color = "green"; } @@ -129,7 +133,7 @@ const EditableGeoJSON = ({ mapref.removeLayer(createdLayer); }; const { accessToken } = useContext(AuthContext); - + const [render, setRender] = useState(Math.random()); const submitFeedback = async (layer) => { try { // console.log("layer", layer); @@ -240,8 +244,9 @@ const EditableGeoJSON = ({ This feedback will be presented on the model (id: ${modelId}, training id: ${trainingId}) for improvements
Comments: -