-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I encountered this error when I tried to execute the training script. The line of code that caused the exception is seen here url. I am looking forward to your help.
Below is the detailed error message:
/home/shhs/anaconda3/envs/torch_1_0_py3_6/bin/python /home.bak/shhs/soft/pycharm-2019.1.1/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 46783 --file /media/shhs/Peterou2/user/code/HomoInterpGAN/run.py attribute_manipulation -bs 8 -gpu 0
pydev debugger: process 6843 is connecting
Connected to pydev debugger (build 191.6605.12)
loading default VGG
- Total Images: 162770
Traceback (most recent call last):
File "/home.bak/shhs/soft/pycharm-2019.1.1/helpers/pydev/pydevd.py", line 1741, in
main()
File "/home.bak/shhs/soft/pycharm-2019.1.1/helpers/pydev/pydevd.py", line 1735, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/home.bak/shhs/soft/pycharm-2019.1.1/helpers/pydev/pydevd.py", line 1135, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home.bak/shhs/soft/pycharm-2019.1.1/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/media/shhs/Peterou2/user/code/HomoInterpGAN/run.py", line 205, in
engine.run()
File "/media/shhs/Peterou2/user/code/HomoInterpGAN/run.py", line 200, in run
exec ('self.{}()'.format(self.args.command))
File "", line 1, in
File "/media/shhs/Peterou2/user/code/HomoInterpGAN/run.py", line 161, in attribute_manipulation
_, test_dataset = self.load_dataset()
File "/media/shhs/Peterou2/user/code/HomoInterpGAN/run.py", line 106, in load_dataset
csv_path='info/celeba-with-orientation.csv')
File "/media/shhs/Peterou2/user/code/HomoInterpGAN/data/attributeDataset.py", line 220, in init
f3 = self.frame.iloc[:, 1:] > 0
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/ops.py", line 2108, in f
res = self._combine_const(other, func)
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/frame.py", line 5120, in _combine_const
return ops.dispatch_to_series(self, other, func)
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/ops.py", line 1157, in dispatch_to_series
new_data = expressions.evaluate(column_op, str_rep, left, right)
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/computation/expressions.py", line 208, in evaluate
return _evaluate(op, op_str, a, b, **eval_kwargs)
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/computation/expressions.py", line 68, in _evaluate_standard
return op(a, b)
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/ops.py", line 1128, in column_op
for i in range(len(a.columns))}
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/ops.py", line 1128, in
for i in range(len(a.columns))}
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/ops.py", line 1766, in wrapper
res = na_op(values, other)
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/ops.py", line 1625, in na_op
result = _comp_method_OBJECT_ARRAY(op, x, y)
File "/home/shhs/anaconda3/envs/torch_1_0_py3_6/lib/python3.6/site-packages/pandas/core/ops.py", line 1603, in _comp_method_OBJECT_ARRAY
result = libops.scalar_compare(x, y, op)
File "pandas/_libs/ops.pyx", line 97, in pandas._libs.ops.scalar_compare
TypeError: '>' not supported between instances of 'str' and 'int'
Metadata
Metadata
Assignees
Labels
No labels