Я получаю следующую ошибку:
ошибка: требуются следующие аргументы: -u / - urls, -o / - вывод при запуске file.py
Там, где первая строка: «from tenorflow.keras.applications import MobileNetV2»
Весь этот импорт работает нормально на ноутбуке с juypter
Я создаю свою модель машинного обучения и, таким образом,создание файла .py с некоторыми предварительно подготовленными весами в формате h5 и загрузка для него модели MobileNet ()
from tensorflow.keras.applications import MobileNetV2
base_model =MobileNetV2(input_shape=(160,160,3),include_top=False, weights='imagenet')
#importing dense, pooling droupout and making the architecture of the model
x=base_model.output
x=GlobalAveragePooling2D()(x)
x=Dense(1024,activation='relu')(x) #we add dense layers so that the model can learn more complex functions and classify for better results.
x=Dropout(0.2)(x)
x=Dense(512,activation='relu')(x) #dense layer 2
x=Dropout(0.2)(x)
x=Dense(256,activation='relu')(x) #dense layer 3
preds=Dense(2,activation='softmax')(x) #final layer with softmax activation
creating model
model=Model(inputs=base_model.input,outputs=preds)
loading weights
model.load_weights('SixthTraining.h5')
...... rest of code commented..........
запуск строки импорта в оболочке python использование: [-h] -u URLS-o OUTPUT
: ошибка: требуются следующие аргументы: -u / - urls, -o / - вывод
запуск файла .pyот интерпретатора python