-
Notifications
You must be signed in to change notification settings - Fork 47
Error in building model #31
Comments
Hi Chinmaya, it looks like you made breaking changes to the Makefile. 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. |
Hi Siegfried,
I have downloaded new prosit, fragmentation and irt model files again and
stored in a new folder and ran your command to make server. But, I still
ending up with the same error.
*[root@csbmm64 prosit-master_new]# make server
MODEL_SPECTRA=fragmentation_model MODEL_IRT=irt_modelnvidia-docker build
-qf Dockerfile -t prosit .docker build -qf Dockerfile -t prosit
.sha256:c37e1069cf7ebe9fbd8fb9b0d0785750ad8ea4916dff901cbc6dff66c0bed118nvidia-docker
run -it \ -v "fragmentation_model":/root/model_spectra/ \ -v
"irt_model":/root/model_irt/ \ -e CUDA_VISIBLE_DEVICES=0 \ -p
5000:5000 \ prosit python3 -m prosit.serverdocker run --runtime=nvidia
-it -v fragmentation_model:/root/model_spectra/ -v
irt_model:/root/model_irt/ -e CUDA_VISIBLE_DEVICES=0 -p 5000:5000 prosit
python3 -m prosit.serverUsing TensorFlow backend.Traceback (most recent
call last): File "/usr/lib/python3.5/runpy.py", line 184, in
_run_module_as_main "__main__", mod_spec) File
"/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code,
run_globals) File "/root/prosit/server.py", line 92, in <module>
trained=True File "/root/prosit/model.py", line 37, in load with
open(config_path, "r") as f:FileNotFoundError: [Errno 2] No such file or
directory: '/root/model_spectra/config.yml'make: *** [Makefile:17: server]
Error 1*
However, this time can see model_irt and model_spectra folders being
created inside the root by the make command which was not occurring
previously. May be because of the changes we did in the root directory.
Later, I copied all config.yml, model.yaml and weight_***.hdf5 files from
both fragmentation model and irt model folders (newly downloaded from
figshare) and pasted inside model_spectra and model_irt directories created
inside the root. Even then, the make server command is terminating with the
same error.
I am not able to fathom what exactly happening here. Please help me to
resolve the same.
…-- Chinmaya
On Thu, Dec 12, 2019 at 6:27 PM Siegfried Gessulat ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#31?email_source=notifications&email_token=AOAW3W5RGN554VKOXIA4GW3QYIYLPA5CNFSM4JZ5Y4RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGWSQAI#issuecomment-564996097>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOAW3W2IG5NMIGRSLUITVTDQYIYLPANCNFSM4JZ5Y4RA>
.
|
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:
The error you posted states that your model_spectra folder does not include a config.yml. |
Hi Seigfried,
As I have mentioned in my earlier email, the make server command was
showing the same error with new prosit files downloaded freshly from your
github source (Please find the attached screen shot of the error).
However, we were able to figure out that the issue was with one of the file
extension present in one of your model. And finally we are able to run the
command make server without any error.
Please check files uploaded in your model_irt_prediction folder in figshare
thoroughly (https://figshare.com/articles/Prosit_-_Model_-_iRT/6965801).
Request you to upload files with exact extensions. I hope you will be able
to figure it out.
Thanks & Regards,
Chinmaya
…On Thu, Dec 12, 2019 at 7:55 PM Siegfried Gessulat ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#31?email_source=notifications&email_token=AOAW3W2AAZU4SXS3SBULMMDQYJCWHA5CNFSM4JZ5Y4RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGW2INQ#issuecomment-565027894>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOAW3W5XLDGE3CSAXMZ4CY3QYJCWHANCNFSM4JZ5Y4RA>
.
|
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! |
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
The text was updated successfully, but these errors were encountered: