You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the file Test.py by using: test.py --ymlpath=./experiment/singleview2500/d2_singleview2500.yml --gpu=0 --dataroot=./data/LIDC-HDF5-256 --dataset=test --tag=d2_singleview2500 --data=LIDC256 --dataset_class=align_ct_xray_std --model_class=SingleViewCTGAN --datasetfile=./data/test.txt --resultdir=./singleview --check_point=30 --how_many=3
and I always get the error TypeError: load() missing 1 required positional argument: 'Loader'
I tried to have the version of 5.4.1 for pyYAML, but I couldn't!! (I read that this might by the solution on some websites)
Anyone can help?
Activity
yinyin-llll commentedon May 9, 2023
you can try this:
import yaml
def cfg_from_yaml(ymlpath):
with open(ymlpath, 'r') as f:
yaml_cfg = yaml.load(f, Loader=yaml.FullLoader) # add Loader parameter
WesleyWu42 commentedon Mar 9, 2024
change the load() to safe_load(),new version of yaml has changed the usage of it