Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Testing error #44

Open
chethan-reddy2 opened this issue Aug 6, 2020 · 2 comments
Open

Testing error #44

chethan-reddy2 opened this issue Aug 6, 2020 · 2 comments

Comments

@chethan-reddy2
Copy link

(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'

@morizin
Copy link

morizin commented Aug 18, 2022

add a additional argument in the command --load_epoch 18

@JerryZhu-1210
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants