sunwj / CAR

Content adaptive resampler for image downscaling
GNU General Public License v3.0
472 stars 80 forks source link

Where can I find your training code? #10

Open johnnylu305 opened 4 years ago

johnnylu305 commented 4 years ago

Hi, nice to meet you. I am reading your paper and in your paper you mentioned that you will release the code here. However, I cannot find the training code. Where can I find your training code?

yuqian2019 commented 3 years ago

Do u got the train code?

johnnylu305 commented 3 years ago

@yuqian2019 No, I do not. I tried to write it by myself. But, the performance is not good. Perhaps, something wrong in my code. I hope the authors can share it, but I got no response from them.

johnnylu305 commented 3 years ago

@yuqian2019 You can find my personal training code in my repo. But, the performance is not good. Again, probably something wrong in my code.

yuqian2019 commented 3 years ago

@yuqian2019 You can find my personal training code in my repo. But, the performance is not good. Again, probably something wrong in my code.

ok, thank u very much. I will view ur code, and if i find any error, I will mention u.

vardenppp commented 3 years ago

@yuqian2019 No, I do not. I tried to write it by myself. But, the performance is not good. Perhaps, something wrong in my code. I hope the authors can share it, but I got no response from them.

hello,i tried to use your training code, but i met some mistakes.
"img, kernels, offsets_h, offsets_v, = ctx.saved_tensors ValueError: not enough values to unpack (expected 4, got 0)" So how to solve it. thank you!

vardenppp commented 3 years ago

@yuqian2019 No, I do not. I tried to write it by myself. But, the performance is not good. Perhaps, something wrong in my code. I hope the authors can share it, but I got no response from them.

hello,i tried to use your training code, but i met some mistakes. "img, kernels, offsets_h, offsets_v, = ctx.saved_tensors ValueError: not enough values to unpack (expected 4, got 0)" So how to solve it. thank you!

Oh!, i found it, i have solved it, thank u.

yuqian2019 commented 3 years ago

@yuqian2019 No, I do not. I tried to write it by myself. But, the performance is not good. Perhaps, something wrong in my code. I hope the authors can share it, but I got no response from them.

hello,i tried to use your training code, but i met some mistakes. "img, kernels, offsets_h, offsets_v, = ctx.saved_tensors ValueError: not enough values to unpack (expected 4, got 0)" So how to solve it. thank you!

Oh!, i found it, i have solved it, thank u.

ok! Have u recovery the result? @vardenppp

jacedang commented 3 years ago

@johnnylu305 May I ask a question, in your train code, where did you define the dataset dir (both train and val). I couldn't figure it out. Would appreciate if you can shed some light on it.

johnnylu305 commented 3 years ago

@jacedang You can check this, I think it is in data/DIV2K_dataset.py or data/init.py or others.

jacedang commented 3 years ago

@johnnylu305 I know it should be somewhere in DIV2K_dataset.py But I'm not quite sure what are LQ_root and GT_root. and where is the correct way to put data dir? Could you be more elaborate? Thank you.

brighteast commented 1 year ago

@johnnylu305 hi, really thank you for your code, but i have question. You just use L1 loss in train code. However, in a paper there are 3 loss including TV loss, offset constraint loss. So... i wonder if the results using your code are same with the paper.