Getting "type object argument after ** must be a mapping" error in image generation
See original GitHub issueHi, @lucidrains,
We have trained the model using OpenAIs pretrained VAE. We have use the train_dalle.py file for training.
python train_dalle.py --image_text_folder=./dataset_images
After training, we have tried to generate the result using the saved model by following command.
python generate.py --dalle_path=/content/DALLE-pytorch/dalle-final.pt --text='bird has wings that are brown and has a red crown' --num_images=20
On running the above command we are facing the error:
Traceback (most recent call last): File "generate.py", line 55, in <module> vae = DiscreteVAE(**vae_params) TypeError: type object argument after ** must be a mapping, not NoneType
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Why this unpacking of arguments does not work?
Save this question. Show activity on this post. I get an error type object argument after ** must be a mapping, not tuple...
Read more >TypeError: DebertaV2ForQuestionAnswering object argument ...
Hi, Iam getting the above type error in my inference code where i input the file ... object argument after ** must be...
Read more >TypeError: 'x' is not iterable - JavaScript - MDN Web Docs
An iterable can be a built-in iterable type such as Array , String or Map , a generator result, or an object implementing...
Read more >format() argument after ** must be a mapping, not NoneType
Undercloud or Overcloud Installation Fails with "TypeError: format() argument after ** must be a mapping, not NoneType".
Read more >MATLAB imresize - Resize image - MathWorks
The axes object contains an object of type image. ... Name-value arguments must appear after other arguments, but the order of the pairs...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pragnakalpdev7 one more patch! https://github.com/lucidrains/DALLE-pytorch/commit/f2b02bab902f4acd435b0eadb4442e2788c0fcae
Hello @afiaka87,
We have already tried this trick, but not getting good results. We think maybe we are missing something.