Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Area of Interest ==> Training Area #222

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/components/Layout/Feedback/Feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const Feedback = (props) => {
}
const navigate = useNavigate();
const onEachFeatureOriginalAOIs = (feature, layer) => {
layer.bindPopup("Original dataset AOI");
layer.bindPopup("Original dataset TA");
};

const selectAOIHandler = (e, zoom) => {
Expand Down
16 changes: 7 additions & 9 deletions frontend/src/components/Layout/Feedback/FeedbackAOI.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ const FeedbackAOI = (props) => {
return (
<>
<Grid item md={12} className="card" marginBottom={1}>
<Tooltip title="For each AOI, we need to make sure labels inside it are alighed and complete to acheive best model accuracy">
<Typography sx={{ mt: 4, mb: 2 }} variant="h6" component="div">
List of feedback area of Interests{` (${data?.features.length})`}
<Tooltip title="For maximum model accuracy, the map features need to be aligned and complete in every TA."> <Typography sx={{ mt: 4, mb: 2 }} variant="h6" component="div">
List of feedback for TAs{` (${data?.features.length})`}
</Typography>
</Tooltip>
<Demo>
Expand Down Expand Up @@ -181,9 +180,9 @@ const FeedbackAOI = (props) => {
<span style={{ color: "red" }}>
{parseInt(layer.area) < 5000 ? (
<>
Area seems to be very small for an AOI
The area is very small for a TA
<br />
Please delete it and create a bigger AOI
Delete it and create a bigger TA
</>
) : (
""
Expand Down Expand Up @@ -297,7 +296,7 @@ const FeedbackAOI = (props) => {
/>
</IconButton>
</Tooltip>
<Tooltip title="Fetch OSM Data in this AOI">
<Tooltip title="Fetch OSM Data in this TA">
<IconButton
aria-label="comments"
sx={{ width: 24, height: 24 }}
Expand Down Expand Up @@ -339,7 +338,7 @@ const FeedbackAOI = (props) => {
<ZoomInMap fontSize="small" />
</IconButton>
</Tooltip>
<Tooltip title="Delete AOI">
<Tooltip title="Delete this TA">
<IconButton
aria-label="comments"
sx={{ width: 24, height: 24 }}
Expand All @@ -359,8 +358,7 @@ const FeedbackAOI = (props) => {
</Demo>
{props.mapLayers && props.mapLayers.length === 0 && (
<Typography variant="body1" component="h2">
No AOIs yet, start creating one by selecting AOIs on the top and
create a polygon
No TA yet. Start creating one by selecting Draw a rectangle, 3rd down at the top left.
</Typography>
)}
</Grid>
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/components/Layout/TrainingDS/DatasetEditor/AOI.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const AOI = (props) => {
return (
<>
<Grid item md={12} className="card" marginBottom={1}>
<Tooltip title="For each AOI, we need to make sure that the map data inside it is aligned and complete">
<Tooltip title="For each TA, we need to make sure that the map data inside it is aligned and complete">
<Typography sx={{ mt: 4, mb: 2 }} variant="h6" component="div">
Areas of Interest{` (${props.mapLayers.length})`}
</Typography>
Expand Down Expand Up @@ -151,9 +151,9 @@ const AOI = (props) => {
<span style={{ color: "red" }}>
{parseInt(layer.area) < 5000 ? (
<>
The area is very small for an AOI
The area is very small for a TA
<br />
Delete it and create a bigger AOI
Delete it and create a bigger TA
</>
) : (
""
Expand Down Expand Up @@ -290,14 +290,14 @@ const AOI = (props) => {
/>
</IconButton>
</Tooltip>
<Tooltip title="Fetch OSM data for this AOI">
<Tooltip title="Fetch OSM data for this TA">
<IconButton
aria-label="comments"
sx={{ width: 24, height: 24 }}
className="margin1"
onClick={(e) => {
mutateFetch(layer.aoiId);
console.log("Call raw data API to fetch OSM labels");
console.log("Call raw data API to fetch OSM data");
}}
>
<MapTwoTone fontSize="small" />
Expand All @@ -313,7 +313,7 @@ const AOI = (props) => {
}}>
<PlaylistRemoveIcon />
</IconButton> */}
<Tooltip title="Zoom to AOI">
<Tooltip title="Zoom to TA">
<IconButton
sx={{ width: 24, height: 24 }}
className="margin1"
Expand Down Expand Up @@ -343,7 +343,7 @@ const AOI = (props) => {
<ZoomInMap fontSize="small" />
</IconButton>
</Tooltip>
<Tooltip title="Delete AOI">
<Tooltip title="Delete TA">
<IconButton
aria-label="comments"
sx={{ width: 24, height: 24 }}
Expand All @@ -365,7 +365,7 @@ const AOI = (props) => {
</Demo>
{props.mapLayers && props.mapLayers.length === 0 && (
<Typography variant="body1" component="h2">
No AOIs yet, start creating one by clicking Draw a rectangle, 3rd down at the top
No TAs yet, start creating one by clicking Draw a rectangle, 3rd down at the top
left of the image/map
</Typography>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ const DatasetList = (props) => {
</Grid>
<Grid item xs={12}>
<Typography variant="body1" component="div">
A dataset is a set of images of areas of interest (AOIs) and
corresponding OSM map data. The OSM data will be used to teach
the model how to create map features from images. The OSM
data for the AOI needs to be of high quality, because the
model will try to mimic all its tendencies, even the bad ones.
A dataset is a set of images of Training Areas (TAs) and
corresponding OSM map data. The OSM data will be used to teach
the model how to create map features from images. The OSM data
for the TA needs to be of high quality, because the model will
try to mimic all its tendencies, even the bad ones.
</Typography>
</Grid>
{error && (
Expand Down
Loading