Giter Club home page Giter Club logo

Comments (8)

br-salima avatar br-salima commented on July 24, 2024

hello do you know the role of exp_id in the code ?

from cnniqa.

lidq92 avatar lidq92 commented on July 24, 2024

@RainFZY Read the Readme.md and use --help for these two *.py files to get help.

Just set --model_file, for example, python test_demo.py --im_path=data/I03_01_1.bmp --model_file=your/model/path.
It is the same in test_cross_dataset.py.

from cnniqa.

lidq92 avatar lidq92 commented on July 24, 2024

@salmora See #21 .

from cnniqa.

RainFZY avatar RainFZY commented on July 24, 2024

@RainFZY Read the Readme.md and use --help for these two *.py files to get help.

Just set --model_file, for example, python test_demo.py --im_path=data/I03_01_1.bmp --model_file=your/model/path.
It is the same in test_cross_dataset.py.

I mean how to create the model file itself. For example if i use CNN, then i have to create a model file CNNIQA-LIVE, which you already offered. But if I want switch to my own model, how can I get those model files? In other words, I know how to use them but i just have no idea how can I get them? Thanks a lot

from cnniqa.

RainFZY avatar RainFZY commented on July 24, 2024

@RainFZY Read the Readme.md and use --help for these two *.py files to get help.

Just set --model_file, for example, python test_demo.py --im_path=data/I03_01_1.bmp --model_file=your/model/path.
It is the same in test_cross_dataset.py.

model --> model file
CNN --> CNN-LIVE
other model --> ???
The ??? is what I need, i hope i can express my questions clearly this time.

from cnniqa.

lidq92 avatar lidq92 commented on July 24, 2024

@RainFZY I didn't get what you mean.
I suggest you read the whole repo again.

Based on your further comments, here I give more comments.
You said you have already run the training file main.py, so you would have get your trained model (line 174 in main.py saves the model with best val performance), which is named used the string trained_model_file = 'checkpoints/{}-{}-EXP{}-lr={}'.format(args.model, args.database, args.exp_id, args.lr), you can just rename the final model with a simple name, such as CNNIQA-[your_dataset_name]. Then you can use this final model in the test phase (Make sure you will not test the training images, since it does not make sense.).

from cnniqa.

br-salima avatar br-salima commented on July 24, 2024

I think in test_cross_dataset.py , they use another database just to see the performance of the modele , and in the paper they use TID2008 , you have to read the paper ,it describes this part.

from cnniqa.

RainFZY avatar RainFZY commented on July 24, 2024

@RainFZY I didn't get what you mean.
I suggest you read the whole repo again.

Based on your further comments, here I give more comments.
You said you have already run the training file main.py, so you would have get your trained model (line 174 in main.py saves the model with best val performance), which is named used the string trained_model_file = 'checkpoints/{}-{}-EXP{}-lr={}'.format(args.model, args.database, args.exp_id, args.lr), you can just rename the final model with a simple name, such as CNNIQA-[your_dataset_name]. Then you can use this final model in the test phase (Make sure you will not test the training images, since it does not make sense.).

Thanks a lot, my problem is solved.

from cnniqa.

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.