Hi Alex, please go ahead and download cytoseg again, because I made some
updates. You can redo the whole download or just do "svn update" to get
the changes.
I also thresholded the training segmentation. This was not a documented
requirement, but it should be documented now. Thresholded version is here:
/ncmirdata1/rgiuly/alex_train_seg
Finally, I'm using settings2.py for --labelConfigFile. This just tells
it to use nonzero values for the object and zero for non-object in the
training segmentation.
So here's the command. It should work now. Let me know if you have any
more problems.
I've already ran a test with contourListThreshold=0.8 and it looks to be
too high, so you might want to do like 0.6. You'll see the difference if
you try them out a bit.
/usr/local/epd-7.1-2/bin/python run_pipeline_test.py
/ncmirdata5/aperez/cytoseg/data/ZT04/input output3
--trainingImage=/ncmirdata5/aperez/cytoseg/data/ZT04/train_images
--trainingSeg=/ncmirdata1/rgiuly/alex_train_seg
--voxelTrainingLowerBound=*,*,* --voxelTrainingUpperBound=*,*,*
--voxelProcessingLowerBound=*,*,* --voxelProcessingUpperBound=*,*,*
--contourTrainingLowerBound=*,*,* --contourTrainingUpperBound=*,*,*
--contourProcessingLowerBound=*,*,* --contourProcessingUpperBound=*,*,*
--accuracyCalcLowerBound=*,*,* --accuracyCalcUpperBound=*,*,*
--labelConfigFile=settings2.py --voxelWeights=0.0130,0.00064
--contourListWeights=7,1 --contourListThreshold=0.8 --step2 &>
outputfile3.txt
Thanks,
-Rick
Alex Perez wrote:
> Ok, here is the command I used:
>
> /usr/local/epd-7.1-2/bin/python run_pipeline_test.py
> /ncmirdata5/aperez/cytoseg/data/ZT04/input
> /ncmirdata5/aperez/cytoseg/data/ZT04/output
> --trainingImage=/ncmirdata5/aperez/cytoseg/data/ZT04/train_images
> --trainingSeg=/ncmirdata5/aperez/cytoseg/data/ZT04/train_seg
> --voxelTrainingLowerBound=*,*,* --voxelTrainingUpperBound=*,*,*
> --voxelProcessingLowerBound=*,*,* --voxelProcessingUpperBound=*,*,*
> --contourTrainingLowerBound=*,*,* --contourTrainingUpperBound=*,*,*
> --contourProcessingLowerBound=*,*,* --contourProcessingUpperBound=*,*,*
> --accuracyCalcLowerBound=*,*,* --accuracyCalcUpperBound=*,*,*
> --labelConfigFile=settings3.py --voxelWeights=0.0130,0.00064
> --contourListWeights=7,1 --contourListThreshold=0.8 --step1 --step2 2>&1
> | tee cytoseg.log
>
> Thanks,
> Alex
>
> On Wed, Oct 31, 2012 at 2:19 PM, Rick Giuly <
rgi...@gmail.com
> <mailto:
rgi...@gmail.com>> wrote:
>
>
> OK, can you send the whole command line that you used - then I'll
> take a closer look.
>
> -Rick
>
> Alex Perez wrote:
>
> Hi Rick,
>
> The training image and training segmentation stacks are both the
> same
> size and are both 8-bit.
>
> There are 30 images in both training stacks, but for some reason
> it's
> outputting only 20 images to the directories in:
>
> /ncmirdata5/aperez/cytoseg/__data/ZT04/output/voxelOutput/__training/mitochondria
>
> All the other output directories contain 30 images. I'm not sure
> if this
> means anything, just something I noticed looking through the log.
>
> Thanks,
> Alex
>
> On Wed, Oct 31, 2012 at 10:24 AM, Rick Giuly <
rgi...@gmail.com
> <mailto:
rgi...@gmail.com>
> <mailto:
rgi...@gmail.com <mailto:
rgi...@gmail.com>>> wrote:
>
>
> Hi Alex,
>
> Are the training image stack and the training segmentation
> stack two
> different sizes? That might be what's causing the error.
> They'll
> need to have exactly the same dimensions.
>
> The final output will be in <your output
> folder>/voxelOutput/blobs/____resized
>
>
> However, since the error happened, the final output
> probably wasn't
> produced.
>
> Let me know how it goes
>
> Thanks,
> -Rick
>
>
> Alex Perez wrote:
>
> Hey Rick,
>
> The process I started yesterday terminated with the
> error message:
>
> from 0 to 29, loading image index 20, stack has 20 images
> Traceback (most recent call last):
> File "run_pipeline_test.py", line 345, in <module>
> contourSingleStep('____findTrainingContours')
>
> File "run_pipeline_test.py", line 106, in
> contourSingleStep
> runSteps(**segmentationParams)
> File "../run_steps.py", line 129, in runSteps
> detector.run(steps)
> File "../segmentation_manager.py", line 132, in run
>
> self.componentDetector.____runLoadTrainingProbabilityMap(____)
>
> File "../component_detector.py", line 1729, in
> runLoadTrainingProbabilityMap
> self.____contourProcessingTrainingRegio____n)
>
> File "../component_detector.py", line 1761, in
> loadTrainingProbabilityMap
>
>
> loadImageStack(self.____precomputedTrainingProbability____MapFilePath,
> region)
>
> File "../data_viewer.py", line 2758, in loadImageStack
> raise Exception("Tried to load image number %d
> when there
> are only
> %d images in the stack at %s" % (i, len(fileList), path))
> Exception: Tried to load image number 20 when there are
> only 20
> images
> in the stack at
>
> /ncmirdata5/aperez/cytoseg/____data/ZT04/output/voxelOutput/____training/mitochondria/resized
>
>
> Any thoughts on what this means? I also have a full log
> of the
> process,
> if that would be helpful.
>
> There are a bunch of files in the output folder, but
> none of
> them appear
> to be correct. Also, which files in the output folder are
> supposed to be
> the final output?
>
> Thanks,
> Alex
>
> On Tue, Oct 30, 2012 at 1:11 PM, Rick Giuly
> <
rgi...@gmail.com <mailto:
rgi...@gmail.com>
> <mailto:
rgi...@gmail.com <mailto:
rgi...@gmail.com>>
> <mailto:
rgi...@gmail.com <mailto:
rgi...@gmail.com>
> <mailto:
rgi...@gmail.com <mailto:
rgi...@gmail.com>>>> wrote:
>
>
>
> So, for running cytoseg to detect mitochondria on
> jane,
> here's how
> you can do it from the command line:
>
> Download script:
> svn checkout
> */http/*://cytoseg.googlecode.____com/svn/trunk/
> <
http://cytoseg.googlecode.__com/svn/trunk/
> <
http://cytoseg.googlecode.com/svn/trunk/>>
>
> <
http://cytoseg.googlecode.____com/svn/trunk/
>
> <
http://cytoseg.googlecode.__com/svn/trunk/
> <
http://cytoseg.googlecode.com/svn/trunk/>>> cytoseg-read-only
>
> Go into testing folder:
> cd cytoseg
> cd testing
>
> This will set your environmental variables:
> source /home/rgiuly/edp_source7.txt
>
> This runs the process (from the testing folder) -
> with these
> parameters, it will run the example:
> /usr/local/epd-7.1-2/bin/____python
> run_pipeline_test.py
> data/example/input output
> --trainingImage=data/example/____train_images
> --trainingSeg=data/example/____train_seg
> --voxelTrainingLowerBound=*,*,____*
> --voxelTrainingUpperBound=*,*,____*
> --voxelProcessingLowerBound=*,____*,*
> --voxelProcessingUpperBound=*,____*,*
> --contourTrainingLowerBound=*,____*,*
> --contourTrainingUpperBound=*,____*,*
> --contourProcessingLowerBound=____*,*,*
> --contourProcessingUpperBound=____*,*,*
>
> --accuracyCalcLowerBound=*,*,*
> --accuracyCalcUpperBound=*,*,*
> --labelConfigFile=settings3.py
> --voxelWeights=0.0130,0.00064 --contourListWeights=7,1
> --contourListThreshold=0.8 --step1 --step2
>
> To use your data, you'll need to set these
> parameters. You
> can keep
> the rest of the command line just like it is above.
>
> input image stack parameter: data/example/input in
> example
>
> output folder: output in example
>
> training image stack parameter:
> --trainingImage=data/example/____train_images in
> example
>
> training segmentation stack parameter:
> --trainingSeg=data/example/____train_seg in example
> <
http://cytoseg.googlecode.__com__