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

Add Model Evaluation Panel #5003

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions app/packages/app/public/model_evaluation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ let theme = extendMuiTheme({
disableRipple: true,
},
},
MuiButton: {
variants: [
{
props: { variant: "contained" },
style: { color: "#ffffff" },
},
],
},
MuiModal: {
styleOverrides: {
root: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { Add, Launch } from "@mui/icons-material";
import { Button, Card, Stack, Typography } from "@mui/material";
import React from "react";
import EvaluationIcon from "./EvaluationIcon";

export default function EmptyOverview(props: EmptyOverviewProps) {
const { height, onEvaluate } = props;
return (
<Card
sx={{
height: `calc(${height}px - 32px)`,
margin: "16px",
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<Stack spacing={2} sx={{ alignItems: "center" }}>
<EvaluationIcon sx={{ fontSize: 48 }} />
<Typography>Run your first model evaluation to see results.</Typography>
<Button
variant="contained"
onClick={onEvaluate}
sx={{ color: "white" }}
startIcon={<Add />}
>
Evaluate Model
</Button>
<Typography color="secondary" sx={{ pt: 8 }}>
Learn more about evaluation models in FiftyOne
</Typography>
<Button
endIcon={<Launch />}
variant="outlined"
color="secondary"
href={"https://docs.voxel51.com/user_guide/evaluation.html"}
target="_blank"
>
View documentation
</Button>
</Stack>
</Card>
);
}

type EmptyOverviewProps = { height: number; onEvaluate: () => void };
Loading
Loading