GithubHelp home page GithubHelp logo

Comments (5)

tbepler avatar tbepler commented on July 26, 2024

Topaz can parse tif files without any issue. However, denoise train does not work on the movie frames. These need to be aligned and summed first.

from topaz.

ning-2022 avatar ning-2022 commented on July 26, 2024

Thanks for your help. I had successfully split the movie frames and summed them into two group mrc files. However, a new problem had been appeared when I tried to train the denoise model for micrographs. Here is the error information:

......
93 0.9685644149780274 0
94 0.9719996452331543 0
95 0.9726578831672669 0
96 0.972616457939148 0
97 0.9692490220069885 0
98 0.971499752998352 0
99 0.9668266415596009 0
100 0.9698738217353821 0
Traceback (most recent call last):
File "/home/spuser/WN/anaconda3/envs/topaz/bin/topaz", line 33, in
sys.exit(load_entry_point('topaz-em==0.2.5', 'console_scripts', 'topaz')())
File "/home/spuser/WN/anaconda3/envs/topaz/lib/python3.6/site-packages/topaz/main.py", line 148, in main
args.func(args)
File "/home/spuser/WN/anaconda3/envs/topaz/lib/python3.6/site-packages/topaz/commands/denoise.py", line 535, in main
if not os.path.exists(args.output):
File "/home/spuser/WN/anaconda3/envs/topaz/lib/python3.6/genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

I just use the command:
topaz denoise -a partA/ -b partB/ --save-prefix models/
Please help me, I'm not good at python programming.

Ning

from topaz.

tbepler avatar tbepler commented on July 26, 2024

Actually, this looks like a bug in topaz denoise. You can work around it by setting the --output flag to a directory name (like --output ./).

Really, when training the denoising model without passing any additional micrographs to denoise, though, we shouldn't require this parameter. @DarnellGranberry can you add a quick check for len(micrographs) < 1 and skip processing if it is to avoid this problem?

from topaz.

DarnellGranberry avatar DarnellGranberry commented on July 26, 2024

Just added the check. @ning-2022 if you're using v0.2.5 (from pip/conda), then you will still need to use the workaround Tristan gave; if you installed from source, then you can pull master for the updated lines.

from topaz.

ning-2022 avatar ning-2022 commented on July 26, 2024

from topaz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.