-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Optimizer attributes must have a 'type' key specifying the type of optimizer. (Custom or PyTorch) #511
Comments
Can you provide your environment details? |
Environment details: @vedanuj PyTorch version: 1.5.0+cu101 OS: Microsoft Windows 10 Home Single Language Python version: 3.6 Versions of relevant libraries: |
We observed this problem earlier with Windows as well. Can you install mmf from source and try again? |
I did ... I still get the same error: Here is the complete output: @vedanuj `c:\users\acer\appdata\local\programs\python\python36\lib\site-packages\omegaconf\dictconfig.py:252: UserWarning: Keys with dot (../../../mmbt/configs/hateful_memes/defaults.yaml) are deprecated and will have different semantic meaning the next major version of OmegaConf (2.1) 2020-08-25T00:18:13 | transformers.modeling_utils: loading weights file https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased-pytorch_model.bin from cache at C:\Users\Acer/.cache\torch\mmf\distributed_-1\aa1ef1aede4482d0dbcd4d52baad8ae300e60902e88fcb0bebdec09afd232066.36ca03ab34a1a5d5fa7bc3d03d55c4fa650fed07220e2eeebc06ce58d0e9a157 WARNING 2020-08-25T00:18:25 | py.warnings: c:\users\acer\mmf\mmf\models\base_model.py:96: UserWarning: No losses are defined in model configuration. You are expected to return loss in your return dict from forward. 2020-08-25T00:18:30 | mmf.trainers.mmf_trainer: Loading optimizer |
Thanks. This might be similar to #295 . Can you try the solution provided there?
|
Hey @vedanuj , I followed the steps given in #295 and also executed the command :
and got the same error as mentioned in #295, which is :
The solution to this error given by @apsdehal in #295 is : `As per alicevision/Meshroom#735, this happens when your google drive is not properly mounted. Can you follow the conversation and steps in that issue to see if that fixes your problem? As with meshroom, this problem is more related to colab rather than mmf. We will also open up a PR on our end to fix this properly by removing all symlinks. Also, if possible try using colab's internal storage instead of your Google Drive. For e.g. clone mmf directly in /content/.` But, as I said I am trying to train the model using my local machine's cmd and not on colab... |
Can you check why you are getting permission denied on local. That seems odd. |
I meet a same problem, which is: The framework is installed in my PC, and I'm sure with "core.symlinks=true". emmm...,, so, could you tell me what wrong with it, please? |
❓ Questions and Help
After running the following code to train an existing model :
mmf_run config=projects/hateful_memes/configs/mmbt/defaults.yaml model=mmbt dataset=hateful_memes training.log_interval=50 training.max_updates=3000 training.batch_size=16 training.evaluation_interval=500
I get the following error :
ValueError: Optimizer attributes must have a 'type' key specifying the type of optimizer. (Custom or PyTorch)
What's going wrong? I am referring to this colab example and trying to execute the code on my machine's cmd.
The text was updated successfully, but these errors were encountered: