TJIET commited on
Commit
810c9e2
·
verified ·
1 Parent(s): e1f698b

Upload 4 files

Browse files
Files changed (4) hide show
  1. environment.yml +417 -0
  2. evaluate_0_shot.py.py +110 -0
  3. evaluate_1_shot.py.py +136 -0
  4. requirements.txt +377 -0
environment.yml ADDED
@@ -0,0 +1,417 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: nips
2
+ channels:
3
+ - defaults
4
+ dependencies:
5
+ - _libgcc_mutex=0.1=main
6
+ - _openmp_mutex=5.1=1_gnu
7
+ - bzip2=1.0.8=h5eee18b_6
8
+ - ca-certificates=2025.2.25=h06a4308_0
9
+ - ld_impl_linux-64=2.40=h12ee557_0
10
+ - libffi=3.4.4=h6a678d5_1
11
+ - libgcc-ng=11.2.0=h1234567_1
12
+ - libgomp=11.2.0=h1234567_1
13
+ - libstdcxx-ng=11.2.0=h1234567_1
14
+ - libuuid=1.41.5=h5eee18b_0
15
+ - ncurses=6.4=h6a678d5_0
16
+ - openssl=3.0.16=h5eee18b_0
17
+ - pip=25.0=py311h06a4308_0
18
+ - python=3.11.11=he870216_0
19
+ - readline=8.2=h5eee18b_0
20
+ - setuptools=75.8.0=py311h06a4308_0
21
+ - sqlite=3.45.3=h5eee18b_0
22
+ - tk=8.6.14=h39e8969_0
23
+ - wheel=0.45.1=py311h06a4308_0
24
+ - xz=5.6.4=h5eee18b_1
25
+ - zlib=1.2.13=h5eee18b_1
26
+ - pip:
27
+ - accelerate==0.26.0
28
+ - aiocache==0.12.3
29
+ - aiofiles==23.2.1
30
+ - aiohappyeyeballs==2.6.1
31
+ - aiohttp==3.11.11
32
+ - aiosignal==1.3.2
33
+ - alembic==1.14.0
34
+ - annotated-types==0.7.0
35
+ - anthropic==0.49.0
36
+ - anyio==4.9.0
37
+ - appdirs==1.4.4
38
+ - apscheduler==3.10.4
39
+ - argon2-cffi==23.1.0
40
+ - argon2-cffi-bindings==21.2.0
41
+ - asgiref==3.8.1
42
+ - asttokens==3.0.0
43
+ - async-timeout==5.0.1
44
+ - attrdict==2.0.1
45
+ - attrs==25.3.0
46
+ - audioread==3.0.1
47
+ - authlib==1.4.1
48
+ - av==14.2.0
49
+ - azure-ai-documentintelligence==1.0.0
50
+ - azure-core==1.32.0
51
+ - azure-identity==1.20.0
52
+ - azure-storage-blob==12.24.1
53
+ - backoff==2.2.1
54
+ - bcrypt==4.3.0
55
+ - beautifulsoup4==4.13.3
56
+ - bidict==0.23.1
57
+ - bitarray==3.2.0
58
+ - bitsandbytes==0.45.4
59
+ - bitsandbytes-cuda117==0.26.0.post2
60
+ - black==25.1.0
61
+ - blinker==1.9.0
62
+ - boto3==1.35.53
63
+ - botocore==1.35.99
64
+ - build==1.2.2.post1
65
+ - cachetools==5.5.2
66
+ - certifi==2025.1.31
67
+ - cffi==1.17.1
68
+ - chardet==5.2.0
69
+ - charset-normalizer==3.4.1
70
+ - chroma-hnswlib==0.7.6
71
+ - chromadb==0.6.2
72
+ - click==8.1.8
73
+ - cmake==4.0.0
74
+ - colbert-ai==0.2.21
75
+ - colorama==0.4.6
76
+ - colorclass==2.2.2
77
+ - coloredlogs==15.0.1
78
+ - compressed-rtf==1.0.7
79
+ - cryptography==44.0.2
80
+ - ctranslate2==4.5.0
81
+ - dataclasses-json==0.6.7
82
+ - datasets==2.18.0
83
+ - decorator==5.2.1
84
+ - decord==0.6.0
85
+ - deepseek-vl==1.0.0
86
+ - deepseek-vl2==1.0.0
87
+ - deepspeed==0.16.5
88
+ - defusedxml==0.7.1
89
+ - deprecated==1.2.18
90
+ - diffusers==0.32.2
91
+ - dill==0.3.8
92
+ - distro==1.9.0
93
+ - dnspython==2.7.0
94
+ - docker==7.1.0
95
+ - docx2txt==0.8
96
+ - duckduckgo-search==7.3.2
97
+ - durationpy==0.9
98
+ - e==1.4.5
99
+ - easygui==0.98.3
100
+ - ebcdic==1.1.1
101
+ - ecdsa==0.19.1
102
+ - einops==0.8.0
103
+ - einx==0.3.0
104
+ - elastic-transport==8.17.1
105
+ - elasticsearch==8.17.1
106
+ - emoji==2.14.1
107
+ - encodec==0.1.1
108
+ - et-xmlfile==2.0.0
109
+ - eval-type-backport==0.2.2
110
+ - events==0.5
111
+ - executing==2.2.0
112
+ - extract-msg==0.54.0
113
+ - fake-useragent==1.5.1
114
+ - fastapi==0.115.7
115
+ - faster-whisper==1.1.1
116
+ - ffmpy==0.5.0
117
+ - filelock==3.18.0
118
+ - filetype==1.2.0
119
+ - firecrawl-py==1.12.0
120
+ - flash-attn==2.5.8
121
+ - flask==3.1.0
122
+ - flatbuffers==25.2.10
123
+ - fonttools==4.56.0
124
+ - fpdf2==2.8.2
125
+ - frozendict==2.4.6
126
+ - frozenlist==1.5.0
127
+ - fs==2.4.16
128
+ - fsspec==2024.2.0
129
+ - ftfy==6.2.3
130
+ - gcp-storage-emulator==2024.8.3
131
+ - git-python==1.0.3
132
+ - gitdb==4.0.12
133
+ - gitpython==3.1.44
134
+ - google-ai-generativelanguage==0.6.6
135
+ - google-api-core==2.24.2
136
+ - google-api-python-client==2.165.0
137
+ - google-auth==2.38.0
138
+ - google-auth-httplib2==0.2.0
139
+ - google-auth-oauthlib==1.2.1
140
+ - google-cloud-core==2.4.3
141
+ - google-cloud-storage==2.19.0
142
+ - google-crc32c==1.7.1rc1
143
+ - google-generativeai==0.7.2
144
+ - google-resumable-media==2.7.2
145
+ - googleapis-common-protos==1.63.2
146
+ - gradio==5.23.1
147
+ - gradio-client==1.8.0
148
+ - greenlet==3.1.1
149
+ - groovy==0.1.2
150
+ - grpcio==1.67.1
151
+ - grpcio-status==1.63.0rc1
152
+ - grpcio-tools==1.62.3
153
+ - h11==0.14.0
154
+ - h2==4.2.0
155
+ - hjson==3.1.0
156
+ - hpack==4.1.0
157
+ - html5lib==1.1
158
+ - httpcore==1.0.7
159
+ - httplib2==0.22.0
160
+ - httptools==0.6.4
161
+ - httpx==0.28.1
162
+ - httpx-sse==0.4.0
163
+ - huggingface-hub==0.30.2
164
+ - humanfriendly==10.0
165
+ - hyperframe==6.1.0
166
+ - icecream==2.1.4
167
+ - idna==3.10
168
+ - importlib-metadata==8.4.0
169
+ - importlib-resources==6.5.2
170
+ - iniconfig==2.1.0
171
+ - isodate==0.7.2
172
+ - itsdangerous==2.2.0
173
+ - janus==2.0.0
174
+ - jinja2==3.1.6
175
+ - jiter==0.9.0
176
+ - jmespath==1.0.1
177
+ - joblib==1.4.2
178
+ - jsonpatch==1.33
179
+ - jsonpointer==3.0.0
180
+ - kubernetes==32.0.1
181
+ - langchain==0.3.19
182
+ - langchain-community==0.3.18
183
+ - langchain-core==0.3.48
184
+ - langchain-text-splitters==0.3.7
185
+ - langdetect==1.0.9
186
+ - langfuse==2.44.0
187
+ - langsmith==0.3.18
188
+ - lark==1.1.9
189
+ - lazy-loader==0.4
190
+ - ldap3==2.9.1
191
+ - librosa==0.11.0
192
+ - lit==18.1.8
193
+ - llvmlite==0.44.0
194
+ - loguru==0.7.2
195
+ - lxml==5.3.1
196
+ - mako==1.3.9
197
+ - mantis-vl==0.0.5
198
+ - markdown==3.7
199
+ - markdown-it-py==3.0.0
200
+ - markupsafe==3.0.2
201
+ - marshmallow==3.26.1
202
+ - mdurl==0.1.2
203
+ - milvus-lite==2.4.12
204
+ - mmh3==5.1.0
205
+ - modelscope==1.24.0
206
+ - monotonic==1.6
207
+ - moto==5.1.1
208
+ - mpmath==1.3.0
209
+ - msal==1.32.0
210
+ - msal-extensions==1.3.1
211
+ - msgpack==1.1.0
212
+ - msoffcrypto-tool==5.4.2
213
+ - multidict==6.2.0
214
+ - multiprocess==0.70.16
215
+ - mypy-extensions==1.0.0
216
+ - nest-asyncio==1.6.0
217
+ - networkx==3.4.2
218
+ - ninja==1.11.1.4
219
+ - nltk==3.9.1
220
+ - numba==0.61.0
221
+ - numpy==1.26.4
222
+ - nvidia-cublas-cu11==11.11.3.6
223
+ - nvidia-cublas-cu12==12.4.5.8
224
+ - nvidia-cuda-cupti-cu11==11.8.87
225
+ - nvidia-cuda-cupti-cu12==12.4.127
226
+ - nvidia-cuda-nvrtc-cu11==11.8.89
227
+ - nvidia-cuda-nvrtc-cu12==12.4.127
228
+ - nvidia-cuda-runtime-cu11==11.8.89
229
+ - nvidia-cuda-runtime-cu12==12.4.127
230
+ - nvidia-cudnn-cu11==9.1.0.70
231
+ - nvidia-cudnn-cu12==9.1.0.70
232
+ - nvidia-cufft-cu11==10.9.0.58
233
+ - nvidia-cufft-cu12==11.2.1.3
234
+ - nvidia-curand-cu11==10.3.0.86
235
+ - nvidia-curand-cu12==10.3.5.147
236
+ - nvidia-cusolver-cu11==11.4.1.48
237
+ - nvidia-cusolver-cu12==11.6.1.9
238
+ - nvidia-cusparse-cu11==11.7.5.86
239
+ - nvidia-cusparse-cu12==12.3.1.170
240
+ - nvidia-cusparselt-cu12==0.6.2
241
+ - nvidia-ml-py==12.570.86
242
+ - nvidia-nccl-cu11==2.21.5
243
+ - nvidia-nccl-cu12==2.21.5
244
+ - nvidia-nvjitlink-cu12==12.4.127
245
+ - nvidia-nvtx-cu11==11.8.86
246
+ - nvidia-nvtx-cu12==12.4.127
247
+ - oauthlib==3.2.2
248
+ - olefile==0.47
249
+ - oletools==0.60.2
250
+ - ollama==0.4.7
251
+ - onnxruntime==1.21.0
252
+ - open-webui==0.5.20
253
+ - openai==1.8.0
254
+ - opencv-python==4.11.0.86
255
+ - opencv-python-headless==4.11.0.86
256
+ - openpyxl==3.1.5
257
+ - opensearch-py==2.8.0
258
+ - opentelemetry-api==1.27.0
259
+ - opentelemetry-exporter-otlp-proto-common==1.27.0
260
+ - opentelemetry-exporter-otlp-proto-grpc==1.27.0
261
+ - opentelemetry-instrumentation==0.48b0
262
+ - opentelemetry-instrumentation-asgi==0.48b0
263
+ - opentelemetry-instrumentation-fastapi==0.48b0
264
+ - opentelemetry-proto==1.27.0
265
+ - opentelemetry-sdk==1.27.0
266
+ - opentelemetry-semantic-conventions==0.48b0
267
+ - opentelemetry-util-http==0.48b0
268
+ - orjson==3.10.16
269
+ - overrides==7.7.0
270
+ - packaging==23.2
271
+ - pandas==2.2.3
272
+ - passlib==1.7.4
273
+ - pathspec==0.12.1
274
+ - pcodedmp==1.2.6
275
+ - peewee==3.17.9
276
+ - peewee-migrate==1.12.2
277
+ - pgvector==0.3.5
278
+ - pillow==11.1.0
279
+ - platformdirs==4.3.7
280
+ - playwright==1.49.1
281
+ - pluggy==1.5.0
282
+ - pooch==1.8.2
283
+ - portalocker==2.10.1
284
+ - posthog==3.21.0
285
+ - primp==0.14.0
286
+ - propcache==0.3.0
287
+ - proto-plus==1.26.1
288
+ - protobuf==4.25.6
289
+ - psutil==7.0.0
290
+ - psycopg2-binary==2.9.9
291
+ - py-cpuinfo==9.0.0
292
+ - py-partiql-parser==0.6.1
293
+ - pyarrow==19.0.1
294
+ - pyarrow-hotfix==0.6
295
+ - pyasn1==0.4.8
296
+ - pyasn1-modules==0.4.1
297
+ - pyclipper==1.3.0.post6
298
+ - pycparser==2.22
299
+ - pydantic==2.10.6
300
+ - pydantic-core==2.27.2
301
+ - pydantic-settings==2.8.1
302
+ - pydub==0.25.1
303
+ - pyee==12.0.0
304
+ - pygments==2.19.1
305
+ - pyjwt==2.10.1
306
+ - pymdown-extensions==10.14.2
307
+ - pymilvus==2.5.0
308
+ - pymongo==4.11.3
309
+ - pymysql==1.1.1
310
+ - pypandoc==1.13
311
+ - pyparsing==3.2.3
312
+ - pypdf==4.3.1
313
+ - pypika==0.48.9
314
+ - pyproject-hooks==1.2.0
315
+ - pytest==8.3.5
316
+ - pytest-docker==3.1.2
317
+ - python-dateutil==2.9.0.post0
318
+ - python-dotenv==1.1.0
319
+ - python-engineio==4.11.2
320
+ - python-iso639==2025.2.18
321
+ - python-jose==3.4.0
322
+ - python-magic==0.4.27
323
+ - python-multipart==0.0.18
324
+ - python-oxmsg==0.0.2
325
+ - python-pptx==1.0.0
326
+ - python-socketio==5.11.3
327
+ - pytube==15.0.0
328
+ - pytz==2025.2
329
+ - pyxlsb==1.0.10
330
+ - pyyaml==6.0.2
331
+ - qdrant-client==1.12.2
332
+ - qwen-omni-utils==0.0.3
333
+ - qwen-vl-utils==0.0.8
334
+ - rank-bm25==0.2.2
335
+ - rapidfuzz==3.12.2
336
+ - rapidocr-onnxruntime==1.3.24
337
+ - red-black-tree-mod==1.22
338
+ - redis==5.2.1
339
+ - regex==2024.11.6
340
+ - requests==2.32.3
341
+ - requests-oauthlib==2.0.0
342
+ - requests-toolbelt==1.0.0
343
+ - responses==0.25.7
344
+ - restrictedpython==8.0
345
+ - rich==13.9.4
346
+ - ring==0.10.1
347
+ - rsa==4.9
348
+ - rtfde==0.1.2
349
+ - ruff==0.11.2
350
+ - s3transfer==0.10.4
351
+ - safehttpx==0.1.6
352
+ - safetensors==0.5.3
353
+ - scikit-learn==1.6.1
354
+ - scipy==1.15.2
355
+ - semantic-version==2.10.0
356
+ - sentence-transformers==3.3.1
357
+ - sentencepiece==0.2.0
358
+ - shapely==2.0.7
359
+ - shellingham==1.5.4
360
+ - simple-websocket==1.1.0
361
+ - six==1.17.0
362
+ - smmap==5.0.2
363
+ - sniffio==1.3.1
364
+ - soundfile==0.13.1
365
+ - soupsieve==2.6
366
+ - soxr==0.5.0.post1
367
+ - sqlalchemy==2.0.38
368
+ - sse-starlette==2.2.1
369
+ - starlette==0.45.3
370
+ - sympy==1.13.1
371
+ - tenacity==9.0.0
372
+ - threadpoolctl==3.6.0
373
+ - tiktoken==0.9.0
374
+ - timm==1.0.15
375
+ - tokenizers==0.21.1
376
+ - tomlkit==0.13.2
377
+ - torch==2.6.0
378
+ - torchaudio==2.5.1+cu118
379
+ - torchvision==0.21.0
380
+ - tqdm==4.67.1
381
+ - transformers==4.51.3
382
+ - triton==3.2.0
383
+ - typer==0.15.2
384
+ - typing-extensions==4.12.2
385
+ - typing-inspect==0.9.0
386
+ - typing-inspection==0.4.0
387
+ - tzdata==2025.2
388
+ - tzlocal==5.3.1
389
+ - ujson==5.10.0
390
+ - unstructured==0.16.17
391
+ - unstructured-client==0.31.3
392
+ - uritemplate==4.1.1
393
+ - urllib3==2.3.0
394
+ - uvicorn==0.34.0
395
+ - uvloop==0.21.0
396
+ - validators==0.34.0
397
+ - vector-quantize-pytorch==1.22.3
398
+ - vocos==0.1.0
399
+ - watchfiles==1.0.4
400
+ - wcwidth==0.2.13
401
+ - webencodings==0.5.1
402
+ - websocket-client==1.8.0
403
+ - websockets==15.0.1
404
+ - werkzeug==3.1.3
405
+ - wirerope==1.0.0
406
+ - wrapt==1.17.2
407
+ - wsproto==1.2.0
408
+ - xformers==0.0.29.post3
409
+ - xlrd==2.0.1
410
+ - xlsxwriter==3.2.2
411
+ - xmltodict==0.14.2
412
+ - xxhash==3.5.0
413
+ - yarl==1.18.3
414
+ - youtube-transcript-api==0.6.3
415
+ - zipp==3.21.0
416
+ - zstandard==0.23.0
417
+ prefix: /home/lunet/ttjl7/anaconda3/envs/nips
evaluate_0_shot.py.py ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import torch
3
+ from tqdm import tqdm
4
+ from transformers import AutoModelForCausalLM
5
+ from deepseek_vl.models import VLChatProcessor, MultiModalityCausalLM
6
+ from deepseek_vl.utils.io import load_pil_images
7
+ from PIL import Image
8
+
9
+
10
+ model_path = "deepseek-ai/deepseek-vl-7b-chat"
11
+ vl_chat_processor: VLChatProcessor = VLChatProcessor.from_pretrained(model_path)
12
+ tokenizer = vl_chat_processor.tokenizer
13
+
14
+ vl_gpt: MultiModalityCausalLM = AutoModelForCausalLM.from_pretrained(
15
+ model_path,
16
+ cache_dir=".",
17
+ trust_remote_code=True
18
+ )
19
+ vl_gpt = vl_gpt.to(torch.bfloat16).cuda().eval()
20
+
21
+
22
+ question = (
23
+ "1. Identify the type of fruit or crop shown in the image. "
24
+ "2. Determine its current growth stage. (Options: unripe, mature, pest-damaged, rotten) "
25
+ "3. Recommend the farmer’s next action. (Options: keep for further growth, try to recover it, discard it) "
26
+ "4. Evaluate the consumer’s willingness to consume this fruit, from 1 (very unlikely) to 100 (very likely). "
27
+ "Please respond in the following format:\n"
28
+ "Type: [Fruit/Crop Name] Growth Stage: [unripe / mature / pest-damaged / rotten] "
29
+ "Recommendation: [keep for further growth / try to recover it /picking it/ discard it] Consumer Score: [1-100]"
30
+ )
31
+
32
+
33
+ root_folder = "../data/"
34
+ output_root = "result"
35
+ os.makedirs(output_root, exist_ok=True)
36
+
37
+
38
+ for fruit in os.listdir(root_folder):
39
+ fruit_path = os.path.join(root_folder, fruit)
40
+ if not os.path.isdir(fruit_path):
41
+ continue
42
+
43
+ for subfolder in os.listdir(fruit_path):
44
+ subfolder_path = os.path.join(fruit_path, subfolder)
45
+ if not os.path.isdir(subfolder_path):
46
+ continue
47
+
48
+ image_files = [f for f in os.listdir(subfolder_path) if f.lower().endswith(('.jpg', '.jpeg', '.png', '.bmp'))]
49
+ if not image_files:
50
+ continue
51
+
52
+ output_file = os.path.join(output_root, f"{fruit}_{subfolder}.txt")
53
+
54
+
55
+ with open(output_file, "w", encoding="utf-8") as fout:
56
+ for image_file in tqdm(image_files, desc=f"{fruit}/{subfolder}"):
57
+ image_path = os.path.join(subfolder_path, image_file)
58
+
59
+ try:
60
+
61
+ conversation = [
62
+ {
63
+ "role": "User",
64
+ "content": "<image_placeholder>" + question,
65
+ "images": [image_path],
66
+ },
67
+ {"role": "Assistant", "content": ""}
68
+ ]
69
+
70
+
71
+ pil_images = load_pil_images(conversation)
72
+
73
+
74
+ prepare_inputs = vl_chat_processor(
75
+ conversations=conversation,
76
+ images=pil_images,
77
+ force_batchify=True
78
+ ).to(vl_gpt.device)
79
+
80
+ inputs_embeds = vl_gpt.prepare_inputs_embeds(**prepare_inputs)
81
+
82
+
83
+ outputs = vl_gpt.language_model.generate(
84
+ inputs_embeds=inputs_embeds,
85
+ attention_mask=prepare_inputs.attention_mask,
86
+ pad_token_id=tokenizer.eos_token_id,
87
+ bos_token_id=tokenizer.bos_token_id,
88
+ eos_token_id=tokenizer.eos_token_id,
89
+ max_new_tokens=512,
90
+ do_sample=False,
91
+ use_cache=True
92
+ )
93
+
94
+ answer = tokenizer.decode(outputs[0].cpu().tolist(), skip_special_tokens=True).strip()
95
+
96
+
97
+ fout.write(f"{'=' * 25} IMAGE START {'=' * 25}\n")
98
+ fout.write(f"🖼️ Image Name: {image_file}\n")
99
+ fout.write(f"📝 Answer:\n{answer}\n")
100
+ fout.write(f"{'=' * 25} IMAGE END {'=' * 25}\n\n")
101
+ print(f"✅ {image_file} => {answer.splitlines()[0]}")
102
+
103
+ except Exception as e:
104
+ print(f"[ERROR] {fruit}/{subfolder}/{image_file}: {e}")
105
+ fout.write(f"{'=' * 25} IMAGE START {'=' * 25}\n")
106
+ fout.write(f"🖼️ Image Name: {image_file}\n")
107
+ fout.write(f"❌ ERROR: {e}\n")
108
+ fout.write(f"{'=' * 25} IMAGE END {'=' * 25}\n\n")
109
+
110
+
evaluate_1_shot.py.py ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+
3
+
4
+ import os, gc, torch
5
+ from tqdm import tqdm
6
+ from transformers import AutoModelForCausalLM
7
+ from deepseek_vl.models import VLChatProcessor, MultiModalityCausalLM
8
+ from deepseek_vl.utils.io import load_pil_images
9
+
10
+
11
+ chinese_to_english = {
12
+ 'strawberry', 'tomato', 'guava', 'dragon fruit',
13
+ 'orange', 'pear', 'lychee', 'mango',
14
+ 'kiwi', 'papaya', 'apple', 'grape',
15
+ 'pomegranate','peach', 'banana', 'pomelo'
16
+ }
17
+
18
+ stage_to_english = {
19
+ 'unripe', 'mature', 'pest-damaged', 'rotten'
20
+ }
21
+
22
+ recommendation_map = {
23
+ 'unripe': 'keep for further growth',
24
+ 'mature': 'picking it',
25
+ 'pest-damaged': 'try to recover it',
26
+ 'rotten': 'discard it'
27
+ }
28
+
29
+ score_map = {
30
+ 'unripe': 30, 'mature': 85, 'pest-damaged': 20, 'rotten': 5
31
+ }
32
+
33
+
34
+ model_path = "deepseek-ai/deepseek-vl-7b-chat"
35
+ root_folder = "../data/" #
36
+ output_root = "result_1shot"
37
+ os.makedirs(output_root, exist_ok=True)
38
+
39
+ print("🚀 Loading DeepSeek‑VL‑7B ...")
40
+ vl_chat_processor: VLChatProcessor = VLChatProcessor.from_pretrained(model_path)
41
+ tokenizer = vl_chat_processor.tokenizer
42
+ vl_gpt: MultiModalityCausalLM = AutoModelForCausalLM.from_pretrained(
43
+ model_path, cache_dir=".", trust_remote_code=True
44
+ ).to(torch.bfloat16).cuda().eval()
45
+
46
+
47
+
48
+ question = (
49
+ "1. Identify the type of fruit or crop shown in the image. \n"
50
+ "2. Determine its current growth stage. (Options: unripe, mature, pest-damaged, rotten) \n"
51
+ "3. Recommend the farmer’s next action. (Options: keep for further growth, try to recover it, discard it) \n"
52
+ "4. Evaluate the consumer’s willingness to consume this fruit, from 1 (very unlikely) to 100 (very likely).\n"
53
+ "Please respond in the following format:\n"
54
+ "Type: [Fruit/Crop Name] Growth Stage: [unripe / mature / pest-damaged / rotten] "
55
+ "Recommendation: [keep for further growth / pick it /try to recover it / discard it] Consumer Score: [1-100]"
56
+ )
57
+
58
+
59
+
60
+ def build_stage_example(fruit_dir: str, fruit_cn: str, stage_cn: str):
61
+ stage_path = os.path.join(fruit_dir, stage_cn)
62
+ imgs = sorted([f for f in os.listdir(stage_path)
63
+ if f.lower().endswith((".png", ".jpg", ".jpeg", ".bmp"))])
64
+ if not imgs:
65
+ return []
66
+
67
+ img_path = os.path.join(stage_path, imgs[0]) #
68
+
69
+ fruit_en = chinese_to_english.get(fruit_cn, fruit_cn)
70
+ stage_en = stage_to_english.get(stage_cn, "mature")
71
+ assistant_reply = (
72
+ f"Type: {fruit_en} Growth Stage: {stage_en} "
73
+ f"Recommendation: {recommendation_map[stage_en]} "
74
+ f"Consumer Score: {score_map[stage_en]}"
75
+ )
76
+
77
+
78
+ return [
79
+ {"role": "User", "content": "<image_placeholder>\n" + question, "images": [img_path]},
80
+ {"role": "Assistant", "content": assistant_reply},
81
+ ]
82
+
83
+
84
+ for fruit_cn in os.listdir(root_folder):
85
+ fruit_path = os.path.join(root_folder, fruit_cn)
86
+ if not os.path.isdir(fruit_path):
87
+ continue
88
+
89
+ for stage_cn in os.listdir(fruit_path):
90
+ stage_path = os.path.join(fruit_path, stage_cn)
91
+ if not os.path.isdir(stage_path):
92
+ continue
93
+
94
+ img_files = sorted([f for f in os.listdir(stage_path)
95
+ if f.lower().endswith((".png", ".jpg", ".jpeg", ".bmp"))])
96
+
97
+
98
+ example_msgs = build_stage_example(fruit_path, fruit_cn, stage_cn)
99
+ if not example_msgs:
100
+ continue
101
+
102
+ output_file = os.path.join(output_root, f"{fruit_cn}_{stage_cn}.txt")
103
+ with open(output_file, "w", encoding="utf-8") as fout:
104
+ for img_name in tqdm(img_files, desc=f"{fruit_cn}/{stage_cn}"):
105
+ img_path = os.path.join(stage_path, img_name)
106
+ if img_path in example_msgs[0]["images"]:
107
+ continue
108
+
109
+ conversation = example_msgs + [
110
+ {"role": "User", "content": "<image_placeholder>\n" + question, "images": [img_path]},
111
+ {"role": "Assistant", "content": ""},
112
+ ]
113
+ try:
114
+ with torch.no_grad():
115
+ pil_imgs = load_pil_images(conversation)
116
+ prep_in = vl_chat_processor(conversations=conversation, images=pil_imgs, force_batchify=True).to(vl_gpt.device)
117
+ embeds = vl_gpt.prepare_inputs_embeds(**prep_in)
118
+ out_ids = vl_gpt.language_model.generate(inputs_embeds=embeds, attention_mask=prep_in.attention_mask,
119
+ pad_token_id=tokenizer.eos_token_id,
120
+ bos_token_id=tokenizer.bos_token_id,
121
+ eos_token_id=tokenizer.eos_token_id,
122
+ max_new_tokens=256, do_sample=False, use_cache=True)
123
+ answer = tokenizer.decode(out_ids[0], skip_special_tokens=True).strip()
124
+
125
+ print(f"✅ {img_name} → {answer.splitlines()[0]}")
126
+ fout.write("="*25 + " IMAGE START " + "="*25 + "\n")
127
+ fout.write(f"🖼️ Image Name: {img_name}\n")
128
+ fout.write(f"📝 Answer:\n{answer}\n")
129
+ fout.write("="*25 + " IMAGE END " + "="*25 + "\n\n")
130
+ except Exception as e:
131
+ print(f"[ERROR] {fruit_cn}/{stage_cn}/{img_name}: {e}")
132
+
133
+ finally:
134
+ torch.cuda.empty_cache()
135
+ gc.collect()
136
+
requirements.txt ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ addict==2.4.0
2
+ aiobotocore @ file:///croot/aiobotocore_1682536655331/work
3
+ aiofiles @ file:///croot/aiofiles_1683773582346/work
4
+ aiohttp @ file:///work/ci_py311/aiohttp_1676827623103/work
5
+ aioitertools @ file:///tmp/build/80754af9/aioitertools_1607109665762/work
6
+ aiosignal @ file:///tmp/build/80754af9/aiosignal_1637843061372/work
7
+ aiosqlite @ file:///croot/aiosqlite_1683773899903/work
8
+ alabaster @ file:///home/ktietz/src/ci/alabaster_1611921544520/work
9
+ aliyun-python-sdk-core==2.14.0
10
+ aliyun-python-sdk-kms==2.16.2
11
+ anaconda-catalogs @ file:///croot/anaconda-catalogs_1685727283692/work
12
+ anaconda-client==1.12.0
13
+ anaconda-navigator==2.4.2
14
+ anaconda-project @ file:///work/ci_py311/anaconda-project_1676846728333/work
15
+ anyio @ file:///work/ci_py311/anyio_1676823771847/work/dist
16
+ appdirs==1.4.4
17
+ argon2-cffi @ file:///opt/conda/conda-bld/argon2-cffi_1645000214183/work
18
+ argon2-cffi-bindings @ file:///work/ci_py311/argon2-cffi-bindings_1676823553406/work
19
+ arrow @ file:///work/ci_py311/arrow_1677696236099/work
20
+ astroid @ file:///work/ci_py311/astroid_1676920975848/work
21
+ astropy @ file:///work/ci_py311_2/astropy_1679335217840/work
22
+ asttokens @ file:///opt/conda/conda-bld/asttokens_1646925590279/work
23
+ async-timeout @ file:///work/ci_py311/async-timeout_1676826962453/work
24
+ atomicwrites==1.4.0
25
+ attrs @ file:///work/ci_py311/attrs_1676822758931/work
26
+ Automat @ file:///tmp/build/80754af9/automat_1600298431173/work
27
+ autopep8 @ file:///opt/conda/conda-bld/autopep8_1650463822033/work
28
+ Babel @ file:///work/ci_py311/babel_1676825020543/work
29
+ backcall @ file:///home/ktietz/src/ci/backcall_1611930011877/work
30
+ backports.functools-lru-cache @ file:///tmp/build/80754af9/backports.functools_lru_cache_1618170165463/work
31
+ backports.tempfile @ file:///home/linux1/recipes/ci/backports.tempfile_1610991236607/work
32
+ backports.weakref==1.0.post1
33
+ bcrypt @ file:///work/ci_py311/bcrypt_1676825144644/work
34
+ beautifulsoup4 @ file:///croot/beautifulsoup4-split_1681493039619/work
35
+ binaryornot @ file:///tmp/build/80754af9/binaryornot_1617751525010/work
36
+ black @ file:///croot/black_1680737249031/work
37
+ bleach @ file:///opt/conda/conda-bld/bleach_1641577558959/work
38
+ bokeh @ file:///croot/bokeh_1690546085683/work
39
+ boltons @ file:///work/ci_py311/boltons_1677685195580/work
40
+ botocore @ file:///croot/botocore_1682527998176/work
41
+ Bottleneck @ file:///work/ci_py311/bottleneck_1676827011612/work
42
+ brotlipy==0.7.0
43
+ certifi @ file:///croot/certifi_1690232220950/work/certifi
44
+ cffi @ file:///work/ci_py311/cffi_1676822533496/work
45
+ chardet @ file:///work/ci_py311/chardet_1676830276092/work
46
+ charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work
47
+ click @ file:///work/ci_py311/click_1676825163161/work
48
+ cloudpickle @ file:///croot/cloudpickle_1683040006038/work
49
+ clyent==1.2.2
50
+ colorama @ file:///work/ci_py311/colorama_1676827038675/work
51
+ colorcet @ file:///work/ci_py311/colorcet_1676839173519/work
52
+ comm @ file:///work/ci_py311/comm_1677709131612/work
53
+ conda @ file:///croot/conda_1690494963117/work
54
+ conda-build @ file:///croot/conda-build_1690381780072/work
55
+ conda-content-trust @ file:///tmp/build/80754af9/conda-content-trust_1617045594566/work
56
+ conda-libmamba-solver @ file:///croot/conda-libmamba-solver_1685032319139/work/src
57
+ conda-pack @ file:///tmp/build/80754af9/conda-pack_1611163042455/work
58
+ conda-package-handling @ file:///croot/conda-package-handling_1690999929514/work
59
+ conda-repo-cli==1.0.41
60
+ conda-token @ file:///Users/paulyim/miniconda3/envs/c3i/conda-bld/conda-token_1662660369760/work
61
+ conda-verify==3.4.2
62
+ conda_index @ file:///work/ci_py311/conda-index_1676851343192/work
63
+ conda_package_streaming @ file:///croot/conda-package-streaming_1690987966409/work
64
+ constantly==15.1.0
65
+ contourpy @ file:///work/ci_py311/contourpy_1676827066340/work
66
+ cookiecutter @ file:///opt/conda/conda-bld/cookiecutter_1649151442564/work
67
+ crcmod==1.7
68
+ cryptography @ file:///croot/cryptography_1689373676338/work
69
+ cssselect==1.1.0
70
+ cycler @ file:///tmp/build/80754af9/cycler_1637851556182/work
71
+ cytoolz @ file:///work/ci_py311/cytoolz_1676830405847/work
72
+ daal4py==2023.1.1
73
+ dask @ file:///croot/dask-core_1686782904390/work
74
+ datasets @ file:///croot/datasets_1684482929171/work
75
+ datashader @ file:///croot/datashader_1689587631676/work
76
+ datashape==0.5.4
77
+ debugpy @ file:///croot/debugpy_1690905042057/work
78
+ decorator @ file:///opt/conda/conda-bld/decorator_1643638310831/work
79
+ defusedxml @ file:///tmp/build/80754af9/defusedxml_1615228127516/work
80
+ diff-match-patch @ file:///Users/ktietz/demo/mc3/conda-bld/diff-match-patch_1630511840874/work
81
+ dill @ file:///work/ci_py311/dill_1676827712960/work
82
+ distributed @ file:///croot/distributed_1686866039819/work
83
+ docstring-to-markdown @ file:///work/ci_py311/docstring-to-markdown_1676851973684/work
84
+ docutils @ file:///work/ci_py311/docutils_1676822773036/work
85
+ entrypoints @ file:///work/ci_py311/entrypoints_1676823319002/work
86
+ et-xmlfile==1.1.0
87
+ executing @ file:///opt/conda/conda-bld/executing_1646925071911/work
88
+ fastjsonschema @ file:///work/ci_py311_2/python-fastjsonschema_1679340124475/work
89
+ filelock @ file:///work/ci_py311/filelock_1676823024085/work
90
+ flake8 @ file:///work/ci_py311/flake8_1677709235205/work
91
+ Flask @ file:///work/ci_py311/flask_1676827140363/work
92
+ fonttools==4.25.0
93
+ frozenlist @ file:///work/ci_py311/frozenlist_1676825229010/work
94
+ fsspec @ file:///croot/fsspec_1682525977151/work
95
+ future @ file:///work/ci_py311_2/future_1679335928186/work
96
+ gensim @ file:///work/ci_py311/gensim_1677033391129/work
97
+ glob2 @ file:///home/linux1/recipes/ci/glob2_1610991677669/work
98
+ gmpy2 @ file:///work/ci_py311/gmpy2_1676839849213/work
99
+ greenlet @ file:///work/ci_py311/greenlet_1676825247229/work
100
+ h5py @ file:///work/ci_py311/h5py_1676904017107/work
101
+ HeapDict @ file:///Users/ktietz/demo/mc3/conda-bld/heapdict_1630598515714/work
102
+ holoviews @ file:///croot/holoviews_1690477566927/work
103
+ huggingface-hub @ file:///croot/huggingface_hub_1686693679113/work
104
+ hvplot @ file:///croot/hvplot_1685998166135/work
105
+ hyperlink @ file:///tmp/build/80754af9/hyperlink_1610130746837/work
106
+ idna @ file:///work/ci_py311/idna_1676822698822/work
107
+ imagecodecs @ file:///work/ci_py311_2/imagecodecs_1679336294425/work
108
+ imageio @ file:///croot/imageio_1687264943895/work
109
+ imagesize @ file:///work/ci_py311/imagesize_1676830829500/work
110
+ imbalanced-learn @ file:///croot/imbalanced-learn_1685020884354/work
111
+ importlib-metadata @ file:///croot/importlib-metadata_1678997070253/work
112
+ incremental @ file:///tmp/build/80754af9/incremental_1636629750599/work
113
+ inflection==0.5.1
114
+ iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
115
+ intake @ file:///work/ci_py311_2/intake_1679336472739/work
116
+ intervaltree @ file:///Users/ktietz/demo/mc3/conda-bld/intervaltree_1630511889664/work
117
+ ipykernel @ file:///work/ci_py311/ipykernel_1677867938687/work
118
+ ipython @ file:///croot/ipython_1680701871216/work
119
+ ipython-genutils @ file:///tmp/build/80754af9/ipython_genutils_1606773439826/work
120
+ ipywidgets @ file:///croot/ipywidgets_1679394798311/work
121
+ isort @ file:///tmp/build/80754af9/isort_1628603791788/work
122
+ itemadapter @ file:///tmp/build/80754af9/itemadapter_1626442940632/work
123
+ itemloaders @ file:///opt/conda/conda-bld/itemloaders_1646805235997/work
124
+ itsdangerous @ file:///tmp/build/80754af9/itsdangerous_1621432558163/work
125
+ jaraco.classes @ file:///tmp/build/80754af9/jaraco.classes_1620983179379/work
126
+ jedi @ file:///work/ci_py311_2/jedi_1679336495545/work
127
+ jeepney @ file:///tmp/build/80754af9/jeepney_1627537048313/work
128
+ jellyfish @ file:///work/ci_py311/jellyfish_1676844347260/work
129
+ Jinja2 @ file:///work/ci_py311/jinja2_1676823587943/work
130
+ jinja2-time @ file:///opt/conda/conda-bld/jinja2-time_1649251842261/work
131
+ jmespath @ file:///Users/ktietz/demo/mc3/conda-bld/jmespath_1630583964805/work
132
+ joblib @ file:///croot/joblib_1685113087166/work
133
+ json5 @ file:///tmp/build/80754af9/json5_1624432770122/work
134
+ jsonpatch @ file:///tmp/build/80754af9/jsonpatch_1615747632069/work
135
+ jsonpointer==2.1
136
+ jsonschema @ file:///croot/jsonschema_1678983421637/work
137
+ jupyter @ file:///work/ci_py311/jupyter_1676837039433/work
138
+ jupyter-console @ file:///croot/jupyter_console_1679999630278/work
139
+ jupyter-events @ file:///croot/jupyter_events_1684268042853/work
140
+ jupyter-server @ file:///work/ci_py311/jupyter_server_1676824947163/work
141
+ jupyter-ydoc @ file:///croot/jupyter_ydoc_1683747223142/work
142
+ jupyter_client @ file:///work/ci_py311/jupyter_client_1676823491351/work
143
+ jupyter_core @ file:///croot/jupyter_core_1679906564508/work
144
+ jupyter_server_fileid @ file:///croot/jupyter_server_fileid_1684273577568/work
145
+ jupyter_server_ydoc @ file:///croot/jupyter_server_ydoc_1686767404829/work
146
+ jupyterlab @ file:///croot/jupyterlab_1686179668131/work
147
+ jupyterlab-pygments @ file:///tmp/build/80754af9/jupyterlab_pygments_1601490720602/work
148
+ jupyterlab-widgets @ file:///croot/jupyterlab_widgets_1679055282532/work
149
+ jupyterlab_server @ file:///croot/jupyterlab_server_1680792501448/work
150
+ keyring @ file:///croot/keyring_1678999217139/work
151
+ kiwisolver @ file:///work/ci_py311/kiwisolver_1676827230232/work
152
+ lazy-object-proxy @ file:///work/ci_py311/lazy-object-proxy_1676827255418/work
153
+ lazy_loader @ file:///croot/lazy_loader_1687264084094/work
154
+ libarchive-c @ file:///tmp/build/80754af9/python-libarchive-c_1617780486945/work
155
+ libmambapy @ file:///croot/mamba-split_1680092794548/work/libmambapy
156
+ linkify-it-py @ file:///work/ci_py311/linkify-it-py_1676837069144/work
157
+ llvmlite @ file:///croot/llvmlite_1683555126642/work
158
+ lmdb @ file:///croot/python-lmdb_1682522346377/work
159
+ locket @ file:///work/ci_py311/locket_1676827274546/work
160
+ lxml @ file:///work/ci_py311/lxml_1676823603437/work
161
+ lz4 @ file:///croot/lz4_1686057876374/work
162
+ Markdown @ file:///work/ci_py311/markdown_1676837083112/work
163
+ markdown-it-py @ file:///croot/markdown-it-py_1684279902645/work
164
+ MarkupSafe @ file:///work/ci_py311/markupsafe_1676823507015/work
165
+ matplotlib @ file:///croot/matplotlib-suite_1679593461707/work
166
+ matplotlib-inline @ file:///work/ci_py311/matplotlib-inline_1676823841154/work
167
+ mccabe @ file:///opt/conda/conda-bld/mccabe_1644221741721/work
168
+ mdit-py-plugins @ file:///work/ci_py311/mdit-py-plugins_1676837111662/work
169
+ mdurl @ file:///work/ci_py311/mdurl_1676827289376/work
170
+ mistune @ file:///work/ci_py311/mistune_1676823698136/work
171
+ mkl-fft==1.3.6
172
+ mkl-random @ file:///work/mkl/mkl_random_1682950433854/work
173
+ mkl-service==2.4.0
174
+ mmcv==2.1.0
175
+ mmdet==2.14.0
176
+ mmengine==0.9.0
177
+ mmsegmentation==0.14.1
178
+ model-index==0.1.11
179
+ more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
180
+ mpmath @ file:///croot/mpmath_1690848262763/work
181
+ msgpack @ file:///work/ci_py311/msgpack-python_1676823037805/work
182
+ multidict @ file:///work/ci_py311/multidict_1676825314105/work
183
+ multipledispatch @ file:///work/ci_py311/multipledispatch_1676841220684/work
184
+ multiprocess @ file:///work/ci_py311/multiprocess_1676841234722/work
185
+ munkres==1.1.4
186
+ mypy-extensions==0.4.3
187
+ navigator-updater==0.4.0
188
+ nbclassic @ file:///croot/nbclassic_1681756170010/work
189
+ nbclient @ file:///work/ci_py311/nbclient_1676823713954/work
190
+ nbconvert @ file:///work/ci_py311/nbconvert_1676823854564/work
191
+ nbformat @ file:///work/ci_py311/nbformat_1676823523130/work
192
+ nest-asyncio @ file:///work/ci_py311/nest-asyncio_1676823382924/work
193
+ networkx @ file:///croot/networkx_1690561992265/work
194
+ nltk @ file:///croot/nltk_1688114146592/work
195
+ notebook @ file:///croot/notebook_1690984815942/work
196
+ notebook_shim @ file:///work/ci_py311/notebook-shim_1676825053954/work
197
+ numba @ file:///croot/numba_1684245461770/work
198
+ numexpr @ file:///croot/numexpr_1683221822650/work
199
+ numpy @ file:///work/mkl/numpy_and_numpy_base_1682953417311/work
200
+ numpydoc @ file:///work/ci_py311/numpydoc_1676845056742/work
201
+ opencv-python==4.8.1.78
202
+ opendatalab==0.0.10
203
+ openmim==0.3.9
204
+ openpyxl==3.0.10
205
+ openxlab==0.0.28
206
+ ordered-set==4.1.0
207
+ oss2==2.17.0
208
+ packaging @ file:///croot/packaging_1678965309396/work
209
+ pandas==1.5.3
210
+ pandocfilters @ file:///opt/conda/conda-bld/pandocfilters_1643405455980/work
211
+ panel @ file:///croot/panel_1690822207338/work
212
+ param @ file:///croot/param_1684915322283/work
213
+ parsel @ file:///work/ci_py311/parsel_1676905937880/work
214
+ parso @ file:///opt/conda/conda-bld/parso_1641458642106/work
215
+ partd @ file:///opt/conda/conda-bld/partd_1647245470509/work
216
+ pathlib @ file:///Users/ktietz/demo/mc3/conda-bld/pathlib_1629713961906/work
217
+ pathspec @ file:///work/ci_py311_2/pathspec_1679337288229/work
218
+ patsy==0.5.3
219
+ pep8==1.7.1
220
+ pexpect @ file:///tmp/build/80754af9/pexpect_1605563209008/work
221
+ pickleshare @ file:///tmp/build/80754af9/pickleshare_1606932040724/work
222
+ Pillow==9.4.0
223
+ pkginfo @ file:///croot/pkginfo_1679431160147/work
224
+ platformdirs @ file:///work/ci_py311/platformdirs_1676823055788/work
225
+ plotly @ file:///work/ci_py311/plotly_1676841625489/work
226
+ pluggy @ file:///work/ci_py311/pluggy_1676822818071/work
227
+ ply==3.11
228
+ pooch @ file:///tmp/build/80754af9/pooch_1623324770023/work
229
+ poyo @ file:///tmp/build/80754af9/poyo_1617751526755/work
230
+ prettytable==3.9.0
231
+ prometheus-client @ file:///work/ci_py311_2/prometheus_client_1679340520168/work
232
+ prompt-toolkit @ file:///work/ci_py311/prompt-toolkit_1676824857154/work
233
+ Protego @ file:///tmp/build/80754af9/protego_1598657180827/work
234
+ psutil @ file:///work/ci_py311_2/psutil_1679337388738/work
235
+ ptyprocess @ file:///tmp/build/80754af9/ptyprocess_1609355006118/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
236
+ pure-eval @ file:///opt/conda/conda-bld/pure_eval_1646925070566/work
237
+ py-cpuinfo @ file:///Users/ktietz/demo/mc3/conda-bld/py-cpuinfo_1629480366017/work
238
+ pyarrow==11.0.0
239
+ pyasn1 @ file:///Users/ktietz/demo/mc3/conda-bld/pyasn1_1629708007385/work
240
+ pyasn1-modules==0.2.8
241
+ pycocotools==2.0.7
242
+ pycodestyle @ file:///work/ci_py311/pycodestyle_1677708783451/work
243
+ pycosat @ file:///work/ci_py311/pycosat_1676838522308/work
244
+ pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work
245
+ pycryptodome==3.19.0
246
+ pyct @ file:///work/ci_py311/pyct_1676838544646/work
247
+ pycurl==7.45.2
248
+ PyDispatcher==2.0.5
249
+ pydocstyle @ file:///work/ci_py311/pydocstyle_1677708708066/work
250
+ pyerfa @ file:///work/ci_py311/pyerfa_1676838574038/work
251
+ pyflakes @ file:///work/ci_py311/pyflakes_1677708650266/work
252
+ Pygments @ file:///croot/pygments_1684279966437/work
253
+ PyJWT @ file:///work/ci_py311/pyjwt_1676827385359/work
254
+ pylint @ file:///work/ci_py311/pylint_1676920998643/work
255
+ pylint-venv @ file:///work/ci_py311/pylint-venv_1677706395472/work
256
+ pyls-spyder==0.4.0
257
+ pyodbc @ file:///work/ci_py311/pyodbc_1676860985304/work
258
+ pyOpenSSL @ file:///croot/pyopenssl_1690223430423/work
259
+ pyparsing @ file:///work/ci_py311/pyparsing_1677811559502/work
260
+ PyQt5-sip==12.11.0
261
+ pyrsistent @ file:///work/ci_py311/pyrsistent_1676823088752/work
262
+ PySocks @ file:///work/ci_py311/pysocks_1676822712504/work
263
+ pytest @ file:///croot/pytest_1690474690005/work
264
+ python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
265
+ python-json-logger @ file:///croot/python-json-logger_1683823803357/work
266
+ python-lsp-black @ file:///work/ci_py311/python-lsp-black_1676845562358/work
267
+ python-lsp-jsonrpc==1.0.0
268
+ python-lsp-server @ file:///croot/python-lsp-server_1681930392028/work
269
+ python-slugify @ file:///tmp/build/80754af9/python-slugify_1620405669636/work
270
+ python-snappy @ file:///work/ci_py311/python-snappy_1676842365339/work
271
+ pytoolconfig @ file:///work/ci_py311/pytoolconfig_1677709006710/work
272
+ pytz==2023.3.post1
273
+ pyviz-comms @ file:///croot/pyviz_comms_1685030693726/work
274
+ PyWavelets @ file:///work/ci_py311/pywavelets_1676838693522/work
275
+ pyxdg @ file:///tmp/build/80754af9/pyxdg_1603822279816/work
276
+ PyYAML @ file:///work/ci_py311/pyyaml_1676827445582/work
277
+ pyzmq @ file:///work/ci_py311/pyzmq_1676918885689/work
278
+ QDarkStyle @ file:///tmp/build/80754af9/qdarkstyle_1617386714626/work
279
+ qstylizer @ file:///work/ci_py311/qstylizer_1677706154568/work/dist/qstylizer-0.2.2-py2.py3-none-any.whl
280
+ QtAwesome @ file:///work/ci_py311/qtawesome_1677705159328/work
281
+ qtconsole @ file:///croot/qtconsole_1681394213385/work
282
+ QtPy @ file:///work/ci_py311/qtpy_1676827467989/work
283
+ queuelib==1.5.0
284
+ regex @ file:///work/ci_py311/regex_1677086824242/work
285
+ requests==2.28.2
286
+ requests-file @ file:///Users/ktietz/demo/mc3/conda-bld/requests-file_1629455781986/work
287
+ requests-toolbelt @ file:///croot/requests-toolbelt_1690874004362/work
288
+ responses @ file:///tmp/build/80754af9/responses_1619800270522/work
289
+ rfc3339-validator @ file:///croot/rfc3339-validator_1683077044675/work
290
+ rfc3986-validator @ file:///croot/rfc3986-validator_1683058983515/work
291
+ rich==13.4.2
292
+ rope @ file:///work/ci_py311/rope_1677708536193/work
293
+ Rtree @ file:///work/ci_py311/rtree_1676845693189/work
294
+ ruamel-yaml-conda @ file:///work/ci_py311/ruamel_yaml_1676845707897/work
295
+ ruamel.yaml @ file:///work/ci_py311/ruamel.yaml_1676838772170/work
296
+ s3fs @ file:///croot/s3fs_1682551471189/work
297
+ sacremoses @ file:///tmp/build/80754af9/sacremoses_1633107328213/work
298
+ scikit-image @ file:///croot/scikit-image_1682528309703/work
299
+ scikit-learn @ file:///croot/scikit-learn_1690978916802/work
300
+ scikit-learn-intelex==20230426.111612
301
+ scipy==1.10.1
302
+ Scrapy @ file:///work/ci_py311/scrapy_1677770267574/work
303
+ seaborn @ file:///work/ci_py311/seaborn_1676845747354/work
304
+ SecretStorage @ file:///work/ci_py311_2/secretstorage_1679339060489/work
305
+ Send2Trash @ file:///tmp/build/80754af9/send2trash_1632406701022/work
306
+ service-identity @ file:///Users/ktietz/demo/mc3/conda-bld/service_identity_1629460757137/work
307
+ sip @ file:///work/ci_py311/sip_1676825117084/work
308
+ six @ file:///tmp/build/80754af9/six_1644875935023/work
309
+ smart-open @ file:///work/ci_py311/smart_open_1676842848397/work
310
+ sniffio @ file:///work/ci_py311/sniffio_1676823742530/work
311
+ snowballstemmer @ file:///tmp/build/80754af9/snowballstemmer_1637937080595/work
312
+ sortedcontainers @ file:///tmp/build/80754af9/sortedcontainers_1623949099177/work
313
+ soupsieve @ file:///croot/soupsieve_1680518478486/work
314
+ Sphinx @ file:///work/ci_py311/sphinx_1676842864059/work
315
+ sphinxcontrib-applehelp @ file:///home/ktietz/src/ci/sphinxcontrib-applehelp_1611920841464/work
316
+ sphinxcontrib-devhelp @ file:///home/ktietz/src/ci/sphinxcontrib-devhelp_1611920923094/work
317
+ sphinxcontrib-htmlhelp @ file:///tmp/build/80754af9/sphinxcontrib-htmlhelp_1623945626792/work
318
+ sphinxcontrib-jsmath @ file:///home/ktietz/src/ci/sphinxcontrib-jsmath_1611920942228/work
319
+ sphinxcontrib-qthelp @ file:///home/ktietz/src/ci/sphinxcontrib-qthelp_1611921055322/work
320
+ sphinxcontrib-serializinghtml @ file:///tmp/build/80754af9/sphinxcontrib-serializinghtml_1624451540180/work
321
+ spyder @ file:///croot/spyder_1681934064788/work
322
+ spyder-kernels @ file:///croot/spyder-kernels_1681307264370/work
323
+ SQLAlchemy @ file:///work/ci_py311/sqlalchemy_1676827498678/work
324
+ stack-data @ file:///opt/conda/conda-bld/stack_data_1646927590127/work
325
+ statsmodels @ file:///croot/statsmodels_1689937266057/work
326
+ sympy @ file:///work/ci_py311_2/sympy_1679339311852/work
327
+ tables @ file:///croot/pytables_1685123207389/work
328
+ tabulate @ file:///work/ci_py311/tabulate_1676838830728/work
329
+ TBB==0.2
330
+ tblib @ file:///Users/ktietz/demo/mc3/conda-bld/tblib_1629402031467/work
331
+ tenacity @ file:///croot/tenacity_1682972284834/work
332
+ termcolor==2.3.0
333
+ terminado @ file:///work/ci_py311/terminado_1677696151350/work
334
+ terminaltables==3.1.10
335
+ text-unidecode @ file:///Users/ktietz/demo/mc3/conda-bld/text-unidecode_1629401354553/work
336
+ textdistance @ file:///tmp/build/80754af9/textdistance_1612461398012/work
337
+ threadpoolctl @ file:///Users/ktietz/demo/mc3/conda-bld/threadpoolctl_1629802263681/work
338
+ three-merge @ file:///tmp/build/80754af9/three-merge_1607553261110/work
339
+ tifffile @ file:///tmp/build/80754af9/tifffile_1627275862826/work
340
+ tinycss2 @ file:///work/ci_py311/tinycss2_1676823757641/work
341
+ tldextract @ file:///opt/conda/conda-bld/tldextract_1646638314385/work
342
+ tokenizers @ file:///croot/tokenizers_1687191909486/work
343
+ toml @ file:///tmp/build/80754af9/toml_1616166611790/work
344
+ tomlkit @ file:///work/ci_py311/tomlkit_1676823218885/work
345
+ toolz @ file:///work/ci_py311/toolz_1676827522705/work
346
+ torch @ file:///croot/pytorch_1686931851744/work
347
+ tornado @ file:///croot/tornado_1690848263220/work
348
+ tqdm @ file:///croot/tqdm_1679561862951/work
349
+ traitlets @ file:///work/ci_py311/traitlets_1676823305040/work
350
+ transformers @ file:///croot/transformers_1684845848079/work
351
+ Twisted @ file:///croot/twisted_1683796889247/work
352
+ typing_extensions @ file:///croot/typing_extensions_1690297465030/work
353
+ uc-micro-py @ file:///work/ci_py311/uc-micro-py_1676828889155/work
354
+ ujson @ file:///work/ci_py311/ujson_1676828903327/work
355
+ Unidecode @ file:///tmp/build/80754af9/unidecode_1614712377438/work
356
+ urllib3 @ file:///croot/urllib3_1686163155763/work
357
+ w3lib @ file:///Users/ktietz/demo/mc3/conda-bld/w3lib_1629359764703/work
358
+ watchdog @ file:///work/ci_py311/watchdog_1676846191736/work
359
+ wcwidth @ file:///Users/ktietz/demo/mc3/conda-bld/wcwidth_1629357192024/work
360
+ webencodings==0.5.1
361
+ websocket-client @ file:///work/ci_py311/websocket-client_1676824890004/work
362
+ Werkzeug @ file:///croot/werkzeug_1679489717957/work
363
+ whatthepatch @ file:///work/ci_py311/whatthepatch_1677708379946/work
364
+ widgetsnbextension @ file:///croot/widgetsnbextension_1679313860248/work
365
+ wrapt @ file:///work/ci_py311/wrapt_1676827586170/work
366
+ wurlitzer @ file:///work/ci_py311/wurlitzer_1676843053614/work
367
+ xarray @ file:///croot/xarray_1689041471350/work
368
+ xxhash @ file:///work/ci_py311/python-xxhash_1676842384694/work
369
+ xyzservices @ file:///work/ci_py311/xyzservices_1676828923127/work
370
+ y-py @ file:///croot/y-py_1683555143488/work
371
+ yapf @ file:///tmp/build/80754af9/yapf_1615749224965/work
372
+ yarl @ file:///work/ci_py311/yarl_1676827604591/work
373
+ ypy-websocket @ file:///croot/ypy-websocket_1684171737040/work
374
+ zict @ file:///croot/zict_1682698729376/work
375
+ zipp @ file:///work/ci_py311/zipp_1676822894295/work
376
+ zope.interface @ file:///work/ci_py311/zope.interface_1676905896080/work
377
+ zstandard @ file:///work/ci_py311_2/zstandard_1679339489613/work