[QUESTION] PadddleClas框架中使用Swanlab报错 #637
Labels
🐛 bug
Something isn't working
good first issue
Good for newcomers
🙋 help wanted
Extra attention is needed
🤔 Question description [Please make everyone to understand it]
在PaddleClas框架中tools/train.py加入swanlab.init()报以下错误:
Call stack:
File "tools/train.py", line 37, in
swanlab.init(
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\data\sdk.py", line 176, in init
run = register(
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\data\run_init_.py", line 15, in register
run = SwanLabRun(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\data\run\main.py", line 116, in init
self.__operator.on_run()
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\data\run\operator.py", line 97, in on_run
return self.__run_all("on_run")
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\data\run\operator.py", line 54, in __run_all
return {name: getattr(callback, method)(*args, **kwargs) for name, callback in self.callbacks.items()}
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\data\run\operator.py", line 54, in
return {name: getattr(callback, method)(*args, **kwargs) for name, callback in self.callbacks.items()}
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\data\callback_cloud.py", line 143, in on_run
experiment_url = self._view_web_print()
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\data\callback_cloud.py", line 82, in _view_web_print
swanlog.info("\U0001f3e0 View project at " + FONT.blue(FONT.underline(project_url)))
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\log\log.py", line 102, in wrapper
can_write = func(self, message, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\swanlab\log\log.py", line 261, in info
self._logger.info(message)
Message: '\U0001f3e0 View project at \x1b[34m\x1b[4mhttps://swanlab.cn/@wooyeon/weed_classification\x1b[0m\x1b[0m'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\logging_init.py", line 1084, in emit
stream.write(msg + self.terminator)
UnicodeEncodeError: 'gbk' codec can't encode character '\U0001f680' in position 26: illegal multibyte sequence
�
🧑💻 Expected result
🚑 Any additional [like screenshots]
SwanLab Version: swanlab 0.3.11
Platform: windows10+3090GPU+pytorch2.0.1+cu118�+pycharm2019.2.6
The text was updated successfully, but these errors were encountered: