Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Error in building model #31

Closed
chinmayaNK22 opened this issue Dec 12, 2019 · 5 comments
Closed

Error in building model #31

chinmayaNK22 opened this issue Dec 12, 2019 · 5 comments

Comments

@chinmayaNK22
Copy link

Hello,

I am facing an error while running "make server MODEL_SPECTRA=/home/csbmm/chinmaya/prosit-master/Fragmentation_Model/prosit1/ MODEL_IRT=/home/csbmm/chinmaya/prosit-master/iRT_Model/" in Centos7 system. Please find the attached screenshot.

I can understand that, this error is coming from Makefile, where it is looking for a directory or file "/root/model_spectra/" which doesn't exists at all.

Does that mean, we have to create that path with a directory in the root or can we edit the Makefile with new path to build the model?

Can someone help with this?

-- Chinmaya
Screenshot from 2019-12-12 17-32-32

@gessulat
Copy link
Contributor

Hi Chinmaya,

it looks like you made breaking changes to the Makefile.
Prosit assumes that within the Docker container your model is at "/root/model_spectra/".
This is what happens in: https://github.com/kusterlab/prosit/blob/master/Makefile#L18
In your case it maps your MODEL_SPECTRA folder to /root/csbm/prosit/model_spectra.

The easiest way to prevent this error is to revert your changes made to your Makefile (and use our default version). Another option would be to change default paths inside the code, but I would not recommend that, because it may likely break other things.

@chinmayaNK22
Copy link
Author

chinmayaNK22 commented Dec 12, 2019 via email

@gessulat
Copy link
Contributor

Please understand that we cannot debug changes to our code that you made individually and that we don't have access to. We can only provide support for the published code as is.

Also please read and follow the steps described in the README carefully and refrain from making changes to the code or your root directory:

  1. Download the fragmentation and irt model (all files provided: config model and weight files) and save same somewhere. Let's assume the paths to those directories are /path/to/fragmentation_model/ and /path/to/irt_model/, respectively.
  2. Use the make server command
    make server MODEL_SPECTRA=/path/to/fragmentation_model/ MODEL_IRT=/path/to/irt_model/

The error you posted states that your model_spectra folder does not include a config.yml.
If the config.yml is in that folder with this exact name, the error will be different.

@chinmayaNK22
Copy link
Author

chinmayaNK22 commented Dec 14, 2019 via email

@mezarino
Copy link

mezarino commented Nov 8, 2022

Hello both,

the issue is that in some of the Figshare pre-trained model folders, you guys accidentally use "model.yaml" for the extension instead of "model.yml" just change that using the mv or rename command in Linux. Then rerun make server... and problem solved.

Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants