SwapNet icon indicating copy to clipboard operation
SwapNet copied to clipboard

Testing error

Open chethan-reddy2 opened this issue 4 years ago • 2 comments

(swapnet) C:\Users\Rohit\SwapNet>python inference.py --checkpoint checkpoints/deep_fashion --dataroot data/deep_fashion --shuffle_data True model None dataset None =====OPTIONS====== config_file : None comments : verbose : False display_winsize : 256 checkpoints_dir : ./checkpoints load_epoch : latest dataset : None dataset_mode : image cloth_representation : labels body_representation : rgb cloth_channels : 19 body_channels : 12 texture_channels : 3 pad : False load_size : 128 crop_size : 128 crop_bounds : None max_dataset_size : 50 batch_size : 8 shuffle_data : True num_workers : 4 gpu_id : 0 no_confirm : False interval : 1 warp_checkpoint : None texture_checkpoint : None checkpoint : checkpoints/deep_fashion body_dir : None cloth_dir : None texture_dir : None results_dir : results skip_intermediates : False dataroot : data/deep_fashion model : None name : is_train : False

The experiment directory 'results' already exists. Here are its contents: ['args.json', 'warp']

Existing data will be overwritten! Are you sure you want to continue? (y/N): y

Set warp_checkpoint to checkpoints/deep_fashion\warp\latest_net_generator.pth Set texture_checkpoint to checkpoints/deep_fashion\texture\latest_net_generator.pth Running warp inference... Rebuilding warp from checkpoints/deep_fashion\warp\latest_net_generator.pth Not overriding: {'checkpoint', 'dataroot', 'shuffle_data'} initialize network with kaiming model [WarpModel] was created loading the model generator from checkpoints/deep_fashion\warp\latest_net_generator.pth Traceback (most recent call last): File "inference.py", line 217, in _run_warp() File "inference.py", line 136, in _run_warp warp_model, warp_dataset = _rebuild_from_checkpoint( File "inference.py", line 74, in _rebuild_from_checkpoint model.load_model_weights("generator", checkpoint_file).eval() File "C:\Users\Rohit\SwapNet\models\base_model.py", line 184, in load_model_weights state_dict = torch.load(weights_file, map_location=self.device) File "C:\Users\Rohit\anaconda3\envs\swapnet\lib\site-packages\torch\serialization.py", line 571, in load with _open_file_like(f, 'rb') as opened_file: File "C:\Users\Rohit\anaconda3\envs\swapnet\lib\site-packages\torch\serialization.py", line 229, in _open_file_like return _open_file(name_or_buffer, mode) File "C:\Users\Rohit\anaconda3\envs\swapnet\lib\site-packages\torch\serialization.py", line 210, in init super(_open_file, self).init(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/deep_fashion\warp\latest_net_generator.pth'

chethan-reddy2 avatar Aug 06 '20 04:08 chethan-reddy2

add a additional argument in the command --load_epoch 18

morizin avatar Aug 18 '22 15:08 morizin

Hello, did you implement it with Windows? I made some errors during the implementation, can you share your file with me? I'm a beginner

JerryZhu-1210 avatar Mar 31 '23 09:03 JerryZhu-1210