GithubHelp home page GithubHelp logo

simplify23 / mrn Goto Github PK

View Code? Open in Web Editor NEW
51.0 3.0 9.0 1.99 MB

Official Pytorch implementations of MRN: Multiplexed Routing Network for Incremental Multilingual Text Recognition (ICCV 2023)

License: MIT License

Python 99.95% Shell 0.05%
incremental-learning ocr der ewc lwf wa

mrn's Introduction

Hi everyone 👋

I am a graduate student with a master's degree from Fudan University. My main research area lies within computer vision, with a specific focus on scene text recognition, incremental learning, and recommendation algorithms. I am actively seeking opportunities for doctoral positions. If my work catches your interest, please don't hesitate to get in touch with me.

📎 Homepages

mrn's People

Contributors

bigyellowpie avatar ku21fan avatar simplify23 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  avatar

Watchers

 avatar  avatar  avatar

mrn's Issues

when i train the model,it tells me i don't have the best record of the model,but i don't train the model ever,how can i haddle this?

PS D:\text_recgonition_code\MRN-main> python tiny_train.py --config=config/crnn_mrn.py --exp_name CRNN_real
D:\text_recgonition_code\MRN-main
Command line input: CUDA_VISIBLE_DEVICES=0 python tiny_train.py --config=config/crnn_mrn.py --exp_name CRNN_real
----------- CRNN_MRN ------------

No Transformation module specified

select_data: ['D:/text_recgonition_code/MRN-main/dataset/MLT17_IL/train_2017']

2702
num samples: 2687
dict has 1895 number characters

characters dict has: 1899

No Transformation module specified
mlp DM_Router(
(norm): LayerNorm((256,), eps=1e-05, elementwise_affine=True)
(proj_1): Linear(in_features=256, out_features=512, bias=True)
(activation): GELU(approximate=none)
(spatial_gating): SpatialDomainGating(
(norm): LayerNorm((256,), eps=1e-05, elementwise_affine=True)
(proj): Linear(in_features=63, out_features=63, bias=True)
)
(channel_gating): ChannelDomainGating(
(norm): LayerNorm((63,), eps=1e-05, elementwise_affine=True)
(proj): Linear(in_features=256, out_features=256, bias=True)
)
(proj_2): Linear(in_features=256, out_features=256, bias=True)
(proj_3): Linear(in_features=256, out_features=256, bias=True)
) has 1 layers
Trainable params num: 9.27 M

Total paramerters: 9.27 M

Traceback (most recent call last):
File "tiny_train.py", line 463, in
train(opt, log)
File "tiny_train.py", line 276, in train
learner.incremental_train(taski, opt.character, train_loader, valid_loader)
File "D:\text_recgonition_code\MRN-main\il_modules\mrn.py", line 165, in incremental_train
self._train(0, taski, train_loader, valid_loader,step=0)
File "D:\text_recgonition_code\MRN-main\il_modules\mrn.py", line 190, in _train
self.model.load_state_dict(torch.load(f"{saved_best_model}"), strict=True)
File "C:\ProgramData\anaconda3\envs\mmocr\lib\site-packages\torch\serialization.py", line 699, in load
with _open_file_like(f, 'rb') as opened_file:
File "C:\ProgramData\anaconda3\envs\mmocr\lib\site-packages\torch\serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "C:\ProgramData\anaconda3\envs\mmocr\lib\site-packages\torch\serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './saved_models/CRNN_MRN/Chinese_0_0_best_score.pth'

Something wrong about the project

When I tried to execute demo.py, an error occurred:
ModuleNotFoundError: No module named 'utils'
Then I find the module named 'utils' has gone.
Can you provide the complete code? Thank you very much!

want to get touch with you

Thank you for you work,I have some problems about the process of the train,how can i get touch with you,thank you so much

Training my datasets

How can I train my datasets?What is the format of the data?Thank you very much!

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.