czczup / URST

[AAAI 2022] Towards Ultra-Resolution Neural Style Transfer via Thumbnail Instance Normalization

Home Page:https://arxiv.org/abs/2103.11784

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Li2017 Universal - unhashable type list

nickyvdz-art opened this issue · comments

(Wang) C:\Users\Bob\URST\Li2017Universal>python test.py --content c:\users\bob\desktop\ds.jpg --style c:\users\bob\desktop\dsstyle.jpg --URST
Traceback (most recent call last):
File "test.py", line 166, in
wct = WCT(args).to(device)
File "C:\Users\Bob\URST\Li2017Universal\util.py", line 16, in init
vgg1 = torchfile.load(args.vgg1)
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 424, in load
return reader.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 370, in read_obj
obj._obj = self.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 385, in read_obj
k = self.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 386, in read_obj
v = self.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 370, in read_obj
obj._obj = self.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 387, in read_obj
obj[k] = v
TypeError: unhashable type: 'list'

(Wang) C:\Users\Bob\URST\Li2017Universal>python test.py --content c:\users\bob\desktop\ds.jpg --style c:\users\bob\desktop\dsstyle.jpg --URST
Traceback (most recent call last):
File "test.py", line 166, in
wct = WCT(args).to(device)
File "C:\Users\Bob\URST\Li2017Universal\util.py", line 16, in init
vgg1 = torchfile.load(args.vgg1)
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 424, in load
return reader.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 370, in read_obj
obj._obj = self.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 385, in read_obj
k = self.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 386, in read_obj
v = self.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 370, in read_obj
obj._obj = self.read_obj()
File "C:\Users\Bob\anaconda3\envs\Wang\lib\site-packages\torchfile.py", line 387, in read_obj
obj[k] = v
TypeError: unhashable type: 'list'

I am not sure if this is due to the version of torchfile, my torchfile is 0.1.0.

it also is 0.1.0

it also is 0.1.0

You can try this:
bshillingford/python-torchfile#12

yes, it works fine on Linux.

ok, maybe a windows problem; i have clear linux also, just currently in windows poking around; im assuming you have no problems on Linux?

On Sat, Apr 3, 2021, at 14:42, czczup wrote: > it also is 0.1.0 You can try this: bshillingford/python-torchfile#12 <bshillingford/python-torchfile#12> — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLUPABFLST6RO7TOS6SEPLTG2FA3ANCNFSM42JSILDQ.