.egg 文件中的错误。如何解决?

问题描述 投票:0回答:0

我收到这个错误

Using TensorFlow backend.
2023-03-05 21:15:17.211408: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Traceback (most recent call last):
  File "model_training.py", line 103, in <module>
    layers='heads')
  File "D:\Thesis\rice-mrcnn\lib\site-packages\mask_rcnn_tf2-1.0-py3.7.egg\mrcnn\model.py", line 2347, in train 
  File "C:\Python37\lib\os.py", line 213, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "C:\Python37\lib\os.py", line 213, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "C:\Python37\lib\os.py", line 223, in makedirs
    mkdir(name, mode)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '//'
(rice-mrcnn) PS D:\Thesis\Mask-RCNN-TF2\kangaroo-transfer-learning> 

我不在我的代码中使用

\\

model.train(train_dataset=train_dataset, 
            val_dataset=validation_dataset, 
            learning_rate=kangaroo_config.LEARNING_RATE, 
            epochs=1, 
            layers='heads') # this is line 103

model_path = 'model_mask_rcnn_trained.h5'
model.keras_model.save_weights(model_path)

所以问题一定出在

mask_rcnn_tf2-1.0-py3.7.egg
里面的文件怎么编辑呢?有更好的方法吗?

python egg
© www.soinside.com 2019 - 2024. All rights reserved.