summerstay
summerstay
Admins, please mark this as "completed".
I am trying to use the cog with command "sudo cog predict -i @global_directions/data/ffhq/1.jpg". I have downloaded this file. Where do I put it? I tried in both the root...
Thanks, I'll watch for that.
I found a copy here, I think: http://www.cl.cam.ac.uk/~sc609/candc-1.00.html Now I am getting an error make: Entering directory '/home/doug/pl-semantics-master/candc' src/scripts/version unix grep: directory: No such file or directory The shell script...
``` def loss_fn(logp, target, length, mean, logv, anneal_function, step, k, x0, z, split, pad_idx=datasets['train'].pad_idx): # cut-off unnecessary padding from target, and flatten batch_size = logv.shape[0] target = target[:, :torch.max(length).item()].contiguous().view(-1) #-----------------...
I made a similar change in test.py: ``` for k, v in samples.items(): #------------------LINE BELOW HAS CHANGED -------------------------- samples[k] = torch.stack(v)[:args.num_samples].type(torch.LongTensor) z, mean, std = model.encode(samples['input'], samples['length'], return_mean=True, return_std=True) z...
I run train.py. The only parameter I add is the path to the ptb training file, so it is using all the defaults. To test it, I am using a...