You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with open(output_file, 'w') as f:
for image_path, result in results.items():
f.write(f"Image: {image_path}\n")
for category, probability in result.items():
f.write(f"{category}: {probability}\n")
f.write("\n")
Hello
im sure that my images are 299 299
i also tried :
from nsfw_detector import predict
model = predict.load_model('models/nsfw.299x299.h5')
predict.classify(model, 'test/frames/', 299)
or
from nsfw_detector import predict
model = predict.load_model('models/nsfw.299x299.h5')
Predict single image
predict.classify(model, 'test/frames/output_0045.jpg', 299)
output :
:38] TF-TRT Warning: Could not find TensorRT
test/frames/output_0045.jpg size: (299, 299)
1/1 [==============================] - 2s 2s/step
[root@server-194-5-205-78 nsfw_model]#
but it did not print the result and only printed images name and , 299 thats all
any trick to solve it ?
The text was updated successfully, but these errors were encountered: