简体   繁体   中英

Import error - ModuleNotFoundError: No module named 'model'

I am trying to replicate the example mentioned at this address by tensorlayer:

https://github.com/tensorlayer/srgan/blob/master/train.py

It has below import statements:

import time, random
import numpy as np
import scipy, multiprocessing
import tensorflow as tf
import tensorlayer as tl
from model import get_G, get_D
from config import config

But this statement is throwing error: from model import get_G, get_D

ModuleNotFoundError: No module named 'model'

I am unable to find such package on 'pypi.org'

您导入的model是一个自定义模块,将其放置在此srgan ,您也需要克隆train.py的依赖train.py

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM