Skip to content
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

training #3

Open
mojganmdd opened this issue Jun 18, 2019 · 5 comments
Open

training #3

mojganmdd opened this issue Jun 18, 2019 · 5 comments

Comments

@mojganmdd
Copy link

Hi,

I tried to implement exact same thin you have done, I downloaded the data set of NYU called bathrooms_part1.zip and nyu_depth_v2_labeled.mat, then gave both data to the make_dataset.py and I have lots of hazy and gt images in h5 format. I chose 160 of them as training and 40 as val data and tried to train the network. the loss is around 0.005, but when I am taking the 10th epoch and test an image with it, I get yellow images!! do you have any idea what is the reason??

thanks
Mojgan

@yang165
Copy link

yang165 commented Apr 30, 2020

I also have this problem.

@Caesar-xu7
Copy link

Hello, I tried to implement your code, when I run python create_train.py, This error occurred(Traceback (most recent call last):
File "create_train.py", line 42, in
parser.add_argument('--dataset', type=str, require=True, help='path to synthesized hazy images dataset store')
File "/root/miniconda3/envs/aodnet/lib/python3.6/argparse.py", line 1338, in add_argument
action = action_class(**kwargs)
TypeError: init() got an unexpected keyword argument 'require')
my python version is 3.6.13, pytorch = 0.4.0

@leijobs
Copy link

leijobs commented Jun 12, 2023

Hello, I tried to implement your code, when I run python create_train.py, This error occurred(Traceback (most recent call last): File "create_train.py", line 42, in parser.add_argument('--dataset', type=str, require=True, help='path to synthesized hazy images dataset store') File "/root/miniconda3/envs/aodnet/lib/python3.6/argparse.py", line 1338, in add_argument action = action_class(**kwargs) TypeError: init() got an unexpected keyword argument 'require') my python version is 3.6.13, pytorch = 0.4.0

Hello, I just found the bug, it's ‘required’ not 'require',then it works.

@NoviceQAQ
Copy link

I also downloaded the dataset nyu_depth_v2_labeled.mat and provided it to make_datasets to generate many pictures in h5 format. I selected 2400 as train data and 600 as val data. But when I select AOD_net_epoch_rule_10.pth and run test.py
AttributeError: 'collections.Orderedict' object has no attribute 'cuda', how do I solve this problem?

@oceansOfStars1
Copy link

Hi,

I tried to implement exact same thin you have done, I downloaded the data set of NYU called bathrooms_part1.zip and nyu_depth_v2_labeled.mat, then gave both data to the make_dataset.py and I have lots of hazy and gt images in h5 format. I chose 160 of them as training and 40 as val data and tried to train the network. the loss is around 0.005, but when I am taking the 10th epoch and test an image with it, I get yellow images!! do you have any idea what is the reason??

thanks Mojgan

I also encountered this issue. The images from my tests turned out yellowish. Have you managed to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants