Comments (7)
@andrewjong (raghu) dioxe@dioxe-Inspiron-3542:~/project/SwapNet-master$ 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:
['warp', 'args.json']
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
Traceback (most recent call last):
File "inference.py", line 227, in
_run_warp()
File "inference.py", line 147, in _run_warp
opt.warp_checkpoint, cloth_dir=opt.cloth_dir, body_dir=opt.body_dir
File "inference.py", line 58, in _rebuild_from_checkpoint
loaded_opt = _copy_and_load_config(checkpoint_dir).opt
File "inference.py", line 89, in _copy_and_load_config
return config.copy().load(os.path.join(directory, "args.json"))
File "/home/dioxe/project/SwapNet-master/options/base_options.py", line 264, in copy
return copy.deepcopy(self)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 215, in _deepcopy_list
append(deepcopy(a, memo))
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/dioxe/anaconda3/envs/raghu/lib/python3.6/copy.py", line 161, in deepcopy
y = copier(memo)
TypeError: cannot deepcopy this pattern object
from swapnet.
Have the same issue! Please fix!
from swapnet.
Can you post more information? I don't recognize this line from my code, perhaps it's from some library that I used.
from swapnet.
Hello.
The error is showing in the deepcopy() function from copy module in python.
File "/content/SwapNet/options/base_options.py", line 264, in copy return copy.deepcopy(self)
from swapnet.
Thanks for the detailed description. I'll take a look.
from swapnet.
Hi all,
I have pushed a fix to bugfix/17-inference. Can you try it and let me know if it works for you, please?
Interestingly I am unable to reproduce the bug on my machine on the master branch. The bugfix I pushed theoretically should avoid this issue, as it's no longer copying the Options class, though please let me know what happens.
from swapnet.
Seems like this was fixed in the recent merge. Please reopen if you encounter the same problem.
from swapnet.
Related Issues (20)
- How does the inference command work for clothing transfer, exactly? HOT 4
- Make preprocessing easier
- Labels are off by 1, hats are missing HOT 1
- SwapNet Checkpoint Models for Inference
- Colab notebook
- Rehaul the code to use PyTorch Lightning
- ModuleNotFoundError: No module named 'model' HOT 3
- Is it different from MGN? If so, how? HOT 1
- Training Warp stage stops at epoch 3 HOT 3
- inference img HOT 1
- Is there any pre-trained model that can be used in handy? HOT 1
- How to test? HOT 1
- Testing error HOT 2
- Without training trying to test
- Error(s) in loading state_dict() for WrapModule HOT 2
- RuntimeError when training HOT 2
- KeyError: Caught KeyError in DataLoader worker process 0. HOT 6
- Help wanted !! KeyError: Caught KeyError in DataLoader worker process 0. HOT 1
- seaborn dependency not included in environment.yml
- loss.py needs small changes.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swapnet.