juglab / cryoCARE_pip

PIP package of cryoCARE
BSD 3-Clause "New" or "Revised" License
25 stars 14 forks source link

cryoCARE_predict.py unable to run (cryocare_11) #40

Closed virlyananda closed 1 year ago

virlyananda commented 1 year ago

Hello, I tried running the latest version of cryocare (for CUDA 11) and was able to implement the training part (here I was able to obtain .tar.gz file). However, I encountered an issue with the prediction step where it mentions json.decoder.JSONDecodeError. I installed all the necessary packages from cryocare_11 environment, so I'm not sure where the problem is. Please let me know if anyone encountered similar issue or if there's anyway I could fix this. Thank you!

EuanPyle commented 1 year ago

Hmm, not sure. Can you paste the whole error here with the command you used to run the prediction step and the predict json file please? Thanks

virlyananda commented 1 year ago

Hello, I was just trying the package with sample dataset, I didn't change much of anything except the path file. This is the issue I got.

Screen Shot 2022-12-05 at 2 12 00 PM Screen Shot 2022-12-05 at 2 12 44 PM
EuanPyle commented 1 year ago

Can you change False to "False" in the overwrite row in the json? If that is the issue sorry!

virlyananda commented 1 year ago

Thank you. It works.

virlyananda commented 1 year ago

Also, do you know if the program works for different type of bin (binning) size?

EuanPyle commented 1 year ago

Should work, yes

virlyananda commented 1 year ago

Hello, Do you know if there's an alternative to align, split and generate even/odd tomograms more efficiently? I notice I could no longer use the cryoCARE_T2T align & split due to different IMOD version issue. As recommended from the cryocare_pip, I tried using alignframes -debug 10000 but it only gave me the frames that have been split but not the .rec tomograms on both ends (which is what we need for the training inputs). Looking forward to hear your thoughts! Thanks!

EuanPyle commented 1 year ago

I don't sorry, I have a personalised way of dealing with generating even/odd tomos which isn't publicly available yet and won't be for a while. Can you not just install the correct version of IMOD?

virlyananda commented 1 year ago

Ok. Thank you!

thorstenwagner commented 1 year ago

I guess this is solved.