Skip to content
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

No Module name 'build_vocab' #22

Open
farzanaanjum opened this issue Mar 2, 2019 · 1 comment
Open

No Module name 'build_vocab' #22

farzanaanjum opened this issue Mar 2, 2019 · 1 comment

Comments

@farzanaanjum
Copy link

I run these libraries :

import torch
import matplotlib.pyplot as plt
import numpy as np
import argparse
import pickle
import os
from torchvision import transforms
from build_vocab import Vocabulary
from model import EncoderCNN, DecoderRNN
from PIL import Image

I got an error :

ModuleNotFoundError Traceback (most recent call last)
in ()
6 import os
7 from torchvision import transforms
----> 8 from build_vocab import Vocabulary
9 from model import EncoderCNN, DecoderRNN
10 from PIL import Image

ModuleNotFoundError: No module named 'build_vocab'

So please anyone find the solution for this error

Thanks !

@SumanthMeenan
Copy link

SumanthMeenan commented Sep 25, 2019

@farzanaanjum Change your current directory to "cd pytorch-tutorial/tutorials/03-advanced/image_captioning/"

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

No branches or pull requests

2 participants