-
Notifications
You must be signed in to change notification settings - Fork 34
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
Dataset loader issue #20
Comments
Are you using a version of python lower than 3.6? |
Yes. I'm using python version 3.5.6 |
That's it. Python 3.5.6 doesn't support f-string. |
Which version should I use? |
Python>=3.6 |
I have installed python 3.6.10 version and pytorch version 1.4.0. But I'm getting the following error now: Traceback (most recent call last): |
Hi, deeply thanks for your attention. But all these errors could be solved by yourself. Please try to get familiar with the code. It will save you a lot of communication time. |
Thank you very much for your time and consideration. Yes, I'm trying to comprehend the code. I just asked since the error appears to be caused by a version issue. |
I have used only DIV2K dataset which is stored in the folder named "datasets". The config.py file is changed accordingly.
`from easydict import EasyDict as edict
class Config:
# dataset
DATASET = edict()
DATASET.TYPE = 'MixDataset'
DATASET.DATASETS = ['DIV2K']
DATASET.SPLITS = ['TRAIN']
DATASET.PHASE = 'train'
DATASET.INPUT_HEIGHT = 48
DATASET.INPUT_WIDTH = 48
DATASET.SCALE = 4
DATASET.REPEAT = 1
DATASET.VALUE_RANGE = 255.0
DATASET.SEED = 100`
The init.py is also changed.
Traceback (most recent call last):
File "train.py", line 17, in
from dataset import get_dataset
File "/home/BebyGAN/Simple-SR-master/exps/BebyGAN/../../dataset/init.py", line 15
importlib.import_module(f'datasets.{file_name}')
^
SyntaxError: invalid syntax
Please help me on this regards @fenglinglwb
The text was updated successfully, but these errors were encountered: