Git Product home page Git Product logo

racnn-pytorch's People

Contributors

klrc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

racnn-pytorch's Issues

Paper level accuracy?

Hi @klrc ,

First of all great repo!!
I have been trying to replicate the results of this paper. Till now, I am stuck at 68% top-1 accuracy. I saw you got 69 top-1 accuracy at 23 epochs. Did you get chance to complete the training and get better results?

Please Let me know thanks!

Why is the enlarged image I saved showing up as a blank gray image?

Thank you very much for your code; it has been a great help to me! However, I have a small question I'd like to ask, if I can still receive your response.

Firstly: After I call the save_img function, the saved image appears as a blank gray image (Image 1). I debugged the issue and it seems to be related to the tensor_to_img function during the value conversion process (since I can display the magnified image using plt.imshow() with colors, as shown in Image 2). However, I'm unsure which step is causing the current problem. Do you have any suggestions?

Secondly: I have a minor question about an image similar to my Image 2. Why are there gradient-like color blocks on top? Even when I initially load the original image using plt.imshow(), it also contains these color blocks, rather than the most original image.
Image 1๏ผš
image
Image 2๏ผš
image

Note: I've replaced the dataset with one related to medical images.

An question about "accuracy of different clsf"

Hi, @klrc
I just started learning RA-CNN, and I have a question for you. Here is your result on the testset:

[2019-12-31 20:06:50] :: Testing on test set ...
[2019-12-31 20:07:10] Accuracy clsf-0@top-1 (201/725) = 79.95050%
[2019-12-31 20:07:10] Accuracy clsf-0@top-5 (201/725) = 94.61634%
[2019-12-31 20:07:10] Accuracy clsf-1@top-1 (201/725) = 74.25743%
[2019-12-31 20:07:10] Accuracy clsf-1@top-5 (201/725) = 91.39851%
[2019-12-31 20:07:10] Accuracy clsf-2@top-1 (201/725) = 74.62871%
[2019-12-31 20:07:10] Accuracy clsf-2@top-5 (201/725) = 90.71782%

I wonder why the accuracy of clsf-0, clsf-1, clsf-2 decreases in order? Shouldn't clsf-2 be a more fine-grained region compared with clsf-1 and clsf-0?
I got the same results on my datasets. If you can help me with this question, I would appreciate it very much! Thank you!

AttributeError: 'RACNN' object has no attribute '__echo_apn'

Thanks for making this project, It's convenient for me to implement RACNN in PyTorch.๐Ÿ˜„
However, When I load a trained model, I found the error below:

(pytorch) root@server:~/RACNN-PYTORCH_orchids# python test.py
Traceback (most recent call last):
  File "test.py", line 12, in <module>
    model = torch.load("build/racnn_mobilenetv2_cub200-e40se401635929775.pt")
  File "/home/user/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/serialization.py", line 607, in load
    return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
  File "/home/user/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/serialization.py", line 882, in _load
    result = unpickler.load()
  File "/home/user/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1130, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'RACNN' object has no attribute '__echo_apn'

After I did some researches, I guess the problem is the typo of these two lines:

torch.save(cls_opt.state_dict, f'build/cls_optimizer-s{stamp}.pt')
torch.save(apn_opt.state_dict, f'build/apn_optimizer-s{stamp}.pt')

If I replace model.state_dict with model.state_dict(), the probelm was solved.
Hope you can edit your code, thanks for your hard work!

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.