Skip to content

Conversation

@rhoadesScholar
Copy link

Need to try testing this on the staging site - waiting for documentation of how to do that.

rhoadesScholar and others added 3 commits April 28, 2025 16:32
…n template for status display

Implement download_results view for evaluation results in JSON format

Update .gitignore to include VS Code specific files
@rhoadesScholar
Copy link
Author

rhoadesScholar commented Apr 28, 2025

This adds:

  • Download link for collaborators to download full results.json file
  • Shows percent completion of evaluation for an upload

@rhoadesScholar
Copy link
Author

@rhoadesScholar rhoadesScholar marked this pull request as ready for review May 5, 2025 15:09
@rhoadesScholar
Copy link
Author

rhoadesScholar commented Jun 2, 2025

Dependent on janelia-cellmap/cellmap-segmentation-challenge#158

Now complete. Can be tested in staging.
@jnywong

@jnywong jnywong self-requested a review June 12, 2025 10:05
@jnywong jnywong force-pushed the results_view_update branch from e5f1d88 to f1c986b Compare June 16, 2025 08:48
@jnywong jnywong linked an issue Jun 16, 2025 that may be closed by this pull request
@jnywong
Copy link
Member

jnywong commented Jun 16, 2025

Hey @rhoadesScholar ! I have deployed this to the staging website and the evaluation has failed with the error

concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

You can see the full evaluator logs at https://staging.cellmapchallenge.2i2c.cloud/submissions/40.

It could be due to the limited resources I have allocated to the staging site, see 2i2c-org/frx-challenges-deploy#84

@rhoadesScholar
Copy link
Author

rhoadesScholar commented Jun 16, 2025

It could be due to the limited resources I have allocated to the staging site, see 2i2c-org/frx-challenges-deploy#84

@jnywong
Absolutely - I can retry with a smaller submission. I'm not seeing the download link showing up in the results pages of already evaluated results though...

@rhoadesScholar
Copy link
Author

@jnywong Just ran with a small submission and it was fine: https://staging.cellmapchallenge.2i2c.cloud/versions/63

@rhoadesScholar
Copy link
Author

@jnywong I just pushed an update to try to fix the download link not showing up. Can you try pushing it to the staging?

@jnywong
Copy link
Member

jnywong commented Jun 17, 2025

Okay nice work! I have merged your updates into this PR where the CI/CD is able to build an image. This is so that we can run a container with the website updates from your PR in the staging Kubernetes cluster.

I would like to find a way for you to do this without my intervention!

@rhoadesScholar
Copy link
Author

I would like to find a way for you to do this without my intervention!

That would be awesome!

@rhoadesScholar
Copy link
Author

439ca6f Just reverted a change that seemed to break things: https://staging.cellmapchallenge.2i2c.cloud/versions/43

Comment on lines 147 to 163
@property
def percent_complete(self) -> str:
"""
Return the percentage of completion of this evaluation
"""
if self.status == Evaluation.Status.EVALUATED:
return "100%"
elif self.status == Evaluation.Status.EVALUATING:
if self.result:
percent_complete = self.result.get(
"num_evals_done", 0
) / self.result.get("total_evals", 1)
return f"{int(percent_complete * 100)}%"
else:
return "0%"
else:
return "0%"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work unfortunately. If you look at https://github.com/2i2c-org/frx-challenges/blob/main/frx_challenges/web/management/commands/evaluator.py#L199, you see that the evaluation.result is not saved until the evaluation is 100% complete.

evaluation.status = Evaluation.Status.EVALUATED
evaluation.result = result

This will take a lot more logic in the evaluator to implement. I would suggest removing this component from this PR for now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. I see.
Looks like if we just need to make sure to return even partial results by trying to load the file even if the evaluator hasn't exited and update the evaluation with it even if the evaluator is still running.
I'll move it to a separate PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this to #245 with fixes to the evaluation object updates to gather results even if evaluation is still ongoing.

@rhoadesScholar rhoadesScholar mentioned this pull request Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add progress bar to results view

2 participants