LieKKKKK
LieKKKKK
> The problem has been resolved. Thank you for your help. Can you help me how to use the my_test fun above to test on a single img
> ``` > def my_test(model, opt): > dataset_dir = opt['name'] > out_dir = os.path.join( "..", "experiments", dataset_dir) > > if not os.path.exists(out_dir): > os.makedirs(out_dir) > > > out_dir = os.path.join(out_dir,...
> ``` > def my_test(model, opt): > dataset_dir = opt['name'] > out_dir = os.path.join( "..", "experiments", dataset_dir) > > if not os.path.exists(out_dir): > os.makedirs(out_dir) > > > out_dir = os.path.join(out_dir,...
> Have to add this line > > ``` > # process data > Nimg = Nimg / 255.0 # Normalisation > Nimg = torch.from_numpy(np.transpose(Nimg, (2, 0, 1))).type(torch.FloatTensor) > ```...
Hey guys, i solved this problem by changing the value of workers_per_gpu and batchsize_per_gpu in the config yml file
> pls share solution if you have dealt with it. thanks Hey guys, i solved this problem by changing the value of workers_per_gpu and batchsize_per_gpu in the config yml file
> D:\ANACONDA\envs\yy\lib\site-packages\pytorch_lightning\utilities\data.py:110: UserWarning: `DataLoader` returned 0 length. Please make sure this was your intention. rank_zero_warn( D:\ANACONDA\envs\yy\lib\site-packages\pytorch_lightning\utilities\data.py:141: UserWarning: Total length of `CombinedLoader` across ranks is zero. Please make sure this was...
its seems like my torch version does not equal to yours.Here is my env `certifi 2020.6.20 cycler 0.10.0 decorator 5.1.1 h5py 2.10.0 imageio 2.9.0 importlib-resources 3.2.1 kiwisolver 1.1.0 lmdb 1.4.1...