TypeError: аргумент join () должен быть str или байтами, а не styleGan2 EasyDict в настраиваемом наборе данных? - PullRequest
0 голосов

Я перехожу по ссылке, приведенной ниже https://colab.research.google.com/github/dvschultz/ai/blob/master/StyleGAN2.ipynb#scrollTo = 8QrOVqEHaipA

Я хочу реализовать stleGan в пользовательском наборе данных. у меня есть наборы капч. когда я начинаю обучение,

!python run_training.py --num-gpus=1 --data-dir=./datasets --config=config-f --dataset=ffhq --mirror- 
 augment=true

у меня следующая ошибка:

Couldn't find valid snapshot, starting over
Local submit - run_dir: results/00002-stylegan2-my-custom-dataset-1gpu-config-f
dnnlib: Running training.training_loop.training_loop() on localhost...
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: 
Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it 

/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: 
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version 
of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: 
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version 
of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: 
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version 
of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_qint32 = np.dtype([("qint32", np.int32, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: 
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version 
of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
File "run_training.py", line 201, in <module>
 main()
File "run_training.py", line 196, in main
 run(**vars(args))
File "run_training.py", line 127, in run
 dnnlib.submit_run(**kwargs)
File "/content/stylegan2/dnnlib/submission/submit.py", line 343, in submit_run
 return farm.submit(submit_config, host_run_dir)
File "/content/stylegan2/dnnlib/submission/internal/local.py", line 22, in submit
 return run_wrapper(submit_config)
File "/content/stylegan2/dnnlib/submission/submit.py", line 280, in run_wrapper
 run_func_obj(**submit_config.run_func_kwargs)
File "/content/stylegan2/training/training_loop.py", line 142, in training_loop
  training_set = dataset.load_dataset(data_dir=dnnlib.convert_path(data_dir), verbose=True, 
 **dataset_args)
 File "/content/stylegan2/training/dataset.py", line 187, in load_dataset
  kwargs['tfrecord_dir'] = os.path.join(data_dir, kwargs['tfrecord_dir'])
 File "/usr/lib/python3.6/posixpath.py", line 94, in join
   genericpath._check_arg_types('join', a, *p)
 File "/usr/lib/python3.6/genericpath.py", line 149, in _check_arg_types
  (funcname, s.__class__.__name__)) from None
 TypeError: join() argument must be str or bytes, not 'EasyDict'
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...