Giter VIP home page Giter VIP logo

Comments (7)

raghubetageri avatar raghubetageri commented on May 28, 2024 1

@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.

Devetec avatar Devetec commented on May 28, 2024 1

Have the same issue! Please fix!

from swapnet.

andrewjong avatar andrewjong commented on May 28, 2024

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.

Mushahid2521 avatar Mushahid2521 commented on May 28, 2024

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.

andrewjong avatar andrewjong commented on May 28, 2024

Thanks for the detailed description. I'll take a look.

from swapnet.

andrewjong avatar andrewjong commented on May 28, 2024

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.

andrewjong avatar andrewjong commented on May 28, 2024

Seems like this was fixed in the recent merge. Please reopen if you encounter the same problem.

from swapnet.

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.