ankanbhunia/PIDM

about Train.py

ILLLLUSION opened this issue · 3 comments

This code cannot be run using Windows system, right?

i got a ImportError like this
NOTE: Redirects are currently not supported in Windows or MacOs.
Traceback (most recent call last):
File "testfile.py", line 7, in
from config.diffconfig import DiffusionConfig, get_model_conf
File "D:\Myresearch\Person_Image_Synthesis\PIDM\config_init_.py", line 1, in
from .diffconfig import *
File "D:\Myresearch\Person_Image_Synthesis\PIDM\config\diffconfig.py", line 3, in
from tensorfn.config import (
File "D:\StudyTools\Anaconda\envs\diffusion\lib\site-packages\tensorfn\config_init_.py", line 1, in
from tensorfn.config.config import (
File "D:\StudyTools\Anaconda\envs\diffusion\lib\site-packages\tensorfn\config\config.py", line 9, in
from pydantic import (
ImportError: cannot import name 'ArbitraryTypeError' from 'pydantic' (D:\StudyTools\Anaconda\envs\diffusion\lib\site-packages\pydantic_init_.py)
How to solve?

I haven't tried to run it on windows systems. Sorry can't help on that. Maybe try using wsl?

I haven't tried to run it on windows systems. Sorry can't help on that. Maybe try using wsl?

I have solved this error, the pytantic version is too high, but now I only have a gpu, how can I modify the code so that it can start training? Thank you very much for your patient reply.