Giter VIP home page Giter VIP logo

Comments (7)

taesungp avatar taesungp commented on July 22, 2024

It might be because the dataset found 0 images. Could you elaborate a bit more?

from spade.

dickkky avatar dickkky commented on July 22, 2024

from spade.

taesungp avatar taesungp commented on July 22, 2024

That is strange. I just cloned the repo and followed README, and I found the images in results/coco_pretrained.

I downloaded the pretrained models, did not download coco dataset but used the sample images in ./dataset/coco_stuff. The following was printed to my console. Could you share your console output as well?

python test.py --name coco_pretrained --dataset_mode coco --dataroot datasets/coco_stuff/
----------------- Options ---------------
             aspect_ratio: 1.0                           
                batchSize: 1                             
      cache_filelist_read: True                          
     cache_filelist_write: True                          
          checkpoints_dir: ./checkpoints                 
        coco_no_portraits: False                         
   contain_dontcare_label: True                          
                crop_size: 256                           
                 dataroot: datasets/coco_stuff/                 [default: ./datasets/cityscapes/]
             dataset_mode: coco                          
          display_winsize: 256                           
                  gpu_ids: 0                             
                 how_many: inf                           
                init_type: xavier                        
            init_variance: 0.02                          
                  isTrain: False                                [default: None]
                 label_nc: 182                           
       load_from_opt_file: False                         
                load_size: 256                           
         max_dataset_size: 9223372036854775807           
                    model: pix2pix                       
                 nThreads: 0                             
                     name: coco_pretrained                      [default: label2coco]
                      nef: 16                            
                     netG: spade                         
                      ngf: 64                            
                  no_flip: True                          
              no_instance: False                         
         no_pairing_check: False                         
                   norm_D: spectralinstance              
                   norm_E: spectralinstance              
                   norm_G: spectralspadesyncbatch3x3     
    num_upsampling_layers: normal                        
                output_nc: 3                             
                    phase: test                          
          preprocess_mode: resize_and_crop               
              results_dir: ./results/                    
           serial_batches: True                          
                  use_vae: False                         
              which_epoch: latest                        
                    z_dim: 256                           
----------------- End -------------------
dataset [CocoDataset] of size 8 was created
Network [SPADEGenerator] was created. Total number of parameters: 97.5 million. To see the architecture, do print(network).
/mnt/ilcompfbd1/user/tapark/miniconda3/envs/python3/lib/python3.6/site-packages/torch/nn/modules/upsampling.py:129: UserWarning: nn.Upsample is deprecated. Use nn.functional.interpolate instead.
  warnings.warn("nn.{} is deprecated. Use nn.functional.interpolate instead.".format(self.name))
/mnt/ilcompfbd1/user/tapark/miniconda3/envs/python3/lib/python3.6/site-packages/torch/nn/functional.py:1320: UserWarning: nn.functional.tanh is deprecated. Use torch.tanh instead.
  warnings.warn("nn.functional.tanh is deprecated. Use torch.tanh instead.")
process image... datasets/coco_stuff/val_img/000000000139.jpg
process image... datasets/coco_stuff/val_img/000000000785.jpg
process image... datasets/coco_stuff/val_img/000000001268.jpg
process image... datasets/coco_stuff/val_img/000000001490.jpg
process image... datasets/coco_stuff/val_img/000000001503.jpg
process image... datasets/coco_stuff/val_img/000000001584.jpg
process image... datasets/coco_stuff/val_img/000000001818.jpg
process image... datasets/coco_stuff/val_img/000000001993.jpg

from spade.

dickkky avatar dickkky commented on July 22, 2024

from spade.

taesungp avatar taesungp commented on July 22, 2024

Your --name option value is a bit weird. It's usually a name of the experiment, not the path to the checkpoint file.

Could you put the pretrained model at ./checkpoints/coco_pretrained/, and use --name coco_pretrained instead of the full path?

from spade.

dickkky avatar dickkky commented on July 22, 2024

You are amazing. Yes, I solved it using your suggestion. Thanks again.

from spade.

imnaren142 avatar imnaren142 commented on July 22, 2024

close this if your issue is resolved.

from spade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.