Open meiguoofa opened 4 years ago
Geez.... i love his work though!! i got the same problem.. was trying so hard to figure why i had this as well...
Any suggestions would be very well appreciated!!
I solve this problem by changing the path to the path that you specify , the args is in the train_options.py ,so change it and do not execute the make_ilsvrc_dataset.py
Hi @meiguoofa !! good afternoon from Singapore!! Sorry for the late reply.. been trying out what u said.. but to no avail, erms.. do you mind explaining what u did in a tad bit more detail?
Thank you in advance!!
What's your error information? you should change the dataset path that you specify in the train_options.py
heyy!!
hmm the train_options.py is as shown:
from .base_options import BaseOptions
class TrainOptions(BaseOptions):
def initialize(self, parser):
BaseOptions.initialize(self, parser)
parser.add_argument('--display_freq', type=int, default=10000,
help='frequency of showing training results on screen')
parser.add_argument('--display_ncols', type=int, default=5,
help='if positive, display all images in a single visdom web panel with
certain number of images per row.')
parser.add_argument('--update_html_freq', type=int, default=10000,
help='frequency of saving training results to html')
parser.add_argument('--print_freq', type=int, default=200,
help='frequency of showing training results on console')
parser.add_argument('--save_latest_freq', type=int, default=5000,
help='frequency of saving the latest results')
parser.add_argument('--save_epoch_freq', type=int, default=1,
help='frequency of saving checkpoints at the end of epochs')
parser.add_argument('--epoch_count', type=int, default=0, help='the
starting epoch count, we save the model by
Sorry,my previous answer may be misleading to you in the base_option.py parser.add_argument('--phase', type=str, default='val', help='train_small, train, val, test, etc') the phase change to train and in the train.py "opt.dataroot = './dataset/ilsvrc2012/%s/' % opt.phase" change to the dataset path that you specify
Oh im almost there! i did as per instructed.. but when running python test.py --name siggraph_caffemodel --mask_cent 0
I get:
Traceback (most recent call last):
File "test.py", line 54, in
Hmmm, may i know if u did any changes to test.py? Sorry its 11 pm here.. still trying to get it working hahahhaa xDD im so close!!
On Wed, Nov 25, 2020 at 8:53 PM meiguoofa notifications@github.com wrote:
Sorry,my previous answer may be misleading to you in the base_option.py parser.add_argument('--phase', type=str, default='val', help='train_small, train, val, test, etc') the phase change to train and in the train.py "opt.dataroot = './dataset/ilsvrc2012/%s/' % opt.phase" change to the dataset path that you specify
β You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/richzhang/colorization-pytorch/issues/15#issuecomment-733688890, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZCGIX3FEIFLO3QG4GZFVLSRT46JANCNFSM4SMXUBGA .
oh yes, i realized its a numpy thing, installed many different numpy packages!
But still to no avail! hmmm may i know what numpy version you were using? Because now, current numpy version (1.19) doesnt support such indexing.
Just wondering if you're still able to run this repo!
So sorry for the trouble!! but yes, hope you have a good good day!! ^.^
On Wed, Nov 25, 2020 at 10:36 PM malcolm tan malcolmthl95@gmail.com wrote:
Oh im almost there! i did as per instructed.. but when running python test.py --name siggraph_caffemodel --mask_cent 0
I get:
Traceback (most recent call last): File "test.py", line 54, in
data_raw[0] = util.crop_mult(data_raw[0], mult=8) File "/home/malcomtan/colorization-pytorch/util/util.py", line 277, in crop_mult return data[:,:,h:h+Hnew,w:w+Wnew] TypeError: slice indices must be integers or None or have an index method Hmmm, may i know if u did any changes to test.py? Sorry its 11 pm here.. still trying to get it working hahahhaa xDD im so close!!
On Wed, Nov 25, 2020 at 8:53 PM meiguoofa notifications@github.com wrote:
Sorry,my previous answer may be misleading to you in the base_option.py parser.add_argument('--phase', type=str, default='val', help='train_small, train, val, test, etc') the phase change to train and in the train.py "opt.dataroot = './dataset/ilsvrc2012/%s/' % opt.phase" change to the dataset path that you specify
β You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/richzhang/colorization-pytorch/issues/15#issuecomment-733688890, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZCGIX3FEIFLO3QG4GZFVLSRT46JANCNFSM4SMXUBGA .
Thanks, But sorry, I donβt know about this problem either , if I solve this problem later, I will discuss with you again , If u solve this problem , I hope u can tell me how to solve this problem.π
yes! definitely!! im trying to solve this problem as well. But if i do, i will DEFINITELY update you! rest assured! you have my word! ^.^
On Thu, Nov 26, 2020 at 10:22 AM meiguoofa notifications@github.com wrote:
Thanks, But sorry, I donβt know about this problem either , if I solve this problem later, I will discuss with you again , If u solve this problem , I hope u can tell me how to solve this problem.π
β You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/richzhang/colorization-pytorch/issues/15#issuecomment-734034992, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZCGIQPP5QD7JRWJOBJRLTSRW3XVANCNFSM4SMXUBGA .
@meiguoofa hey i managed to get it working! For the 3 test.py
you just need to run it in python 2.7
Great job!!!!! Thanks π
You're very welcome! Thank you too for helping!! ^.^
On Thu, Nov 26, 2020 at 1:16 PM meiguoofa notifications@github.com wrote:
Great job!!!!! Thanks π
β You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/richzhang/colorization-pytorch/issues/15#issuecomment-734079369, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZCGIXIF4IRMAMH2EGNH33SRXQCFANCNFSM4SMXUBGA .
The error information is No such file or directory: './dataset/ilsvrc2012/val/1/ILSVRC2012_val_00000059.JPEG',But I can find this image in the directory,Your prompt attention to my question is appreciated,Thanks for your help!!