Aide langage python

Résolu/Fermé
cool74 - 21 mai 2022 à 14:42
 cool74 - 21 mai 2022 à 15:12
Bonjour, j ai une erreur si une personne peux m aider merci

/content/first-order-model

---------------------------------------------------------------------------

FileNotFoundError Traceback (most recent call last)

<ipython-input-3-e21dc707b840> in <module>()
30 warnings.filterwarnings("ignore")
31
---> 32 source_image = imageio.imread('/content/'+Nom_Fichier_Image)
33 reader = imageio.get_reader('/content/'+Nom_Fichier_Video)
34

3 frames

/usr/local/lib/python3.7/dist-packages/imageio/core/request.py in _parse_uri(self, uri)
271 # Reading: check that the file exists (but is allowed a dir)
272 if not os.path.exists(fn):
--> 273 raise FileNotFoundError("No such file: '%s'" % fn)
274 else:
275 # Writing: check that the directory to write to does exist

FileNotFoundError: No such file: '/content/content/DeepFake_From_Single_Image/data/reynolds1.png'




Configuration: Windows / Chrome 101.0.0.0

2 réponses

Phil_1857 Messages postés 1883 Date d'inscription lundi 23 mars 2020 Statut Membre Dernière intervention 28 février 2024 178
21 mai 2022 à 15:05
Bonjour,

on y verrait plus clair si tu affichais ton code avec les balises de code
mode d'emploi:
https://codes-sources.commentcamarche.net/faq/11288-les-balises-de-code

Visuellement, ça doit ressembler à ça:

for k in range(10):
    print(k)
0
j arrive pas a mettre le code
0