leginon-org / leginon-redmine-archive

1 stars 0 forks source link

ptolemy active learning implementation #14113

Open leginonbot opened 4 months ago

leginonbot commented 4 months ago

Author Name: Anchi Cheng (@anchi2c) Original Redmine Issue: 14113, https://emg.nysbc.org/redmine/issues/14113 Original Date: 2023-01-11 Original Assignee: Anchi Cheng


Using ptolemy_server to decide next square to visit in data collection.

leginonbot commented 4 months ago

Original Redmine Comment Author Name: Anchi Cheng (@anchi2c) Original Date: 2023-10-31T18:18:59Z


Setting up:

  1. Set up ptolemy.cfg based on leginon/ptolemy.cfg.template. The configuration file search pattern follows the same logic as in [[Configure_leginoncfg]].
  2. Start ptolemy service
  3. In leginon environment, test server operation with leginon/ptolemyhandler.py by
    
    python ptolemyhandler.py

* If it can not find the hardcoded MosaicTileData dbid=1945 in your leginondb database, please change it at the end of the script to one that is valid for the test.

4. Replace the two nodes for "Square Targeting" and "Exposure Targeting" with node classes that uses active learning ptolemy in your MSI application.  See [[Use_the_Application_Editor_to_create_Leginon_applications]] on how to edit using gui
"Square Targeting": MosaicLearnTargetFinder
"Exposure Targeting": PtolemyMmTargetFinder

5. Launch leginon and your modified MSI application, set settings of these new nodes.

* The settings for MosaicLearnTargetFinder is the same as MosaicScoreTargetFinder class
* The settings for PtolemyMmTargetFinder is similar to ScoreTargetFinder but without the need to specify the script path