GithubHelp home page GithubHelp logo

particles_nsu's Introduction

particles_nsu

Public repository with core code for counting particles by means of neural networks.

Requirements

(determined by used mmdetection)

  • Linux or macOS (Windows is not currently officially supported)
  • Python 3.6+
  • PyTorch 1.3+
  • CUDA 9.2+ (If you build PyTorch from source, CUDA 9.0 is also compatible)
  • GCC 5+
  • mmcv 0.2.14+
  • mmdetection 1.0rc (we used commit d0c0418763 that is in between 1.0rc0 and 1.0rc1, the config file and weights are incompatible with some other versions).

You also need to download epoch_500_3x.pth from http://particlesnn.nsu.ru/data/static/weights/epoch_500_3x.pth before start. And to put it into a "weights" subfolder.

The code that works at http://particlesnn.nsu.ru/, MMDetection NanoPart v. 3.0 model is at the nano_predict.py, processFileForSite3_0 procedure. It runs pre-trained neural model, calculates and saves particles statistics. The model initialization code itself is at the getModel3_0 function.

particles_nsu's People

Contributors

mikhailmashukov avatar

Stargazers

 avatar Denis Isaev avatar Liqun Kang avatar  avatar

Watchers

 avatar

Forkers

flydragon2018

particles_nsu's Issues

I got a bug below, Can I know the version of mmcv and mmdet you use? Thanks

Processing sample/Pt-HOPG-01-0041.bmp
building model (config cascade_mask_rcnn_x101_64x4d_fpn_1x_nanopart_3_0.py, weights weights/epoch_500_3x.pth)
/home/iot/anaconda3/envs/torchreid/lib/python3.7/site-packages/mmdet/models/builder.py:53: UserWarning: train_cfg and test_cfg is deprecated, please specify them in model
'please specify them in model', UserWarning)
Traceback (most recent call last):
File "/home/iot/anaconda3/envs/torchreid/lib/python3.7/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
TypeError: init() got an unexpected keyword argument 'num_stages'

Errors from nano_predict.py implementation

I am trying to reproduce the code on your data provided and my custom data by running the nano_predict.py file but I am getting different errors.

The first (shown below) was a type error which I resolved using a new config according to this solution

Screen Shot 2023-01-04 at 4 06 50 PM

After resolving it, I then got an Index Error from line 70 of nano_predict.py (as seen in the screenshot below) that I am yet to rectify and would need help with as I still get the same error even when I use my own data.

Screen Shot 2023-01-04 at 4 10 36 PM

It seems the error is coming from the the content of segms[inst_cls][i] which was passed inside maskUtils.decode(). When I print out the segms[inst_cls][i], it shows the screenshot below.

Screen Shot 2023-01-04 at 4 14 55 PM

I would appreciate any help in rectifying this error. Thanks.

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.