QData / C-Tran

General Multi-label Image Classification with Transformers
MIT License
244 stars 43 forks source link

use voc dataset error #26

Open DehaoMeng opened 5 months ago

DehaoMeng commented 5 months ago
File "D:\Graduation project\归档\C-Tran-main\run_epoch.py", line 30, in run_epoch
    for batch in tqdm(data,mininterval=0.5,desc=desc,leave=True,ncols=50):
RuntimeError:
        An attempt has been made to start a new process before the
            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.

The above error occurs when I use this code to execute this program